From bf19bab96ca6ee463fc161fe16938def93547e85 Mon Sep 17 00:00:00 2001 From: SmokyZone Date: Sun, 25 Oct 2026 10:04:20 +0100 Subject: [PATCH] =?UTF-8?q?Intel=20GPU=20Plugin:=20Manifest=20vendoren=20(?= =?UTF-8?q?Upstream-Repo=20zu=20gro=C3=9F=20f=C3=BCr=20ArgoCD-Fetch-Timeou?= =?UTF-8?q?t)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- addons/intel-gpu-plugin/intel-gpu-plugin.yaml | 83 +++++++++++++++++++ addons/intel-gpu-plugin/kustomization.yaml | 3 + values.yaml | 25 ++---- 3 files changed, 92 insertions(+), 19 deletions(-) create mode 100644 addons/intel-gpu-plugin/intel-gpu-plugin.yaml create mode 100644 addons/intel-gpu-plugin/kustomization.yaml diff --git a/addons/intel-gpu-plugin/intel-gpu-plugin.yaml b/addons/intel-gpu-plugin/intel-gpu-plugin.yaml new file mode 100644 index 0000000..797685e --- /dev/null +++ b/addons/intel-gpu-plugin/intel-gpu-plugin.yaml @@ -0,0 +1,83 @@ +# Vendored from https://github.com/intel/intel-device-plugins-for-kubernetes/tree/v0.37.1/deployments/gpu_plugin +# (kubectl kustomize build), kubelet socket path patched for MicroK8s. +# The upstream repo is too large for ArgoCD's git fetch timeout, hence vendored. +# Upgrade: rebuild from the new tag with the same patch. +apiVersion: apps/v1 +kind: DaemonSet +metadata: + labels: + app: intel-gpu-plugin + name: intel-gpu-plugin + namespace: intel-gpu-plugin +spec: + selector: + matchLabels: + app: intel-gpu-plugin + template: + metadata: + labels: + app: intel-gpu-plugin + spec: + automountServiceAccountToken: false + containers: + - env: + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName + - name: HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP + image: intel/intel-gpu-plugin:0.37.1 + imagePullPolicy: IfNotPresent + name: intel-gpu-plugin + resources: + limits: + cpu: 100m + memory: 115Mi + requests: + cpu: 40m + memory: 45Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + seLinuxOptions: + type: container_device_plugin_t + seccompProfile: + type: RuntimeDefault + volumeMounts: + - mountPath: /dev/dri + name: devfs + readOnly: true + - mountPath: /sys/class/drm + name: sysfsdrm + readOnly: true + - mountPath: /var/lib/kubelet/device-plugins + name: kubeletsockets + - mountPath: /var/run/cdi + name: cdipath + nodeSelector: + kubernetes.io/arch: amd64 + volumes: + - hostPath: + path: /dev/dri + name: devfs + - hostPath: + path: /sys/class/drm + name: sysfsdrm + - hostPath: + path: /var/snap/microk8s/common/var/lib/kubelet/device-plugins + name: kubeletsockets + - hostPath: + path: /var/run/cdi + type: DirectoryOrCreate + name: cdipath + updateStrategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate diff --git a/addons/intel-gpu-plugin/kustomization.yaml b/addons/intel-gpu-plugin/kustomization.yaml new file mode 100644 index 0000000..c86770b --- /dev/null +++ b/addons/intel-gpu-plugin/kustomization.yaml @@ -0,0 +1,3 @@ +namespace: intel-gpu-plugin +resources: + - intel-gpu-plugin.yaml diff --git a/values.yaml b/values.yaml index 8f6ab01..2f6c663 100644 --- a/values.yaml +++ b/values.yaml @@ -242,28 +242,15 @@ applications: # Intel GPU device plugin: advertises the iGPU (UHD 630, /dev/dri) as the resource # gpu.intel.com/i915, so Jellyfin can use QuickSync without running privileged. - # Upstream kustomize manifests, pinned to a release tag. + # Manifest vendored in addons/intel-gpu-plugin (upstream v0.37.1; the upstream repo + # is too big for ArgoCD's git fetch timeout). MicroK8s runs the kubelet with + # --root-dir=$SNAP_COMMON/var/lib/kubelet, so the device-plugin socket path is patched. - name: intel-gpu-plugin enabled: true source: - repoURL: https://github.com/intel/intel-device-plugins-for-kubernetes.git - targetRevision: v0.37.1 - path: deployments/gpu_plugin - kustomize: - namespace: intel-gpu-plugin - patches: - # MicroK8s runs the kubelet with --root-dir=$SNAP_COMMON/var/lib/kubelet, - # so the device plugin socket directory is not /var/lib/kubelet/device-plugins. - - target: - kind: DaemonSet - name: intel-gpu-plugin - patch: |- - - op: test - path: /spec/template/spec/volumes/2/name - value: kubeletsockets - - op: replace - path: /spec/template/spec/volumes/2/hostPath/path - value: /var/snap/microk8s/common/var/lib/kubelet/device-plugins + repoURL: https://git.smokyzone.de/SmokyZone/apps-in-apps.git + targetRevision: main + path: addons/intel-gpu-plugin destination: server: https://kubernetes.default.svc namespace: intel-gpu-plugin