use preferred during scheduling rule (#221)

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver 2020-05-07 13:29:34 -04:00 committed by GitHub
parent 4ec31a59be
commit 16cedfdb99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,14 +101,16 @@ spec:
nodeSelector: nodeSelector:
kubernetes.io/os: linux kubernetes.io/os: linux
affinity: affinity:
podAntiAffinity: podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution: preferredDuringSchedulingIgnoredDuringExecution:
- labelSelector: - weight: 100
matchExpressions: podAffinityTerm:
- key: k8s-app labelSelector:
operator: In matchExpressions:
values: ["kube-dns"] - key: k8s-app
topologyKey: kubernetes.io/hostname operator: In
values: ["kube-dns"]
topologyKey: kubernetes.io/hostname
containers: containers:
- name: coredns - name: coredns
image: coredns/coredns:1.6.7 image: coredns/coredns:1.6.7