mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 12:32:34 +02:00
use preferred during scheduling rule (#221)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
parent
4ec31a59be
commit
16cedfdb99
1 changed files with 10 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue