Skip to content
Snippets Groups Projects
Commit a67a50f9 authored by champtar's avatar champtar Committed by Kubernetes Prow Robot
Browse files

nodelocaldns: allow to set health port, switch to 9254 by default (#4902)


8080 is a pretty common port, using nodelocaldns_ip:8080 still
prevents node processes or hostNetwork=true processes to bind to *:8080
so switch to 9254 by default (prometheus port is 9253)

Signed-off-by: default avatarEtienne Champetier <champetier.etienne@gmail.com>
parent 324bc410
No related branches found
No related tags found
No related merge requests found
...@@ -134,6 +134,7 @@ dns_mode: coredns ...@@ -134,6 +134,7 @@ dns_mode: coredns
# Enable nodelocal dns cache # Enable nodelocal dns cache
enable_nodelocaldns: true enable_nodelocaldns: true
nodelocaldns_ip: 169.254.25.10 nodelocaldns_ip: 169.254.25.10
nodelocaldns_health_port: 9254
# Can be docker_dns, host_resolvconf or none # Can be docker_dns, host_resolvconf or none
resolvconf_mode: docker_dns resolvconf_mode: docker_dns
......
...@@ -21,7 +21,7 @@ data: ...@@ -21,7 +21,7 @@ data:
force_tcp force_tcp
} }
prometheus :9253 prometheus :9253
health {{ nodelocaldns_ip }}:8080 health {{ nodelocaldns_ip }}:{{ nodelocaldns_health_port }}
} }
in-addr.arpa:53 { in-addr.arpa:53 {
errors errors
......
...@@ -58,7 +58,7 @@ spec: ...@@ -58,7 +58,7 @@ spec:
httpGet: httpGet:
host: {{ nodelocaldns_ip }} host: {{ nodelocaldns_ip }}
path: /health path: /health
port: 8080 port: {{ nodelocaldns_health_port }}
scheme: HTTP scheme: HTTP
timeoutSeconds: 5 timeoutSeconds: 5
successThreshold: 1 successThreshold: 1
...@@ -67,7 +67,7 @@ spec: ...@@ -67,7 +67,7 @@ spec:
httpGet: httpGet:
host: {{ nodelocaldns_ip }} host: {{ nodelocaldns_ip }}
path: /health path: /health
port: 8080 port: {{ nodelocaldns_health_port }}
scheme: HTTP scheme: HTTP
timeoutSeconds: 5 timeoutSeconds: 5
successThreshold: 1 successThreshold: 1
......
...@@ -68,6 +68,7 @@ dns_mode: coredns ...@@ -68,6 +68,7 @@ dns_mode: coredns
# Enable nodelocal dns cache # Enable nodelocal dns cache
enable_nodelocaldns: true enable_nodelocaldns: true
nodelocaldns_ip: 169.254.25.10 nodelocaldns_ip: 169.254.25.10
nodelocaldns_health_port: 9254
# Should be set to a cluster IP if using a custom cluster DNS # Should be set to a cluster IP if using a custom cluster DNS
manual_dns_server: "" manual_dns_server: ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment