Skip to content
Snippets Groups Projects
Unverified Commit 693eb74f authored by kyrie's avatar kyrie Committed by GitHub
Browse files

fix kube-vip container securityContext (#11647)

parent 5aea2abc
Branches
Tags
No related merge requests found
......@@ -104,11 +104,16 @@ spec:
imagePullPolicy: {{ k8s_image_pull_policy }}
name: kube-vip
resources: {}
{% if kube_vip_lb_fwdmethod == "masquerade" %}
securityContext:
privileged: true
{% else %}
securityContext:
capabilities:
add:
- NET_ADMIN
- NET_RAW
{% endif %}
volumeMounts:
- mountPath: /etc/kubernetes/admin.conf
name: kubeconfig
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment