[en] update yaml docs
This commit is contained in:
parent
1b1917c16c
commit
f9ac04521d
|
|
@ -742,14 +742,14 @@ that your application's processes are unhealthy and it should restart them.
|
||||||
The Pod `template` for the `zk` `StatefulSet` specifies a liveness probe.
|
The Pod `template` for the `zk` `StatefulSet` specifies a liveness probe.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- "zookeeper-ready 2181"
|
- "zookeeper-ready 2181"
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
```
|
```
|
||||||
|
|
||||||
The probe calls a bash script that uses the ZooKeeper `ruok` four letter
|
The probe calls a bash script that uses the ZooKeeper `ruok` four letter
|
||||||
|
|
@ -860,16 +860,16 @@ kubernetes-node-2g2d
|
||||||
This is because the Pods in the `zk` `StatefulSet` have a `PodAntiAffinity` specified.
|
This is because the Pods in the `zk` `StatefulSet` have a `PodAntiAffinity` specified.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
affinity:
|
affinity:
|
||||||
podAntiAffinity:
|
podAntiAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: "app"
|
- key: "app"
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- zk
|
- zk
|
||||||
topologyKey: "kubernetes.io/hostname"
|
topologyKey: "kubernetes.io/hostname"
|
||||||
```
|
```
|
||||||
|
|
||||||
The `requiredDuringSchedulingIgnoredDuringExecution` field tells the
|
The `requiredDuringSchedulingIgnoredDuringExecution` field tells the
|
||||||
|
|
@ -1010,7 +1010,7 @@ zk-1 0/1 Pending 0 0s
|
||||||
zk-1 0/1 Pending 0 0s
|
zk-1 0/1 Pending 0 0s
|
||||||
```
|
```
|
||||||
|
|
||||||
Continue to watch the Pods of the stateful set, and drain the node on which
|
Continue to watch the Pods of the StatefulSet, and drain the node on which
|
||||||
`zk-2` is scheduled.
|
`zk-2` is scheduled.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue