Skip to content

Commit

Permalink
nfd-nvidia
Browse files Browse the repository at this point in the history
  • Loading branch information
rwlove committed Dec 31, 2024
1 parent 06c31df commit 414b217
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ resources:
- ./intel-gpu.yaml
- ./vlan-device.yaml
- ./barcode-device.yaml
- ./nvidia-gpu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: nfd.k8s-sigs.io/v1alpha1
kind: NodeFeatureRule
metadata:
name: nvidia-gpu-plugin
spec:
rules:
- name: nvidia.gpu
labels:
nvidia.feature.node.kubernetes.io/gpu: "true"
matchFeatures:
- feature: pci.device
matchExpressions:
vendor: { op: In, value: ["10de"] }
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ spec:
retries: 3

upgrade:
cleanupOnFail: true
crds: CreateReplace
remediation:
retries: 3

values:
runtimeClassName: nvidia
nodeSelector:
nvidia.com/gpu.present: "true"
nvidia.feature.node.kubernetes.io/gpu: "true"
config:
map:
default: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Expand Down

0 comments on commit 414b217

Please sign in to comment.