Skip to content

Commit 66491d2

Browse files
pradeepnssPradeep Nekkalapudi
authored andcommitted
Add tolerations with effect "NoExecute" and "NoSchedule" to allow schedule of nodelocaldns pods on node pools with taints
Currently if we define taints on all node pools in a cluster then nodelocaldns pods wont get scheduled on those node pools. Also in GKE as the daemonset has reconcile flag set tolerations cannot be added. So adding these tolerations will allow nodelocaldns pods to get scheduled on all node pools.
1 parent 562a420 commit 66491d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cluster/addons/dns/nodelocaldns/nodelocaldns.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ spec:
131131
tolerations:
132132
- key: "CriticalAddonsOnly"
133133
operator: "Exists"
134+
- effect: "NoExecute"
135+
operator: "Exists"
136+
- effect: "NoSchedule"
137+
operator: "Exists"
134138
containers:
135139
- name: node-cache
136140
image: k8s.gcr.io/k8s-dns-node-cache:1.15.10

0 commit comments

Comments
 (0)