diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-08-30 00:04:35 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-08-30 00:04:35 +0200 |
commit | 6f6e8f2d3ec5291547da26c0441cf2728b3c8879 (patch) | |
tree | 78703d0c8ab69206c108d2fb148c230226e6f9ec /roles/kubernetes/addons/intel-gpu-device-plugin/templates | |
parent | kubernetes/nfd: some more tests and improvements (diff) |
kubernetes: add new intel-gpu device-plugin addon
Diffstat (limited to 'roles/kubernetes/addons/intel-gpu-device-plugin/templates')
-rw-r--r-- | roles/kubernetes/addons/intel-gpu-device-plugin/templates/config.0.24.0.yml.j2 | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/roles/kubernetes/addons/intel-gpu-device-plugin/templates/config.0.24.0.yml.j2 b/roles/kubernetes/addons/intel-gpu-device-plugin/templates/config.0.24.0.yml.j2 new file mode 100644 index 00000000..883212f9 --- /dev/null +++ b/roles/kubernetes/addons/intel-gpu-device-plugin/templates/config.0.24.0.yml.j2 @@ -0,0 +1,66 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + labels: + app: intel-gpu-plugin + name: intel-gpu-plugin + namespace: kube-system +spec: + selector: + matchLabels: + app: intel-gpu-plugin + template: + metadata: + labels: + app: intel-gpu-plugin + spec: + containers: + - env: + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName + image: intel/intel-gpu-plugin:0.24.0 + imagePullPolicy: IfNotPresent + name: intel-gpu-plugin + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + volumeMounts: + - mountPath: /dev/dri + name: devfs + readOnly: true + - mountPath: /sys/class/drm + name: sysfs + readOnly: true + - mountPath: /var/lib/kubelet/device-plugins + name: kubeletsockets + initContainers: + - image: intel/intel-gpu-initcontainer:0.24.0 + imagePullPolicy: IfNotPresent + name: intel-gpu-initcontainer + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + volumeMounts: + - mountPath: /etc/kubernetes/node-feature-discovery/source.d/ + name: nfd-source-hooks + nodeSelector: + kubernetes.io/arch: amd64 +{% if kubernetes_intel_gpu_device_plugin_node_selector is defined %} + {{ kubernetes_intel_gpu_device_plugin_node_selector | to_nice_yaml(indent=2) | indent(width=8) -}} +{% endif %} + volumes: + - hostPath: + path: /dev/dri + name: devfs + - hostPath: + path: /sys/class/drm + name: sysfs + - hostPath: + path: /var/lib/kubelet/device-plugins + name: kubeletsockets + - hostPath: + path: /etc/kubernetes/node-feature-discovery/source.d/ + type: DirectoryOrCreate + name: nfd-source-hooks |