mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00

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>
30 lines
729 B
YAML
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
|