Fixed zookeeper YAML and Document headless reference (#7404)

This commit is contained in:
Adam Malowiecki
2018-02-17 14:01:38 +10:00
committed by k8s-ci-robot
parent eea2ddcc91
commit 7180c4b34c
2 changed files with 3 additions and 3 deletions
@@ -934,12 +934,12 @@ This is because the Pods in the `zk` StatefulSet have a PodAntiAffinity specifie
- key: "app" - key: "app"
operator: In operator: In
values: values:
- zk-headless - zk-hs
topologyKey: "kubernetes.io/hostname" topologyKey: "kubernetes.io/hostname"
``` ```
The `requiredDuringSchedulingIgnoredDuringExecution` field tells the The `requiredDuringSchedulingIgnoredDuringExecution` field tells the
Kubernetes Scheduler that it should never co-locate two Pods from the `zk-headless` Kubernetes Scheduler that it should never co-locate two Pods from the `zk-hs`
Service in the domain defined by the `topologyKey`. The `topologyKey` Service in the domain defined by the `topologyKey`. The `topologyKey`
`kubernetes.io/hostname` indicates that the domain is an individual node. Using `kubernetes.io/hostname` indicates that the domain is an individual node. Using
different rules, labels, and selectors, you can extend this technique to spread different rules, labels, and selectors, you can extend this technique to spread
@@ -63,7 +63,7 @@ spec:
- key: "app" - key: "app"
operator: In operator: In
values: values:
- zk - zk-hs
topologyKey: "kubernetes.io/hostname" topologyKey: "kubernetes.io/hostname"
containers: containers:
- name: kubernetes-zookeeper - name: kubernetes-zookeeper