From 83a6c5cf61d328e50e01dcce1ba62ed9e43d86cc Mon Sep 17 00:00:00 2001 From: Anthony Haussmann Date: Fri, 23 Sep 2016 17:44:09 +0200 Subject: [PATCH] Correct nslookup command Change nslookup command to check the right cluster_name --- roles/kubernetes-apps/ansible/templates/kubedns-rc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml b/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml index e58639deb..8e80b0e9a 100644 --- a/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml +++ b/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml @@ -91,7 +91,7 @@ spec: # net memory requested by the pod constant. memory: 50Mi args: - - -cmd=nslookup kubernetes.default.svc.cluster.local 127.0.0.1 >/dev/null && nslookup kubernetes.default.svc.cluster.local 127.0.0.1:10053 >/dev/null + - -cmd=nslookup kubernetes.default.svc.{{ cluster_name }} 127.0.0.1 >/dev/null && nslookup kubernetes.default.svc.{{ cluster_name }} 127.0.0.1:10053 >/dev/null - -port=8080 - -quiet ports: