Adding pod anti-affinity to the deployment manifest. (#52)

This commit is contained in:
Steven Wade 2018-01-18 20:25:39 +00:00 committed by Chris O'Haver
parent 83dad27fc8
commit 29da3093c4

View file

@ -86,6 +86,18 @@ spec:
effect: NoSchedule
- key: "CriticalAddonsOnly"
operator: "Exists"
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: k8s-app
operator: In
values:
- coredns
topologyKey: kubernetes.io/hostname
containers:
- name: coredns
image: coredns/coredns:1.0.3