[zh] Fixed command for kubectl patch statefulset

pull/49827/head
Arhell 2025-02-19 00:11:30 +02:00
parent 535b1e6ebb
commit 2586b6ad6d
1 changed files with 1 additions and 1 deletions

View File

@ -1518,7 +1518,7 @@ Patch the `web` StatefulSet to use the `OnDelete` update strategy:
`web` StatefulSet 执行 patch 操作,以使用 `OnDelete` 更新策略:
```shell
kubectl patch statefulset web -p '{"spec":{"updateStrategy":{"type":"OnDelete"}}}'
kubectl patch statefulset web -p '{"spec":{"updateStrategy":{"type":"OnDelete", "rollingUpdate": null}}}'
```
```
statefulset.apps/web patched