mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-18 11:40:10 -03:30
fix kube-vip container securityContext (#11647)
This commit is contained in:
@@ -104,11 +104,16 @@ spec:
|
|||||||
imagePullPolicy: {{ k8s_image_pull_policy }}
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
||||||
name: kube-vip
|
name: kube-vip
|
||||||
resources: {}
|
resources: {}
|
||||||
|
{% if kube_vip_lb_fwdmethod == "masquerade" %}
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
{% else %}
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
- NET_RAW
|
- NET_RAW
|
||||||
|
{% endif %}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /etc/kubernetes/admin.conf
|
- mountPath: /etc/kubernetes/admin.conf
|
||||||
name: kubeconfig
|
name: kubeconfig
|
||||||
|
|||||||
Reference in New Issue
Block a user