Skip to content

Commit 005a562

Browse files
authored
Merge pull request #45878 from tomoaki-ii/revise-statefulset-tuto
Correcting scenario inconsistencies and output checks
2 parents 0c26114 + aae1fec commit 005a562

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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
@@ -112,8 +112,8 @@ nginx ClusterIP None <none> 80/TCP 12s
112112
kubectl get statefulset web
113113
```
114114
```
115-
NAME DESIRED CURRENT AGE
116-
web 2 1 20s
115+
NAME READY AGE
116+
web 2/2 37s
117117
```
118118

119119
### Ordered Pod creation
@@ -593,7 +593,7 @@ In one terminal window, patch the `web` StatefulSet to change the container
593593
image again:
594594

595595
```shell
596-
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"}]'
596+
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"registry.k8s.io/nginx-slim:0.8"}]'
597597
```
598598
```
599599
statefulset.apps/web patched
@@ -1357,4 +1357,4 @@ You also need to delete the persistent storage media for the PersistentVolumes
13571357
used in this tutorial.
13581358
Follow the necessary steps, based on your environment, storage configuration,
13591359
and provisioning method, to ensure that all storage is reclaimed.
1360-
{{< /note >}}
1360+
{{< /note >}}

content/en/examples/application/web/web.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
spec:
3030
containers:
3131
- name: nginx
32-
image: registry.k8s.io/nginx-slim:0.8
32+
image: registry.k8s.io/nginx-slim:0.7
3333
ports:
3434
- containerPort: 80
3535
name: web

0 commit comments

Comments
 (0)