diff --git a/docs/tutorials/stateful-application/zookeeper.md b/docs/tutorials/stateful-application/zookeeper.md index 3796a3aeee..6a2d1b0bc6 100644 --- a/docs/tutorials/stateful-application/zookeeper.md +++ b/docs/tutorials/stateful-application/zookeeper.md @@ -934,12 +934,12 @@ This is because the Pods in the `zk` StatefulSet have a PodAntiAffinity specifie - key: "app" operator: In values: - - zk-headless + - zk-hs topologyKey: "kubernetes.io/hostname" ``` 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` `kubernetes.io/hostname` indicates that the domain is an individual node. Using different rules, labels, and selectors, you can extend this technique to spread diff --git a/docs/tutorials/stateful-application/zookeeper.yaml b/docs/tutorials/stateful-application/zookeeper.yaml index 4afa806a54..65f32bf0db 100644 --- a/docs/tutorials/stateful-application/zookeeper.yaml +++ b/docs/tutorials/stateful-application/zookeeper.yaml @@ -63,7 +63,7 @@ spec: - key: "app" operator: In values: - - zk + - zk-hs topologyKey: "kubernetes.io/hostname" containers: - name: kubernetes-zookeeper