Adding nvidia device plugin

This commit is contained in:
Joseph Hanson 2024-01-13 12:55:34 -06:00
parent 6019fa9f0d
commit f875fca5a5
4 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,9 @@
version: v1
flags:
migStrategy: "none"
failOnInitError: true
nvidiaDriverRoot: "/"
plugin:
passDeviceSpecs: false
deviceListStrategy: envvar
deviceIDStrategy: uuid

View file

@ -0,0 +1,39 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: cilium
namespace: kube-system
spec:
interval: 30m
chart:
spec:
chart: nvdp
version: 0.14.3
sourceRef:
kind: HelmRepository
name: nvidia-device-plugin
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
config:
name: nvidia-plugin-configs
gfd:
enabled: true
nfd:
enabled: false
resources:
requests:
cpu: 100m
limits:
memory: 512Mi

View file

@ -0,0 +1,12 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
configMapGenerator:
- name: nvidia-plugin-configs
files:
- config.yaml=./config/config.yaml
generatorOptions:
disableNameSuffixHash: true

View file

@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-nvidia-device-plugin
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
spec:
interval: 10m
path: "./kubernetes/apps/system/nvidia-device-plugin/app"
prune: true
sourceRef:
kind: GitRepository
name: homelab
wait: true