Skip to content

build(k8s): move gpu-feature-discovery to v0.20.1 #5092

Not planned

Description

@dan-petty

Problem or Motivation

k8s/gpu-feature-discovery/daemonset.yaml runs nvcr.io/nvidia/k8s-device-plugin:v0.16.2 (gpu-feature-discovery). The newest is v0.20.1 (digest sha256:27c1b2553a690ca3d29889dcd61df97525d46f58272c0be8dc63c2b18f120075). Renovate (#4893) will offer it, and it needs work:

  • v0.19.0 turns on the NodeFeature API in GFD by default (cmd/gpu-feature-discovery/main.go at v0.20.1: flag use-node-feature-api, default true).
  • The cluster has no CRD nodefeatures.nfd.k8s-sigs.io, and the DaemonSet writes labels to the features.d directory. So v0.20.1 needs env GFD_USE_NODE_FEATURE_API=false.
  • The GPU labels drive the placement of the ollama tiers, so the change needs a check on a GPU node.
  • The device plugin DaemonSet nvidia-device-plugin-daemonset in kube-system is not in git and runs the same release (v0.16.2).

Notes read: https://github.com/NVIDIA/k8s-device-plugin/releases v0.17.0 to v0.20.1. Research of 2026-11-12 (research-k8s, record image:nvcr.io/nvidia/k8s-device-plugin).

Proposed Solution & Architectural Design

  1. Add GFD_USE_NODE_FEATURE_API=false, set the image v0.20.1 with its digest, update app.kubernetes.io/version.
  2. After the rollout, check the GPU node labels (make gpu-labels values and the tier placement).
  3. Decide about the device plugin DaemonSet outside git: bring it into git or record why it stays out.

Done when GFD v0.20.1 writes the same GPU labels on each node.

Target Subsystem

Kubernetes & Minikube Automation

Existing Tool Considered

The upstream image and its flags. No new code.

Source: #4893

Alternatives check of 2026-11-22: in-use.
The repository already uses this tool.
Tool: renovatebot/renovate (https://github.com/renovatebot/renovate), AGPL-3.0, last activity 2026-11-21, maintained.
Reason: Searches found Renovate, which the issue already names: it opens the tag-and-digest bump of the GFD image (#4893) but cannot add the env var, the version label or the live GPU-label check. Note v0.20.2 is now newest.

Covers:

  • Opens the tag-and-digest bump of the image pin
  • Reads k8s/**/*.yaml and one pull request per update
  • Keeps the digest of the multi-platform index current

Lacks:

  • No GFD_USE_NODE_FEATURE_API=false environment variable
  • No app.kubernetes.io/version label bump
  • No live GPU node label or tier placement check

Proposed design

Problem statement

Move the gpu-feature-discovery DaemonSet to nvcr.io/nvidia/k8s-device-plugin:v0.20.1 pinned by its digest, and set GFD_USE_NODE_FEATURE_API=false, because v0.19.0 turns the NodeFeature API on by default and this cluster has no nodefeatures.nfd.k8s-sigs.io CRD while GFD writes its labels to the features.d directory. The ollama tiers schedule on node labels, so a person checks the nvidia.com/gpu.* labels and the tier pods on a GPU node after the sync. The nvidia-device-plugin-daemonset in kube-system is not in git; the project's GitOps rule makes it drift, and it gets its own issue.

Acceptance criteria

Requirement: GFD image and digest

The gpu-feature-discovery DaemonSet SHALL run the image nvcr.io/nvidia/k8s-device-plugin:v0.20.1 pinned by the digest sha256:27c1b2553a690ca3d29889dcd61df97525d46f58272c0be8dc63c2b18f120075.

Scenario: Live DaemonSet image after the rollout

  • WHEN A person runs kubectl -n default get daemonset gpu-feature-discovery -o jsonpath='{.spec.template.spec.containers[0].image}' after the rollout.
  • THEN The command prints nvcr.io/nvidia/k8s-device-plugin:v0.20.1@sha256:27c1b2553a690ca3d29889dcd61df97525d46f58272c0be8dc63c2b18f120075.

Requirement: NodeFeature API off

The gpu-feature-discovery container SHALL set the environment variable GFD_USE_NODE_FEATURE_API to false.

Scenario: Live container environment after the rollout

  • WHEN A person runs kubectl -n default get daemonset gpu-feature-discovery -o jsonpath='{.spec.template.spec.containers[0].env}' after the rollout.
  • THEN The output holds name:GFD_USE_NODE_FEATURE_API value:false.

Requirement: Rollout ready

The DaemonSet MUST roll out v0.20.1 with every pod Ready on the GPU nodes.

Scenario: Live rollout status

  • WHEN A person runs kubectl -n default rollout status daemonset/gpu-feature-discovery --timeout=300s after the sync.
  • THEN The command exits 0 and reports daemonset "gpu-feature-discovery" successfully rolled out.

Requirement: Version label

The DaemonSet SHALL set the label app.kubernetes.io/version to 0.20.1 on the object and on the pod template.

Scenario: Live version labels after the rollout

  • WHEN A person runs kubectl -n default get daemonset gpu-feature-discovery -o jsonpath='{.metadata.labels} {.spec.template.metadata.labels}' after the rollout.
  • THEN The output holds app.kubernetes.io/version:0.20.1 for the DaemonSet and for the pod template.

Requirement: Kubernetes check

The changed manifest MUST pass the Kubernetes check of the repository.

Scenario: Kubernetes CI check

  • WHEN The change runs uv run devops ci --check --only k8s.
  • THEN The command exits 0 and reports the k8s row as passed.

Requirement: Image pin resolves

The image reference MUST resolve in its registry, so the tag and the digest name a release the registry holds.

Scenario: Image-pin check

  • WHEN The change runs uv run devops k8s image-pins.
  • THEN The command exits 0 and resolves nvcr.io/nvidia/k8s-device-plugin:v0.20.1 without a registry error.

Requirement: GPU node labels

GFD v0.20.1 SHALL leave the same nvidia.com/gpu.* labels on each GPU node that v0.16.2 left.

Scenario: GPU labels after the rollout

  • WHEN A person saves kubectl get nodes -o json before the rollout and runs it again after the DaemonSet is Ready.
  • THEN Every node that carries nvidia.com/gpu.present=true carries the same nvidia.com/gpu.* label values in both outputs.

Requirement: Ollama tier placement

The ollama GPU tiers MUST keep their placement on the GPU nodes after the rollout.

Scenario: Tier pods after the rollout

  • WHEN A person runs kubectl get pods -A -o wide on a host with cluster access after the rollout.
  • THEN Each ollama pod of a GPU tier is Running on a node whose labels hold nvidia.com/gpu.present=true.

Existing Tool Considered

Renovate, the self-hosted CronJob in namespace devops (ADR-0027, AGPL-3.0 image under the recorded exception), covers the pin bump: it reads k8s/**/*.yaml and opens the tag-and-digest update of k8s/gpu-feature-discovery/daemonset.yaml in one pull request (#4893), and uv run devops k8s image-pins resolves that pin. It lacks the GFD_USE_NODE_FEATURE_API=false environment variable, the app.kubernetes.io/version label, the decision about the out-of-git device-plugin DaemonSet, and the live GPU-label check on a node. The change builds no code, so it has no build cost in tokens or elapsed time; the cost is one manifest edit and the live checks.

Key questions

  • Does gpu-feature-discovery v0.20.1 need the NodeFeature API turned off, and under which environment variable?: Yes. v0.19.0 and later turn the NodeFeature API on by default, and this cluster has no nodefeatures.nfd.k8s-sigs.io CRD, while the DaemonSet mounts and writes the features.d directory that v0.16.2 writes. Set GFD_USE_NODE_FEATURE_API=false and keep the features.d output. The rollout-status criterion fails if the binary ignores the variable and falls back to the API, and the GPU-label criterion proves the output. (best practice) [sources: k8s/gpu-feature-discovery/daemonset.yaml:48, k8s/gpu-feature-discovery/daemonset.yaml:62, openspec/changes/archive/2026-10-28-1652-no-unused-service-account-token/proposal.md:60, https://github.com/NVIDIA/k8s-device-plugin/releases]
    • Chosen: Set GFD_USE_NODE_FEATURE_API=false. The issue records the v0.20.1 flag under this prefixed name, and it keeps the features.d path with no CRD.
    • Rejected: Set USE_NODE_FEATURE_API=false, with no prefix. The repository records that spelling for v0.16.2 only; the v0.20.1 flag's variable carries the GFD_ prefix.
    • Rejected: Install the node-feature-discovery CRDs and keep the API on. It adds CRDs and changes the label path, which is larger than this bump.
  • Which image reference does the DaemonSet use for v0.20.1?: nvcr.io/nvidia/k8s-device-plugin:v0.20.1@sha256:27c1b2553a690ca3d29889dcd61df97525d46f58272c0be8dc63c2b18f120075. The project standard for a third-party image is a release tag and the digest of its multi-platform index, and uv run devops k8s image-pins resolves that pin in the registry. (best practice) [sources: docs/SERVICE_PATTERNS.md:134, docs/CLUSTER.md:217, https://github.com/NVIDIA/k8s-device-plugin/releases]
    • Rejected: Tag only. The manifest uses a tag only now, but the standard requires the digest and a moved tag would change the image.
    • Chosen: Tag and digest. SC5 requires a tag and a digest, CLUSTER.md says Renovate bumps both, and image-pins proves the pin resolves.
  • Which value does app.kubernetes.io/version take?: 0.20.1, without the v. The manifest records 0.16.2 for image tag v0.16.2 now, on the DaemonSet and on the pod template. [sources: k8s/gpu-feature-discovery/daemonset.yaml:9, k8s/gpu-feature-discovery/daemonset.yaml:20]
  • Which node labels drive the ollama tiers, and what does the label check compare?: The tiers select on nvidia.com/gpu.total-vram-gib and, for three of them, nvidia.com/gpu.architecture; nvidia.com/gpu.present=true marks a GPU node. The cluster's node-provisioning automation, which lives outside this repository, sets present and architecture, and sets total-vram-gib only on a multi-GPU node; GPU Feature Discovery labels per-GPU memory and the GPU count, not a total. So the bump compares the nvidia.com/gpu.* labels before and after and checks the tier pods' placement, and it does not assume GFD sets the tier labels. [sources: k8s/README.md:252, k8s/README.md:271]
  • How does the change verify the image, the environment variable and the GPU labels?: CI proves the manifest and the pin: uv run devops ci --check --only k8s renders the kustomization, and uv run devops k8s image-pins resolves the image in nvcr.io; the Image Pins workflow runs the latter on a pull request that changes k8s/. A person proves the live result after the merge with kubectl reads and a comparison of the node labels, because the runner pod has no Kubernetes token and no job reaches the cluster. (best practice) [sources: docs/TESTING.md:68, .github/workflows/image-pins.yml:64, CONTEXT.md:150]
    • Chosen: Validator commands in CI, then a person's live reads after the merge. CI reaches the manifest and the registry, and only a person on a host reaches the cluster.
    • Rejected: Live checks in the runner job. The runner pod has no Kubernetes token.
  • What happens to the nvidia-device-plugin-daemonset DaemonSet that is not in git?: It is drift. The project's GitOps rule says an object in the cluster that git does not hold is removed or added to git, and only the k3s packaged add-ons are the exception; nvidia-device-plugin-daemonset is not one of the add-ons that kubectl -n kube-system get addon lists. Removing it would stop the GPUs the ollama tiers use, so its live spec belongs in git. That work becomes a new issue: the live spec is not in this repository and a person must capture it, and the spec, its Argo CD Application and its stack entry need a review of their own. This item then changes only the gpu-feature-discovery manifest. (best practice) [sources: k8s/README.md:1078, k8s/README.md:1080]
    • Chosen: File a new issue that adds the live spec to git. The GitOps rule admits only removal or adding to git, and the live spec needs a person's capture and a separate review.
    • Rejected: Bring it into git in this pull request. The live spec is not in the repository, and a second DaemonSet and its review do not fit this bump.
    • Rejected: Record why it stays out of git in this change. The rule admits only the k3s add-ons as an exception, and this DaemonSet is not one.
    • Rejected: Remove it from the cluster. It exposes the GPUs; removing it stops the GPUs that the ollama tiers use.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/infra
    scope/k8s
    status/new
    value/medium
    effort/medium
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 12, 2026
  5. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Alternatives check: none

    Reason: The searches found only the upstream nvcr.io/nvidia/k8s-device-plugin releases (v0.20.1 confirmed on the releases page) and, as a cluster-wide alternative, the NVIDIA GPU Operator, which would replace the hand-written DaemonSets with an operator rather than perform this bump. No tool or library does the actual work the issue asks for: editing the image tag/digest and adding GFD_USE_NODE_FEATURE_API=false in k8s/gpu-feature-discovery/daemonset.yaml, then checking the GPU labels on a node.

    Tool: none found

    Lacks:

    • Bumping the image tag and digest in k8s/gpu-feature-discovery/daemonset.yaml is a repository config edit that no external tool performs
    • The GFD_USE_NODE_FEATURE_API=false env var must be set in the project's own manifest because the cluster has no nodefeatures.nfd.k8s-sigs.io CRD
    • Verifying that GFD v0.20.1 writes the same GPU labels on a GPU node is a manual rollout check
    • Deciding whether to bring the out-of-git nvidia-device-plugin-daemonset into git is a project decision, not a tool

    Tools considered:

    Searches run:

    • gpu-feature-discovery GFD_USE_NODE_FEATURE_API default true v0.19.0, results: 5
    • NVIDIA GPU Operator manages gpu-feature-discovery and device plugin DaemonSet version, results: 5
    • NVIDIA gpu-operator github repository, results: 5
    • "gpu-feature-discovery" "use-node-feature-api" k8s-device-plugin release notes, results: 5
    • k8s-device-plugin helm chart gpu-feature-discovery, results: 5
    • Renovate updates image tag in daemonset yaml Kubernetes, results: 5
    • NVIDIA k8s-device-plugin Helm chart installs gpu-feature-discovery and node-feature-discovery subchart, results: 5

    Sources:

    Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.

  6. added
    status/ready
    and removed
    status/new
    on Nov 17, 2026
  7. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at b8c7632 (see proposed design in issue body).

    Moved to new items: #6115.

  8. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: none, no tool. A person decides what the new result means for the item.

    Searches (4)

    Tools considered:

    Searches run:

    • Renovate automated dependency updates Kubernetes YAML image digest, results: 5
    • gpu-feature-discovery v0.20.1 GFD_USE_NODE_FEATURE_API environment variable, results: 5
    • NVIDIA k8s-device-plugin releases gpu-feature-discovery v0.20.1, results: 5
    • renovatebot renovate Kubernetes manifest image digest updates, results: 5

    Sources:

  9. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor

    This now fails in the cluster. dan-petty/homelab#153 (an automerged image update, 2026-11-23) moved the DaemonSet from v0.16.2 to v0.20.2 without the changes of this item.

    • The updated pods exit 1 on 2 of 5 nodes with failed to create resource manager: unsupported strategy auto.
    • The rolling update stalled there, so the other 3 nodes still run v0.16.2. Application gpu-feature-discovery is Progressing.
    • The GPU labels of all 5 nodes are still present. They no longer update on the 2 nodes.
    • In the v0.20.2 source, auto fails when the container finds no GPU platform (internal/resource/factory.go). The DaemonSet sets no runtimeClassName, and the device plugin that runs on these nodes uses nvidia. So the change needs more than GFD_USE_NODE_FEATURE_API=false.
    • The copy in this repository (k8s/gpu-feature-discovery/daemonset.yaml) also names v0.20.2. The cluster reads the homelab copy.
  10. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor

    Superseded by #7252: gpu-feature-discovery labelled nothing, and it is removed from the cluster (dan-petty/homelab#234) and from deploy-stack (#7253). Its copy of the manifest in this repository goes with step 17 of #5134.

  11. removed
    status/ready
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/k8ssource/agenttype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions