小编ari*_*sfl的帖子

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

根据用户指南,应该可以更新部署的映像,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": …
Run Code Online (Sandbox Code Playgroud)

deployment history image record kubernetes

5
推荐指数
1
解决办法
2027
查看次数

标签 统计

deployment ×1

history ×1

image ×1

kubernetes ×1

record ×1