intel-device-plugins-for-ku.../deployments/qat_plugin/base/intel-qat-plugin.yaml
Oleg Zhurakivskyy ab0e8bc146 qat: Add annotation configurability in the operator
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2024-01-09 10:20:16 +02:00

61 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: intel-qat-plugin
labels:
app: intel-qat-plugin
annotations:
container.apparmor.security.beta.kubernetes.io/intel-qat-plugin: unconfined
spec:
selector:
matchLabels:
app: intel-qat-plugin
template:
metadata:
labels:
app: intel-qat-plugin
annotations:
container.apparmor.security.beta.kubernetes.io/intel-qat-plugin: unconfined
spec:
automountServiceAccountToken: false
containers:
- name: intel-qat-plugin
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: intel/intel-qat-plugin:devel
securityContext:
seLinuxOptions:
type: "container_device_plugin_t"
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
imagePullPolicy: IfNotPresent
volumeMounts:
- name: devdir
mountPath: /dev/vfio
readOnly: true
- name: debugfsdir
mountPath: /sys/kernel/debug
readOnly: true
- name: pcidir
mountPath: /sys/bus/pci
- name: kubeletsockets
mountPath: /var/lib/kubelet/device-plugins
volumes:
- name: devdir
hostPath:
path: /dev/vfio
- name: debugfsdir
hostPath:
path: /sys/kernel/debug
- name: pcidir
hostPath:
path: /sys/bus/pci
- name: kubeletsockets
hostPath:
path: /var/lib/kubelet/device-plugins
nodeSelector:
kubernetes.io/arch: amd64