From 25d129bd914166c097d08e3c4b06b8d3c061a45a Mon Sep 17 00:00:00 2001 From: Martyn Ranyard Date: Wed, 21 Feb 2024 13:20:01 +0000 Subject: [PATCH] Install the intel GPU driver Signed-off-by: Martyn Ranyard --- .../intel-gpu-driver-operator/deviceplugin.yaml | 11 +++++++++++ .../kustomization.yaml | 7 +++++++ everything-app/intelgpu.yaml | 17 +++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 apps-kustomized/intel-gpu-driver-operator/deviceplugin.yaml create mode 100644 apps-kustomized/intel-gpu-driver-operator/kustomization.yaml create mode 100644 everything-app/intelgpu.yaml diff --git a/apps-kustomized/intel-gpu-driver-operator/deviceplugin.yaml b/apps-kustomized/intel-gpu-driver-operator/deviceplugin.yaml new file mode 100644 index 0000000..4fa083d --- /dev/null +++ b/apps-kustomized/intel-gpu-driver-operator/deviceplugin.yaml @@ -0,0 +1,11 @@ +apiVersion: deviceplugin.intel.com/v1 +kind: GpuDevicePlugin +metadata: + name: gpudeviceplugin-sample +spec: + image: intel/intel-gpu-plugin:0.29.0 + sharedDevNum: 10 + logLevel: 4 + enableMonitoring: true + nodeSelector: + intel.feature.node.kubernetes.io/gpu: "true" diff --git a/apps-kustomized/intel-gpu-driver-operator/kustomization.yaml b/apps-kustomized/intel-gpu-driver-operator/kustomization.yaml new file mode 100644 index 0000000..0dc480c --- /dev/null +++ b/apps-kustomized/intel-gpu-driver-operator/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd/overlays/node-feature-rules?ref=release-0.29 +- https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/operator/default?ref=release-0.29 +- deviceplugin.yaml diff --git a/everything-app/intelgpu.yaml b/everything-app/intelgpu.yaml new file mode 100644 index 0000000..0bcbc53 --- /dev/null +++ b/everything-app/intelgpu.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: intel-gpu-driver-operator + namespace: argocd +spec: + destination: + namespace: inteldeviceplugins-system + server: https://kubernetes.default.svc + project: infra + source: + path: apps-kustomized/intel-gpu-driver-operator + repoURL: https://git.martyn.berlin/martyn/infra4talos + targetRevision: HEAD + syncPolicy: + automated: + selfHeal: true