-
Notifications
You must be signed in to change notification settings - Fork 0
/
selinux-k8s.yaml
46 lines (46 loc) · 1.05 KB
/
selinux-k8s.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: v1
kind: Pod
metadata:
name: selinux-k8s
spec:
containers:
- name: selinux-k8s
image: quay.io/jaosorior/selinux-k8s:latest
command: ['selinuxk8s']
args: ['--label', 'k8s-app=machine-config-daemon']
securityContext:
privileged: true
volumeMounts:
- name: fsselinux
mountPath: /sys/fs/selinux
- name: etcselinux
mountPath: /etc/selinux
- name: varlibselinux
mountPath: /var/lib/selinux
- name: varruncrio
mountPath: /var/run/crio
- name: crictlyaml
mountPath: /etc/crictl.yaml
restartPolicy: Never
volumes:
- name: fsselinux
hostPath:
path: /sys/fs/selinux
type: Directory
- name: etcselinux
hostPath:
path: /etc/selinux
type: Directory
- name: varlibselinux
hostPath:
path: /var/lib/selinux
type: Directory
- name: varruncrio
hostPath:
path: /var/run/crio
type: Directory
- name: crictlyaml
hostPath:
path: /etc/crictl.yaml
type: File
serviceAccount: selinux-policy-helper-operator