mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
helm: Add selinuxMount flag to enable/disable /etc/selinux host mount
Add selinuxMount flag to enable/disable /etc/selinux host mount inside pods to support selinux-enabled filesystems Signed-off-by: Francesco Astegiano <francesco.astegiano@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
ea89b26f65
commit
4235178f7c
@ -112,9 +112,11 @@ spec:
|
||||
name: host-mount
|
||||
- mountPath: /sys
|
||||
name: host-sys
|
||||
{{- if .Values.selinuxMount }}
|
||||
- mountPath: /etc/selinux
|
||||
name: etc-selinux
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
- mountPath: /lib/modules
|
||||
name: lib-modules
|
||||
readOnly: true
|
||||
@ -176,9 +178,11 @@ spec:
|
||||
- name: host-sys
|
||||
hostPath:
|
||||
path: /sys
|
||||
{{- if .Values.selinuxMount }}
|
||||
- name: etc-selinux
|
||||
hostPath:
|
||||
path: /etc/selinux
|
||||
{{- end }}
|
||||
- name: host-mount
|
||||
hostPath:
|
||||
path: /run/mount
|
||||
|
@ -40,8 +40,10 @@ spec:
|
||||
readOnly: false
|
||||
- pathPrefix: '/sys'
|
||||
readOnly: false
|
||||
{{- if .Values.selinuxMount }}
|
||||
- pathPrefix: '/etc/selinux'
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
- pathPrefix: '/lib/modules'
|
||||
readOnly: true
|
||||
- pathPrefix: '{{ .Values.kubeletDir }}'
|
||||
|
Reference in New Issue
Block a user