Skip to content

Commit 271d4ee

Browse files
authored
Update basic-stateful-set.md
Update to container images #572&640-642
1 parent c25ab08 commit 271d4ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/en/docs/tutorials/stateful-application/basic-stateful-set.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ In one terminal window, patch the `web` StatefulSet to change the container
569569
image again:
570570

571571
```shell
572-
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"}]'
572+
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"registry.k8s.io/nginx-slim:0.8"}]'
573573
```
574574
```
575575
statefulset.apps/web patched
@@ -637,9 +637,9 @@ Get the Pods to view their container images:
637637
for p in 0 1 2; do kubectl get pod "web-$p" --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done
638638
```
639639
```
640-
gcr.io/google_containers/nginx-slim:0.8
641-
gcr.io/google_containers/nginx-slim:0.8
642-
gcr.io/google_containers/nginx-slim:0.8
640+
registry.k8s.io/nginx-slim:0.8
641+
registry.k8s.io/nginx-slim:0.8
642+
registry.k8s.io/nginx-slim:0
643643
644644
```
645645

0 commit comments

Comments
 (0)