intel-device-plugins-for-ku.../deployments/dsa_plugin/overlays/dsa_initcontainer/dsa_initcontainer.yaml
Manish Regmi c3259ee22f Add SELinux Labels for DSA and IAA
Proper SELinux labels are required for the plugins to run in SELinux
enabled clusters like openshift. These labels are custom made for
plugins and are part of container-selinux package.

Signed-off-by: Manish Regmi <manish.regmi@intel.com>
2023-07-20 16:02:08 -04:00

42 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: intel-dsa-plugin
spec:
template:
spec:
initContainers:
- name: intel-idxd-config-initcontainer
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: intel/intel-idxd-config-initcontainer:devel
securityContext:
seLinuxOptions:
type: "container_device_plugin_init_t"
readOnlyRootFilesystem: true
privileged: true
volumeMounts:
- mountPath: /sys/bus/dsa
name: sys-bus-dsa
- mountPath: /sys/devices
name: sys-devices
- mountPath: /idxd-init/conf
name: intel-dsa-config-volume
- mountPath: /idxd-init/scratch
name: scratch
volumes:
- name: sys-bus-dsa
hostPath:
path: /sys/bus/dsa
- name: sys-devices
hostPath:
path: /sys/devices
- name: intel-dsa-config-volume
configMap:
name: intel-dsa-config
- name: scratch
emptyDir: {}