intel-device-plugins-for-ku.../deployments/dsa_plugin/overlays/dsa_initcontainer/dsa_initcontainer.yaml
Oleg Zhurakivskyy 594a696879 operator: dsa: Add provisioning configurability
The provisioning config can be optionally stored in the ProvisioningConfig
configMap which is then passed to initcontainer through the volume mount.

There's also a possibility for a node specific congfiguration through
passing a nodename via NODE_NAME into initcontainer's environment
and passing a node specific profile via configMap volume mount.

Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2021-11-09 10:31:50 +02:00

30 lines
729 B
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: intel-dsa-plugin
spec:
template:
spec:
initContainers:
- name: intel-dsa-initcontainer
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: intel/intel-dsa-initcontainer:devel
securityContext:
privileged: true
volumeMounts:
- mountPath: /sys/devices
name: sys-devices
- mountPath: /dsa-init/conf
name: intel-dsa-config-volume
volumes:
- name: sys-devices
hostPath:
path: /sys/devices
- name: intel-dsa-config-volume
configMap:
name: intel-dsa-config