You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/tutorials/stateful-application/zookeeper.md
+42-4Lines changed: 42 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -981,6 +981,8 @@ statefulset rolling update complete 3 pods at revision zk-5db4499664...
981
981
This terminates the Pods, one at a time, in reverse ordinal order, and recreates them with the new configuration. This ensures that quorum is maintained during a rolling update.
982
982
983
983
Use the `kubectl rollout history` command to view a history or previous configurations.
984
+
985
+
The output is similar to this:
984
986
-->
985
987
这项操作会逆序地依次终止每一个 Pod,并用新的配置重新创建。
986
988
这样做确保了在滚动更新的过程中 quorum 依旧保持工作。
@@ -991,6 +993,8 @@ Use the `kubectl rollout history` command to view a history or previous configur
991
993
kubectl rollout history sts/zk
992
994
```
993
995
996
+
输出类似于:
997
+
994
998
```
995
999
statefulsets "zk"
996
1000
REVISION
@@ -1000,13 +1004,17 @@ REVISION
1000
1004
1001
1005
<!--
1002
1006
Use the `kubectl rollout undo` command to roll back the modification.
1007
+
1008
+
The output is similar to this:
1003
1009
-->
1004
1010
使用 `kubectl rollout undo` 命令撤销这次的改动。
1005
1011
1006
1012
```shell
1007
1013
kubectl rollout undo sts/zk
1008
1014
```
1009
1015
1016
+
输出类似于:
1017
+
1010
1018
```
1011
1019
statefulset.apps/zk rolled back
1012
1020
```
@@ -1154,7 +1162,7 @@ In another window, using the following command to delete the `zookeeper-ready` s
1154
1162
在另一个窗口中,从 Pod `zk-0` 的文件系统中删除 `zookeeper-ready` 脚本。
0 commit comments