Merge pull request #49827 from Arhell/zh-fix

[zh] Fixed command for kubectl patch statefulset
pull/49834/head
Kubernetes Prow Robot 2025-02-18 17:58:27 -08:00 committed by GitHub
commit 6afd90bf66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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