From 66491d2d892cef9e73be4d0f7472322ebecf48f1 Mon Sep 17 00:00:00 2001 From: Srinivasa Satya Pradeep Nekkalapudi Date: Sun, 8 Mar 2020 19:05:44 -0700 Subject: [PATCH] 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. --- cluster/addons/dns/nodelocaldns/nodelocaldns.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml b/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml index a217fdf845f..c4b8baa0a65 100644 --- a/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml +++ b/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml @@ -131,6 +131,10 @@ spec: tolerations: - key: "CriticalAddonsOnly" operator: "Exists" + - effect: "NoExecute" + operator: "Exists" + - effect: "NoSchedule" + operator: "Exists" containers: - name: node-cache image: k8s.gcr.io/k8s-dns-node-cache:1.15.10