mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-25 09:37:46 -02:30
nodelocaldns: allow binding metrics address to host IP (#7748)
This commit is contained in:
@@ -41,6 +41,13 @@ spec:
|
||||
args: [ "-localip", "{{ nodelocaldns_ip }}", "-conf", "/etc/coredns/Corefile", "-upstreamsvc", "coredns" ]
|
||||
securityContext:
|
||||
privileged: true
|
||||
{% if nodelocaldns_bind_metrics_host_ip %}
|
||||
env:
|
||||
- name: MY_HOST_IP
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: status.hostIP
|
||||
{% endif %}
|
||||
ports:
|
||||
- containerPort: 53
|
||||
name: dns
|
||||
|
||||
Reference in New Issue
Block a user