mirror of
https://github.com/zoriya/snow.git
synced 2025-12-06 07:16:19 +00:00
Add nvidia runtime class
This commit is contained in:
5
apps/misc/nvidia.yaml
Normal file
5
apps/misc/nvidia.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: node.k8s.io/v1
|
||||||
|
kind: RuntimeClass
|
||||||
|
metadata:
|
||||||
|
name: nvidia
|
||||||
|
handler: nvidia
|
||||||
26
apps/nvidia.yaml
Normal file
26
apps/nvidia.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: nvidia-device-plugin
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: nvidia
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
managedNamespaceMetadata:
|
||||||
|
labels:
|
||||||
|
pod-security.kubernetes.io/enforce: privileged
|
||||||
|
source:
|
||||||
|
repoURL: https://nvidia.github.io/k8s-device-plugin
|
||||||
|
targetRevision: 0.13.0
|
||||||
|
chart: nvidia-device-plugin
|
||||||
|
helm:
|
||||||
|
valuesObject:
|
||||||
|
runtimeClassName: nvidia
|
||||||
@@ -20,6 +20,16 @@ patches:
|
|||||||
kernel:
|
kernel:
|
||||||
modules:
|
modules:
|
||||||
- name: zfs
|
- name: zfs
|
||||||
|
- |-
|
||||||
|
machine:
|
||||||
|
kernel:
|
||||||
|
modules:
|
||||||
|
- name: nvidia
|
||||||
|
- name: nvidia_uvm
|
||||||
|
- name: nvidia_drm
|
||||||
|
- name: nvidia_modeset
|
||||||
|
sysctls:
|
||||||
|
net.core.bpf_jit_harden: 1
|
||||||
nodes:
|
nodes:
|
||||||
- hostname: kadan
|
- hostname: kadan
|
||||||
ipAddress: kube.sdg.moe
|
ipAddress: kube.sdg.moe
|
||||||
@@ -34,3 +44,5 @@ nodes:
|
|||||||
systemExtensions:
|
systemExtensions:
|
||||||
officialExtensions:
|
officialExtensions:
|
||||||
- siderolabs/zfs
|
- siderolabs/zfs
|
||||||
|
- siderolabs/nonfree-kmod-nvidia-lts
|
||||||
|
- siderolabs/nvidia-container-toolkit-lts
|
||||||
|
|||||||
Reference in New Issue
Block a user