We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
本来设计方案想预先启动一个deployment后,对其中的pod 都做原地升级,但是这个会报错,k8s内部原地升级仅支持替换replace,不支持add操作。
I0425 21:31:11.520742 43109 resource.go:67] CreateOrUpdateDeploymentupdated I0425 21:31:11.520769 43109 controller.go:55] do patch image to pods... I0425 21:31:41.773783 43109 controller.go:59] 1 I0425 21:31:41.773852 43109 controller.go:60] [{example2 nginx:1.14.2 [] [] [{ 0 80 }] [] [] {map[] map[] []} [] [] nil nil nil nil nil false false false}] I0425 21:31:41.773945 43109 resource.go:127] do patch.... [{"op":"add","path":"/spec/containers/-","value":{"name":"example2","image":"nginx:1.14.2","ports":[{"containerPort":80}],"resources":{}}}] E0425 21:31:41.828893 43109 resource.go:162] patch error: Pod "mypoddeployer-57d89dd79-rlblw" is invalid: spec.containers: Forbidden: pod updates may not add or remove containers
The text was updated successfully, but these errors were encountered:
已经使用patch deployment 修改
Sorry, something went wrong.
No branches or pull requests
本来设计方案想预先启动一个deployment后,对其中的pod 都做原地升级,但是这个会报错,k8s内部原地升级仅支持替换replace,不支持add操作。
I0425 21:31:11.520742 43109 resource.go:67] CreateOrUpdateDeploymentupdated
I0425 21:31:11.520769 43109 controller.go:55] do patch image to pods...
I0425 21:31:41.773783 43109 controller.go:59] 1
I0425 21:31:41.773852 43109 controller.go:60] [{example2 nginx:1.14.2 [] [] [{ 0 80 }] [] [] {map[] map[] []} [] [] nil nil nil nil nil false false false}]
I0425 21:31:41.773945 43109 resource.go:127] do patch....
[{"op":"add","path":"/spec/containers/-","value":{"name":"example2","image":"nginx:1.14.2","ports":[{"containerPort":80}],"resources":{}}}]
E0425 21:31:41.828893 43109 resource.go:162] patch error: Pod "mypoddeployer-57d89dd79-rlblw" is invalid: spec.containers: Forbidden: pod updates may not add or remove containers
The text was updated successfully, but these errors were encountered: