mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
kubeadm: use nodeselector instead of affinity in kube-dns
This commit is contained in:
parent
d1949261ab
commit
9a2e58b5e7
@ -173,16 +173,8 @@ spec:
|
|||||||
operator: Exists
|
operator: Exists
|
||||||
- key: {{ .MasterTaintKey }}
|
- key: {{ .MasterTaintKey }}
|
||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
# TODO: Remove this affinity field as soon as we are using manifest lists
|
nodeSelector:
|
||||||
affinity:
|
beta.kubernetes.io/arch: {{ .Arch }}
|
||||||
nodeAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
nodeSelectorTerms:
|
|
||||||
- matchExpressions:
|
|
||||||
- key: beta.kubernetes.io/arch
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- {{ .Arch }}
|
|
||||||
`
|
`
|
||||||
|
|
||||||
// KubeDNSService is the kube-dns Service manifest
|
// KubeDNSService is the kube-dns Service manifest
|
||||||
|
Loading…
Reference in New Issue
Block a user