Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Change dns healthcheck to look at external domain (#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlpett authored and jackfrancis committed Aug 1, 2018
1 parent bde3ca9 commit fb4e358
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,15 @@ spec:
- mountPath: /kube-dns-config
name: kube-dns-config
- args:
- "--cmd=nslookup kubernetes.default.svc.<kubernetesKubeletClusterDomain> 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.<kubernetesKubeletClusterDomain> 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.<kubernetesKubeletClusterDomain>
image: <kubernetesExecHealthzSpec>
livenessProbe:
failureThreshold: 5
Expand Down

0 comments on commit fb4e358

Please sign in to comment.