Ensure metrics port exists for nodelocaldns/nodelocaldns-second daemonsets (#11998)

- update metrics port to use port variable
- unconditionally define ports
This commit is contained in:
Ricky Kwan
2025-03-27 07:14:34 -04:00
committed by GitHub
parent aa0c0851f8
commit 4a5b524b98
2 changed files with 6 additions and 3 deletions

View File

@@ -39,6 +39,10 @@ spec:
cpu: {{ nodelocaldns_cpu_requests }}
memory: {{ nodelocaldns_memory_requests }}
args: [ "-localip", "{{ nodelocaldns_ip }}", "-conf", "/etc/coredns/Corefile", "-upstreamsvc", "coredns", "-skipteardown" ]
ports:
- containerPort: {{ nodelocaldns_secondary_prometheus_port }}
name: metrics
protocol: TCP
securityContext:
privileged: true
{% if nodelocaldns_bind_metrics_host_ip %}