Fix patch image command in rolling update section (#7124)
Fixes one part of the issue #7056 about patch command failing to update. In this case it changes the image URL to another different than the used previously to create the StatefulSet.
This commit is contained in:
committed by
k8s-ci-robot
parent
5a37ded1c4
commit
7256d59849
@@ -465,7 +465,7 @@ In one terminal window, patch the `web` StatefulSet to change the container
|
||||
image again.
|
||||
|
||||
```shell
|
||||
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"k8s.gcr.io/nginx-slim:0.8"}]'
|
||||
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"gcr.io/google_containers/nginx-slim:0.8"}]'
|
||||
statefulset "web" patched
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user