From 7180c4b34cf15da5c902f60e939d3d0e5e0abe8a Mon Sep 17 00:00:00 2001 From: Adam Malowiecki Date: Sat, 17 Feb 2018 14:01:38 +1000 Subject: [PATCH] Fixed zookeeper YAML and Document headless reference (#7404) --- docs/tutorials/stateful-application/zookeeper.md | 4 ++-- docs/tutorials/stateful-application/zookeeper.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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