Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Selinux Mounts #2253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions charts/aws-ebs-csi-driver/templates/_node.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ spec:
mountPath: /csi
- name: device-dir
mountPath: /dev
- name: selinux-sysfs
mountPath: /sys/fs/selinux
- name: selinux-config
mountPath: /etc/selinux/config
{{- with .Values.node.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down Expand Up @@ -244,6 +248,16 @@ spec:
hostPath:
path: /dev
type: Directory
- name: selinux-sysfs
hostPath:
path: /sys/fs/selinux
type: Directory
readOnly: true
- name: selinux-config
hostPath:
path: /etc/selinux/config
type: File
readOnly: true
- name: probe-dir
{{- if .Values.node.probeDirVolume }}
{{- toYaml .Values.node.probeDirVolume | nindent 10 }}
Expand Down
14 changes: 14 additions & 0 deletions deploy/kubernetes/base/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ spec:
mountPath: /csi
- name: device-dir
mountPath: /dev
- name: selinux-sysfs
mountPath: /sys/fs/selinux
- name: selinux-config
mountPath: /etc/selinux/config
ports:
- name: healthz
containerPort: 9808
Expand Down Expand Up @@ -175,5 +179,15 @@ spec:
hostPath:
path: /dev
type: Directory
- name: selinux-sysfs
hostPath:
path: /sys/fs/selinux
type: Directory
readOnly: true
- name: selinux-config
hostPath:
path: /etc/selinux/config
type: File
readOnly: true
- name: probe-dir
emptyDir: {}
Loading