From c0221c2e7210ea31706058ee06336df62c952667 Mon Sep 17 00:00:00 2001 From: Hedayat Vatankhah Date: Sun, 12 Aug 2018 20:31:42 +0430 Subject: [PATCH] Add --dns-loop-detect to dnsmasq used in kube-dns It prevents DNS loops when host's DNS server is a localhost DNS server, or when DNS server of cluster is also added as an upstream DNS server --- roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml.j2 b/roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml.j2 index bb040780f..38858a621 100644 --- a/roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/kubedns-deploy.yml.j2 @@ -127,6 +127,7 @@ spec: - -- - -k - --cache-size=1000 + - --dns-loop-detect - --log-facility=- - --server=/{{ dns_domain }}/127.0.0.1#10053 - --server=/in-addr.arpa/127.0.0.1#10053