Skip to content

Commit e9c7b06

Browse files
committed
Modify registry.k8s.io/nginx-slim version from 0.8 to 0.24
1 parent fb6bf49 commit e9c7b06

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

content/en/docs/concepts/workloads/controllers/statefulset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ spec:
101101
terminationGracePeriodSeconds: 10
102102
containers:
103103
- name: nginx
104-
image: registry.k8s.io/nginx-slim:0.8
104+
image: registry.k8s.io/nginx-slim:0.24
105105
ports:
106106
- containerPort: 80
107107
name: web

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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":"registry.k8s.io/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.24"}]'
597597
```
598598
```
599599
statefulset.apps/web patched
@@ -661,9 +661,9 @@ Get the Pods to view their container images:
661661
for p in 0 1 2; do kubectl get pod "web-$p" --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done
662662
```
663663
```
664-
registry.k8s.io/nginx-slim:0.8
665-
registry.k8s.io/nginx-slim:0.8
666-
registry.k8s.io/nginx-slim:0.8
664+
registry.k8s.io/nginx-slim:0.24
665+
registry.k8s.io/nginx-slim:0.24
666+
registry.k8s.io/nginx-slim:0.24
667667
668668
```
669669

@@ -705,7 +705,7 @@ Patch the StatefulSet again to change the container image that this
705705
StatefulSet uses:
706706

707707
```shell
708-
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"registry.k8s.io/nginx-slim:0.7"}]'
708+
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"registry.k8s.io/nginx-slim:0.21"}]'
709709
```
710710
```
711711
statefulset.apps/web patched
@@ -740,7 +740,7 @@ Get the Pod's container image:
740740
kubectl get pod web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'
741741
```
742742
```
743-
registry.k8s.io/nginx-slim:0.8
743+
registry.k8s.io/nginx-slim:0.24
744744
```
745745

746746
Notice that, even though the update strategy is `RollingUpdate` the StatefulSet
@@ -790,7 +790,7 @@ Get the Pod's container:
790790
kubectl get pod web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'
791791
```
792792
```
793-
registry.k8s.io/nginx-slim:0.7
793+
registry.k8s.io/nginx-slim:0.21
794794
795795
```
796796

@@ -834,7 +834,7 @@ Get the `web-1` Pod's container image:
834834
kubectl get pod web-1 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'
835835
```
836836
```
837-
registry.k8s.io/nginx-slim:0.8
837+
registry.k8s.io/nginx-slim:0.24
838838
```
839839

840840
`web-1` was restored to its original configuration because the Pod's ordinal
@@ -892,9 +892,9 @@ Get the container image details for the Pods in the StatefulSet:
892892
for p in 0 1 2; do kubectl get pod "web-$p" --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done
893893
```
894894
```
895-
registry.k8s.io/nginx-slim:0.7
896-
registry.k8s.io/nginx-slim:0.7
897-
registry.k8s.io/nginx-slim:0.7
895+
registry.k8s.io/nginx-slim:0.21
896+
registry.k8s.io/nginx-slim:0.21
897+
registry.k8s.io/nginx-slim:0.21
898898
```
899899

900900
By moving the `partition` to `0`, you allowed the StatefulSet to

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
spec:
3131
containers:
3232
- name: nginx
33-
image: registry.k8s.io/nginx-slim:0.8
33+
image: registry.k8s.io/nginx-slim:0.24
3434
ports:
3535
- containerPort: 80
3636
name: web

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.7
32+
image: registry.k8s.io/nginx-slim:0.21
3333
ports:
3434
- containerPort: 80
3535
name: web

0 commit comments

Comments
 (0)