Skip to content

Commit 152dbc5

Browse files
authored
Merge pull request #46616 from my-git9/pt-11372
[zh-cn] sync basic-stateful-set.md
2 parents 123b3ab + 339be76 commit 152dbc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/zh-cn/docs/tutorials/stateful-application/basic-stateful-set.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ nginx ClusterIP None <none> 80/TCP 12s
195195
kubectl get statefulset web
196196
```
197197
```
198-
NAME DESIRED CURRENT AGE
199-
web 2 1 20s
198+
NAME READY AGE
199+
web 2/2 37s
200200
```
201201

202202
<!--
@@ -984,7 +984,7 @@ image again:
984984
在一个终端窗口中对 `web` StatefulSet 执行 patch 操作来再次改变容器镜像:
985985

986986
```shell
987-
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"}]'
987+
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"registry.k8s.io/nginx-slim:0.8"}]'
988988
```
989989
```
990990
statefulset.apps/web patched

0 commit comments

Comments
 (0)