Intel GPU Plugin: Manifest vendoren (Upstream-Repo zu groß für ArgoCD-Fetch-Timeout)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace: intel-gpu-plugin
|
||||
resources:
|
||||
- intel-gpu-plugin.yaml
|
||||
+6
-19
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user