Add device detection for nvidia gpu.

This commit is contained in:
Joseph Hanson 2024-01-13 11:47:30 -06:00
parent f205dbb964
commit 3628e80015
2 changed files with 34 additions and 0 deletions

View file

@ -17,3 +17,22 @@ spec:
kind: GitRepository
name: homelab
wait: true
---
# 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-node-feature-discovery-rules
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
spec:
interval: 10m
path: "./kubernetes/apps/system/node-feature-discovery/rules"
prune: true
sourceRef:
kind: GitRepository
name: homelab
wait: true
dependsOn:
- name: node-feature-discovery

View file

@ -0,0 +1,15 @@
---
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"] }