From c40fe8a8a0ea3b56c7757be0478de787bfc99db8 Mon Sep 17 00:00:00 2001 From: Jihyuk Bok Date: Thu, 12 Jul 2018 02:18:26 +0200 Subject: [PATCH] Fixed wrong value in exmaple (#9278) `zk-hs` should be just `zk` in this case. --- content/en/docs/tutorials/stateful-application/zookeeper.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/docs/tutorials/stateful-application/zookeeper.md b/content/en/docs/tutorials/stateful-application/zookeeper.md index 3fad9a04a34..d0375a09602 100644 --- a/content/en/docs/tutorials/stateful-application/zookeeper.md +++ b/content/en/docs/tutorials/stateful-application/zookeeper.md @@ -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.