From 336e2b8c84948a744ffe1db8f55039cc03906d34 Mon Sep 17 00:00:00 2001 From: Smana Date: Tue, 27 Sep 2016 14:15:27 +0200 Subject: [PATCH] use variable dns_domain instead of cluster_name for kubedns --- roles/kubernetes-apps/ansible/templates/kubedns-rc.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml b/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml index 8e80b0e9a..b771a3213 100644 --- a/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml +++ b/roles/kubernetes-apps/ansible/templates/kubedns-rc.yml @@ -53,7 +53,7 @@ spec: timeoutSeconds: 5 args: # command = "/kube-dns" - - --domain={{ cluster_name }}. + - --domain={{ dns_domain }}. - --dns-port=10053 ports: - containerPort: 10053 @@ -91,7 +91,7 @@ spec: # net memory requested by the pod constant. memory: 50Mi args: - - -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 + - -cmd=nslookup kubernetes.default.svc.{{ dns_domain }} 127.0.0.1 >/dev/null && nslookup kubernetes.default.svc.{{ dns_domain }} 127.0.0.1:10053 >/dev/null - -port=8080 - -quiet ports: