preferred cause single node failure of coredns (#260)

preferredDuringSchedulingIgnoredDuringExecution cause single node failure in mostly deployment when increasing node one by one by cluster. In most deployment, when one node running coredns is lost, coredns service is outage at least 5mins.Suggest to use **requiredDuringSchedulingIgnoredDuringExecution** instead to avoid single node failure issue.

Signed-off-by: Eric <cu.eric.lee@gmail.com>
This commit is contained in:
Eric 2022-01-14 22:18:23 +08:00 committed by GitHub
parent 22cdb6becb
commit e3a5468227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,10 +105,8 @@ spec:
kubernetes.io/os: linux kubernetes.io/os: linux
affinity: affinity:
podAntiAffinity: podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
- weight: 100 - labelSelector:
podAffinityTerm:
labelSelector:
matchExpressions: matchExpressions:
- key: k8s-app - key: k8s-app
operator: In operator: In