Skip to content

Commit

Permalink
Adding GFD
Browse files Browse the repository at this point in the history
  • Loading branch information
danmanners committed Nov 11, 2023
1 parent 2459b4e commit 1890f43
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/workloads/applicationset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
- appName: node-feature-discovery
namespace: kube-system
targetRev: main
- appName: nvidia-device-plugin
namespace: kube-system
targetRev: main
- appName: qemu-guest-agent
namespace: kube-system
targetRev: main
Expand Down
25 changes: 25 additions & 0 deletions manifests/workloads/nvidia/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,28 @@ helmCharts:
version: 0.14.2
valuesInline:
runtimeClassName: nvidia
gfd:
enabled: true
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
# On discrete-GPU based systems NFD adds the following label where 10de is the NVIDIA PCI vendor ID
- key: feature.node.kubernetes.io/pci-10de.present
operator: In
values:
- "true"
- matchExpressions:
# On some Tegra-based systems NFD detects the CPU vendor ID as NVIDIA
- key: feature.node.kubernetes.io/cpu-model.vendor_id
operator: In
values:
- "NVIDIA"
- matchExpressions:
# We allow a GPU deployment to be forced by setting the following label to "true"
- key: "nvidia.com/gpu.present"
operator: In
values:
- "true"

0 comments on commit 1890f43

Please sign in to comment.