fix kube-vip container securityContext (#11647)
parent
5aea2abc40
commit
693eb74f52
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue