diff --git a/templates/application.yaml b/templates/application.yaml index 204dfe3..7c628fc 100644 --- a/templates/application.yaml +++ b/templates/application.yaml @@ -32,6 +32,10 @@ spec: {{- .source.helm.values | nindent 8 }} {{- end }} {{- end }} + {{- with .source.kustomize }} + kustomize: + {{- toYaml . | nindent 6 }} + {{- end }} destination: server: {{ .destination.server }} namespace: {{ .destination.namespace }} diff --git a/values.yaml b/values.yaml index 6a6d5bf..8f6ab01 100644 --- a/values.yaml +++ b/values.yaml @@ -240,6 +240,40 @@ applications: syncOptions: - CreateNamespace=true + # 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. + - 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 + destination: + server: https://kubernetes.default.svc + namespace: intel-gpu-plugin + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + # Home Assistant (container install, hostNetwork for LAN discovery). # https://homeassistant.smokyzone.de - LAN/VPN only; see homeassistant-gitops README. - name: homeassistant