Skip to content
Snippets Groups Projects
Commit aa60b689 authored by galal-hussein's avatar galal-hussein
Browse files

Add pod antiaffinity to kubedns template

parent 8fb0f240
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,17 @@ spec:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment