Merge pull request #85947 from jsafrane/privileged-hostpath

Run all csi-hostpath containers as privileged
This commit is contained in:
Kubernetes Prow Robot
2019-12-05 12:33:04 -08:00
committed by GitHub
5 changed files with 23 additions and 0 deletions

View File

@@ -44,6 +44,11 @@ spec:
args:
- --v=5
- --csi-address=/csi/csi.sock
securityContext:
# This is necessary only for systems with SELinux, where
# non-privileged sidecar containers cannot access unix domain socket
# created by privileged CSI driver container.
privileged: true
volumeMounts:
- mountPath: /csi
name: socket-dir

View File

@@ -46,6 +46,9 @@ spec:
- --csi-address=/csi/csi.sock
- --kubelet-registration-path=/var/lib/kubelet/plugins/csi-hostpath/csi.sock
securityContext:
# This is necessary only for systems with SELinux, where
# non-privileged sidecar containers cannot access unix domain socket
# created by privileged CSI driver container.
privileged: true
env:
- name: KUBE_NODE_NAME

View File

@@ -46,6 +46,11 @@ spec:
- -v=5
- --csi-address=/csi/csi.sock
- --connection-timeout=15s
securityContext:
# This is necessary only for systems with SELinux, where
# non-privileged sidecar containers cannot access unix domain socket
# created by privileged CSI driver container.
privileged: true
volumeMounts:
- mountPath: /csi
name: socket-dir

View File

@@ -37,6 +37,11 @@ spec:
env:
- name: ADDRESS
value: /csi/csi.sock
securityContext:
# This is necessary only for systems with SELinux, where
# non-privileged sidecar containers cannot access unix domain socket
# created by privileged CSI driver container.
privileged: true
imagePullPolicy: Always
volumeMounts:
- mountPath: /csi

View File

@@ -38,6 +38,11 @@ spec:
env:
- name: ADDRESS
value: /csi/csi.sock
securityContext:
# This is necessary only for systems with SELinux, where
# non-privileged sidecar containers cannot access unix domain socket
# created by privileged CSI driver container.
privileged: true
imagePullPolicy: Always
volumeMounts:
- name: socket-dir