← Back to Pull requests

Tolerate nvidia.com/gpu taint in Helm chart and raw manifest defaults #732

Closed
unknown closed this pull request without merging on Sep 09, 2026 18:20 UTC
View on GitHub
unknown unknown commented on Sep 08, 2026 21:33 UTC
Author

Problem

Installing the chart with default values on a cluster whose GPU nodes are tainted nvidia.com/gpu=true:NoSchedule (the pattern used by EKS/GKE GPU node groups, Karpenter/Cluster Autoscaler GPU pools, and what the NVIDIA device plugin and GPU Operator expect) produces a DaemonSet with DESIRED 0 / CURRENT 0. The release reports success, but no exporter pods run and no metrics are exposed. The dcgm-exporter.yaml standalone manifest has the same behaviour, and the README says nothing about taints.

Root cause

deployment/values.yaml:190-193 only ships a node-role.kubernetes.io/control-plane toleration:

tolerations:
  - key: node-role.kubernetes.io/control-plane
    operator: Exists
    effect: NoSchedule

deployment/templates/daemonset.yaml:74-77 renders that list verbatim ({{- with .Values.tolerations }} / toYaml), so nodes carrying the nvidia.com/gpu taint are ineligible for the DaemonSet. dcgm-exporter.yaml (DaemonSet spec, before volumes:) has no tolerations at all. The NVIDIA device plugin chart tolerates nvidia.com/gpu Exists/NoSchedule by default, so installing both side by side yields the device plugin on the GPU nodes and dcgm-exporter nowhere.

Fix

  • deployment/values.yaml: add an nvidia.com/gpu / operator: Exists / effect: NoSchedule toleration to the default list, matching the device plugin chart. Users who set tolerations themselves are unaffected because the template renders only what is in values.

  • dcgm-exporter.yaml: add the same toleration to the standalone DaemonSet so the raw manifest stays aligned with the chart defaults.

  • README.md: one sentence after the helm install step explaining which taints the defaults tolerate and that tolerations must be overridden for other taints.

  • tests/static/chart_scheduling_rendering_test.go (new) plus a tolerations field on the existing render-contract structs in tests/static/chart_rbac_rendering_test.go: static chart tests asserting the default DaemonSet tolerates nvidia.com/gpu, that a user-supplied tolerations list replaces the defaults, and that dcgm-exporter.yaml carries the same toleration.
  • No chart version bump; versions are bumped in release commits in this repository.

    How tested

    New static tests (go test ./tests/static -run 'Toleration|Tolerates'), run against the unchanged values.yaml / dcgm-exporter.yaml first:

    --- FAIL: TestChartDefaultTolerationsRenderContract (0.01s)
        chart_scheduling_rendering_test.go:39: no Exists/NoSchedule toleration for taint "nvidia.com/gpu" in [{Key:node-role.kubernetes.io/control-plane Operator:Exists Effect:NoSchedule}]
    --- FAIL: TestStandaloneManifestToleratesGPUTaint (0.00s)
        chart_scheduling_rendering_test.go:69: no Exists/NoSchedule toleration for taint "nvidia.com/gpu" in []
    FAIL
    FAIL	github.com/NVIDIA/dcgm-exporter/tests/static	0.056s
    

    With the fix applied:

    --- PASS: TestChartDefaultTolerationsRenderContract (0.01s)
    --- PASS: TestChartTolerationsOverrideReplacesDefaults (0.01s)
    --- PASS: TestStandaloneManifestToleratesGPUTaint (0.00s)
    ok  	github.com/NVIDIA/dcgm-exporter/tests/static	0.040s
    

    The full static suite (make test-static / go test ./tests/static) passes, and gofmt -l tests/static and go vet ./tests/static are clean.

    Rendered the DaemonSet with default values before and after (helm template test deployment/ --show-only templates/daemonset.yaml).

    Before (only the control-plane taint is tolerated; grep -c nvidia.com/gpu returns 0, exit 1):

          tolerations:
          - effect: NoSchedule
            key: node-role.kubernetes.io/control-plane
            operator: Exists
          volumes:
    

    After (grep -c nvidia.com/gpu returns 1, exit 0):

          tolerations:
          - effect: NoSchedule
            key: node-role.kubernetes.io/control-plane
            operator: Exists
          - effect: NoSchedule
            key: nvidia.com/gpu
            operator: Exists
          volumes:
    

    Also verified:

  • helm lint deployment/ passes (1 chart linted, 0 failed).

  • Overriding the list still replaces the defaults entirely: helm template test deployment/ --set 'tolerations[0].key=foo' --set 'tolerations[0].operator=Exists' renders only the foo toleration.

  • dcgm-exporter.yaml still parses as two documents (DaemonSet, Service) and the DaemonSet pod spec carries the new toleration.
  • Kubernetes e2e tests were not run (no GPU cluster available here).

    Links

  • Issue: https://github.com/NVIDIA/dcgm-exporter/issues/731

  • Device plugin default toleration: https://github.com/NVIDIA/k8s-device-plugin/blob/main/deployments/helm/nvidia-device-plugin/values.yaml
  • This change was prepared with an AI agent operated by KR-Ravindra, who reviewed and tested it.

    Diff: 595 lines (+446 / -149) across 7 files Reviewer: KR-Ravindra Review duration: 1247m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.73) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.73 · 595 lines diff across 7 files
    0.73
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.382
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.073
    Real PR Conversation Timeline
    1 comments
    "Review active on #732"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 73.2% (HIGH) · Higher = larger blast radius
    73.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 28.9% · Safe to merge
    28.9%