Skip to content

Commit 9aff7d9

Browse files
author
k8s-merge-robot
authored
Merge pull request kubernetes#27652 from girishkalele/kubedns_healthz
Automatic merge from submit-queue Enhance kubedns pod health checks to cover kubedns container The existing health check hits port 53, the dnsmasq container, with the same domain name every time. Since dnsmasq looks up and caches results from the kubedns container, running on port 10053, the health check is not covering the kubedns container after the first query (and once every TTL expiration). This PR enhances the health check to directly hit port 10053 (kubedns) in addition to port 53.
2 parents 3d22132 + 1d08218 commit 9aff7d9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cluster/saltbase/salt/kube-dns/skydns-rc.yaml.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ spec:
107107
cpu: 10m
108108
memory: 20Mi
109109
args:
110-
- -cmd=nslookup kubernetes.default.svc.__PILLAR__DNS__DOMAIN__ 127.0.0.1 >/dev/null
110+
- -cmd=nslookup kubernetes.default.svc.__PILLAR__DNS__DOMAIN__ 127.0.0.1 >/dev/null && nslookup kubernetes.default.svc.__PILLAR__DNS__DOMAIN__ 127.0.0.1:10053 >/dev/null
111111
- -port=8080
112112
- -quiet
113113
ports:

cluster/saltbase/salt/kube-dns/skydns-rc.yaml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ spec:
107107
cpu: 10m
108108
memory: 20Mi
109109
args:
110-
- -cmd=nslookup kubernetes.default.svc.{{ pillar['dns_domain'] }} 127.0.0.1 >/dev/null
110+
- -cmd=nslookup kubernetes.default.svc.{{ pillar['dns_domain'] }} 127.0.0.1 >/dev/null && nslookup kubernetes.default.svc.{{ pillar['dns_domain'] }} 127.0.0.1:10053 >/dev/null
111111
- -port=8080
112112
- -quiet
113113
ports:

cluster/saltbase/salt/kube-dns/skydns-rc.yaml.sed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ spec:
106106
cpu: 10m
107107
memory: 20Mi
108108
args:
109-
- -cmd=nslookup kubernetes.default.svc.$DNS_DOMAIN 127.0.0.1 >/dev/null
109+
- -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
110110
- -port=8080
111111
- -quiet
112112
ports:

0 commit comments

Comments
 (0)