File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed
content/en/docs/tutorials/stateful-application Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -742,14 +742,14 @@ that your application's processes are unhealthy and it should restart them.
742
742
The Pod ` template ` for the ` zk ` ` StatefulSet ` specifies a liveness probe.
743
743
744
744
``` 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
753
753
` ` `
754
754
755
755
The probe calls a bash script that uses the ZooKeeper ` ruok` four letter
@@ -860,16 +860,16 @@ kubernetes-node-2g2d
860
860
This is because the Pods in the `zk` `StatefulSet` have a `PodAntiAffinity` specified.
861
861
862
862
```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"
873
873
```
874
874
875
875
The ` requiredDuringSchedulingIgnoredDuringExecution ` field tells the
@@ -1010,7 +1010,7 @@ zk-1 0/1 Pending 0 0s
1010
1010
zk-1 0/1 Pending 0 0s
1011
1011
```
1012
1012
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
1014
1014
` zk-2 ` is scheduled.
1015
1015
1016
1016
``` shell
You can’t perform that action at this time.
0 commit comments