Fixed wrong value in exmaple (#9278)

`zk-hs` should be just `zk` in this case.
pull/9323/merge
Jihyuk Bok 2018-07-12 02:18:26 +02:00 committed by k8s-ci-robot
parent 09e5db0724
commit c40fe8a8a0
1 changed files with 3 additions and 3 deletions

View File

@ -848,13 +848,13 @@ This is because the Pods in the `zk` `StatefulSet` have a `PodAntiAffinity` spec
- key: "app"
operator: In
values:
- zk-hs
- zk
topologyKey: "kubernetes.io/hostname"
```
The `requiredDuringSchedulingIgnoredDuringExecution` field tells the
Kubernetes Scheduler that it should never co-locate two Pods from the `zk-hs`
Service in the domain defined by the `topologyKey`. The `topologyKey`
Kubernetes Scheduler that it should never co-locate two Pods which have `app` label
as `zk` in the domain defined by the `topologyKey`. The `topologyKey`
`kubernetes.io/hostname` indicates that the domain is an individual node. Using
different rules, labels, and selectors, you can extend this technique to spread
your ensemble across physical, network, and power failure domains.