Skip to content

Commit 6afd90b

Browse files
authored
Merge pull request #49827 from Arhell/zh-fix
[zh] Fixed command for kubectl patch statefulset
2 parents 6bf5be8 + 2586b6a commit 6afd90b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ Patch the `web` StatefulSet to use the `OnDelete` update strategy:
15181518
`web` StatefulSet 执行 patch 操作,以使用 `OnDelete` 更新策略:
15191519

15201520
```shell
1521-
kubectl patch statefulset web -p '{"spec":{"updateStrategy":{"type":"OnDelete"}}}'
1521+
kubectl patch statefulset web -p '{"spec":{"updateStrategy":{"type":"OnDelete", "rollingUpdate": null}}}'
15221522
```
15231523
```
15241524
statefulset.apps/web patched

0 commit comments

Comments
 (0)