Merge pull request #110593 from SataQiu/kubeadm-coredns-20220615

kubeadm: add the preferred pod anti-affinity for CoreDNS Deployment
This commit is contained in:
Kubernetes Prow Robot 2022-06-22 09:29:56 -07:00 committed by GitHub
commit e9702cfc1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,17 @@ spec:
spec:
priorityClassName: system-cluster-critical
serviceAccountName: coredns
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: k8s-app
operator: In
values: ["kube-dns"]
topologyKey: kubernetes.io/hostname
tolerations:
- key: CriticalAddonsOnly
operator: Exists