Kubernetes Deployments

谁说胖子不能爱 提交于 2019-12-02 09:36:24

OpenShifts deployment object preceded the upstream Kube object (being feature complete in the March 2015 time frame). Once Kube Deployments support the remaining features in OpenShift deployments, we'll automatically migrate them. Some things OpenShift deployments support that are not upstream yet

  • Automatic deployment when Docker registry tags change
  • Custom deployments (run your own deployment logic in a pod)
  • Deployment hooks - execute "bundle exec rake db:migrate" before or after deploying your app
  • Recreate deployment strategy
  • Ability to pause or "hold" a deployment so it does not automatically run (so admins can choose to deploy).
  • Ability for deployments to "fail" and be recorded (so that end users know that the code they pushed failed to start).

It will take time to add those remaining options.

As of now, the Deployment concept has been moved to "v1beta1". The concept will most probably be continued, because it is a declarative approach (vs. the imperative approach with the older replication controller etc.).

Can't tell anything about OpenShift but on GKE it works for me pretty well!

Deployment is planned to graduate to beta in 1.2 release. See related issue #15313 for the changes to be made. We will also have new kubectl commands for rolling update which uses Deployment, see issue #17168 and the proposal.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!