Skip to content

Commit 55b0abf

Browse files
authored
Merge pull request #31843 from 0xff-dev/en-main
[en] update yaml docs
2 parents cb54a72 + f9ac045 commit 55b0abf

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

content/en/docs/tutorials/stateful-application/zookeeper.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -742,14 +742,14 @@ that your application's processes are unhealthy and it should restart them.
742742
The Pod `template` for the `zk` `StatefulSet` specifies a liveness probe.
743743

744744
```yaml
745-
livenessProbe:
746-
exec:
747-
command:
748-
- sh
749-
- -c
750-
- "zookeeper-ready 2181"
751-
initialDelaySeconds: 15
752-
timeoutSeconds: 5
745+
livenessProbe:
746+
exec:
747+
command:
748+
- sh
749+
- -c
750+
- "zookeeper-ready 2181"
751+
initialDelaySeconds: 15
752+
timeoutSeconds: 5
753753
```
754754
755755
The probe calls a bash script that uses the ZooKeeper `ruok` four letter
@@ -860,16 +860,16 @@ kubernetes-node-2g2d
860860
This is because the Pods in the `zk` `StatefulSet` have a `PodAntiAffinity` specified.
861861
862862
```yaml
863-
affinity:
864-
podAntiAffinity:
865-
requiredDuringSchedulingIgnoredDuringExecution:
866-
- labelSelector:
867-
matchExpressions:
868-
- key: "app"
869-
operator: In
870-
values:
871-
- zk
872-
topologyKey: "kubernetes.io/hostname"
863+
affinity:
864+
podAntiAffinity:
865+
requiredDuringSchedulingIgnoredDuringExecution:
866+
- labelSelector:
867+
matchExpressions:
868+
- key: "app"
869+
operator: In
870+
values:
871+
- zk
872+
topologyKey: "kubernetes.io/hostname"
873873
```
874874

875875
The `requiredDuringSchedulingIgnoredDuringExecution` field tells the
@@ -1010,7 +1010,7 @@ zk-1 0/1 Pending 0 0s
10101010
zk-1 0/1 Pending 0 0s
10111011
```
10121012

1013-
Continue to watch the Pods of the stateful set, and drain the node on which
1013+
Continue to watch the Pods of the StatefulSet, and drain the node on which
10141014
`zk-2` is scheduled.
10151015

10161016
```shell

0 commit comments

Comments
 (0)