mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Fix: nodelocaldns capabilities usage (#12398)
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
@@ -59,7 +59,9 @@ spec:
|
|||||||
name: metrics
|
name: metrics
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_ADMIN
|
||||||
{% if nodelocaldns_bind_metrics_host_ip %}
|
{% if nodelocaldns_bind_metrics_host_ip %}
|
||||||
env:
|
env:
|
||||||
- name: MY_HOST_IP
|
- name: MY_HOST_IP
|
||||||
|
|||||||
@@ -44,7 +44,9 @@ spec:
|
|||||||
name: metrics
|
name: metrics
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_ADMIN
|
||||||
{% if nodelocaldns_bind_metrics_host_ip %}
|
{% if nodelocaldns_bind_metrics_host_ip %}
|
||||||
env:
|
env:
|
||||||
- name: MY_HOST_IP
|
- name: MY_HOST_IP
|
||||||
|
|||||||
Reference in New Issue
Block a user