diff --git a/parts/k8s/addons/kubernetesmasteraddons-kube-dns-deployment.yaml b/parts/k8s/addons/kubernetesmasteraddons-kube-dns-deployment.yaml index 407dd212a8..2251ada6f8 100644 --- a/parts/k8s/addons/kubernetesmasteraddons-kube-dns-deployment.yaml +++ b/parts/k8s/addons/kubernetesmasteraddons-kube-dns-deployment.yaml @@ -146,12 +146,15 @@ spec: - mountPath: /kube-dns-config name: kube-dns-config - args: - - "--cmd=nslookup kubernetes.default.svc. 127.0.0.1 >/dev/null" + - "--cmd=for d in $PROBE_DOMAINS; do nslookup $d 127.0.0.1 >/dev/null || exit 1; done" - "--url=/healthz-dnsmasq" - - "--cmd=nslookup kubernetes.default.svc. 127.0.0.1:10053 >/dev/null" + - "--cmd=for d in $PROBE_DOMAINS; do nslookup $d 127.0.0.1:10053 >/dev/null || exit 1; done" - "--url=/healthz-kubedns" - "--port=8080" - "--quiet" + env: + - name: PROBE_DOMAINS + value: bing.com kubernetes.default.svc. image: livenessProbe: failureThreshold: 5