From 2a4a3fbdcaad33dfa95482acfea73823368657ae Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Sat, 1 Jul 2017 11:29:49 -0500 Subject: [PATCH] Ceph: Fix pod antiaffinity for mons This PS fixes the pod anti-affinity declaration for mons. Change-Id: I81179453c5efaee66dc8a43075d8c542e3ddadef --- ceph/templates/statefulset-mon.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ceph/templates/statefulset-mon.yaml b/ceph/templates/statefulset-mon.yaml index 33e7151fe9..7ab91e8bf0 100644 --- a/ceph/templates/statefulset-mon.yaml +++ b/ceph/templates/statefulset-mon.yaml @@ -44,7 +44,12 @@ spec: matchExpressions: - key: app operator: In - values: ["mon"] + values: + - ceph + - key: daemon + operator: In + values: + - mon topologyKey: kubernetes.io/hostname weight: 10 nodeSelector: