当前位置:  开发笔记 > 编程语言 > 正文

Kubernetes kubectl设置图像部署无法 - 记录历史记录?

如何解决《Kuberneteskubectl设置图像部署无法-记录历史记录?》经验,为你挑选了0个好方法。

根据用户指南,应该可以更新部署的映像,kubectl set/edit并且仍然可以获得有意义的历史记录.

然而,我得到了一些错误,没有有意义的历史,这可能是一个错误吗?

$ kubectl create -f kubernetes/deployment.yml --record
deployment "nginx" created

$ kubectl set image deployment/nginx nginx=nginx:0.2.0
deployment "nginx" image updated
changes to deployments/nginx can't be recorded: Operation cannot be fulfilled on deployments.extensions "nginx": the object has been modified; please apply your changes to the latest version and try againc

$ kubectl set image deployment/nginx nginx=nginx:0.2.1
deployment "nginx" image updated
changes to deployments/nginx can't be recorded: Operation cannot be fulfilled on deployments.extensions "nginx": the object has been modified; please apply your changes to the latest version and try again

$ kb rollout history deployment/nginx
deployments "nginx":
REVISION  CHANGE-CAUSE
1   kubectl create -f kubernetes/deployment.yml --record
2   kubectl create -f kubernetes/deployment.yml --record
3   kubectl create -f kubernetes/deployment.yml --record

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.0+2831379", GitCommit:"283137936a498aed572ee22af6774b6fb6e9fd94", GitTreeState:"not a git tree", BuildDate:"2016-07-05T15:40:13Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.0", GitCommit:"283137936a498aed572ee22af6774b6fb6e9fd94", GitTreeState:"clean", BuildDate:"2016-07-01T19:19:19Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}

谢谢!

推荐阅读
k78283381
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有