Add device detection for nvidia gpu.
This commit is contained in:
parent
f205dbb964
commit
3628e80015
2 changed files with 34 additions and 0 deletions
|
@ -17,3 +17,22 @@ spec:
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
name: homelab
|
name: homelab
|
||||||
wait: true
|
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
|
||||||
|
|
|
@ -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"] }
|
Loading…
Reference in a new issue