根据用户指南,应该可以更新部署的映像,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)