From 6f6e8f2d3ec5291547da26c0441cf2728b3c8879 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 30 Aug 2022 00:04:35 +0200 Subject: kubernetes: add new intel-gpu device-plugin addon --- .../templates/config.0.24.0.yml.j2 | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 roles/kubernetes/addons/intel-gpu-device-plugin/templates/config.0.24.0.yml.j2 (limited to 'roles/kubernetes/addons/intel-gpu-device-plugin/templates/config.0.24.0.yml.j2') 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 -- cgit v1.2.3