theshire/kubernetes/apps/kube-system/node-feature-discovery/rules/nvidia.yaml

16 lines
433 B
YAML

# 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"] }