add nvidia rule

This commit is contained in:
Joseph Hanson 2024-09-06 22:09:23 -05:00
parent af75461454
commit 19e17535be
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 36 additions and 1 deletions

View file

@ -11,8 +11,27 @@ spec:
targetNamespace: kube-system
interval: 10m
path: "./kubernetes/apps/kube-system/nvidia-device-plugin/app"
prune: false
sourceRef:
kind: GitRepository
name: theshire
wait: false
---
# 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: node-feature-discovery-rules
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
spec:
interval: 10m
path: "./kubernetes/apps/kube-system/node-feature-discovery/rules"
prune: true
sourceRef:
kind: GitRepository
name: theshire
wait: true
wait: false
dependsOn:
- name: node-feature-discovery

View file

@ -0,0 +1,16 @@
# yaml-language-server: $schema=https://ks.hsn.dev/nfd.k8s-sigs.io/nodefeaturerule_v1alpha1.json
---
apiVersion: nfd.k8s-sigs.io/v1alpha1
kind: NodeFeatureRule
metadata:
name: nvidia-device
spec:
rules:
- # NVIDIA GPU
name: nvidia.com/gpu
labels:
nvidia.com/gpu.present: "true"
matchFeatures:
- feature: pci.device
matchExpressions:
vendor: { op: In, value: ["10de"] }