From 1ffa77fc16ff18d5999ea1013b948dfa1b8e2541 Mon Sep 17 00:00:00 2001 From: Hongzhi Li Date: Sun, 24 Sep 2017 16:47:47 -0700 Subject: [PATCH] fix kube dns issue --- src/ClusterBootstrap/template/kube-addons/dns-addon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClusterBootstrap/template/kube-addons/dns-addon.yml b/src/ClusterBootstrap/template/kube-addons/dns-addon.yml index ca206dff..be5efcd2 100755 --- a/src/ClusterBootstrap/template/kube-addons/dns-addon.yml +++ b/src/ClusterBootstrap/template/kube-addons/dns-addon.yml @@ -46,6 +46,7 @@ spec: scheduler.alpha.kubernetes.io/critical-pod: '' scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]' spec: + dnsPolicy: Default containers: - name: kubedns image: gcr.io/google_containers/kubedns-amd64:1.8 @@ -127,7 +128,6 @@ spec: ports: - containerPort: 8080 protocol: TCP - dnsPolicy: ClusterFirstWithHostNet volumes: - hostPath: path: /etc/kubernetes