[zh-cn] sync basic-stateful-set.md

Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
xin.li 2024-06-02 09:22:39 +08:00
parent b5677b6e96
commit 339be76702
1 changed files with 3 additions and 3 deletions

View File

@ -195,8 +195,8 @@ nginx ClusterIP None <none> 80/TCP 12s
kubectl get statefulset web kubectl get statefulset web
``` ```
``` ```
NAME DESIRED CURRENT AGE NAME READY AGE
web 2 1 20s web 2/2 37s
``` ```
<!-- <!--
@ -984,7 +984,7 @@ image again:
在一个终端窗口中对 `web` StatefulSet 执行 patch 操作来再次改变容器镜像: 在一个终端窗口中对 `web` StatefulSet 执行 patch 操作来再次改变容器镜像:
```shell ```shell
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"}]' kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"registry.k8s.io/nginx-slim:0.8"}]'
``` ```
``` ```
statefulset.apps/web patched statefulset.apps/web patched