Repository navigation
Description
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.goat v0.20.1: flaguse-node-feature-api, default true). - The cluster has no CRD
nodefeatures.nfd.k8s-sigs.io, and the DaemonSet writes labels to thefeatures.ddirectory. So v0.20.1 needs envGFD_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-daemonsetinkube-systemis 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
- Add
GFD_USE_NODE_FEATURE_API=false, set the image v0.20.1 with its digest, updateapp.kubernetes.io/version. - After the rollout, check the GPU node labels (
make gpu-labelsvalues and the tier placement). - 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=300safter 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.1for 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.1without 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 jsonbefore the rollout and runs it again after the DaemonSet is Ready. - THEN Every node that carries
nvidia.com/gpu.present=truecarries the samenvidia.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 wideon a host with cluster access after the rollout. - THEN Each ollama pod of a GPU tier is
Runningon a node whose labels holdnvidia.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.ioCRD, while the DaemonSet mounts and writes thefeatures.ddirectory that v0.16.2 writes. SetGFD_USE_NODE_FEATURE_API=falseand keep thefeatures.doutput. 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 thefeatures.dpath 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 theGFD_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.
- Chosen: Set
- 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, anduv run devops k8s image-pinsresolves 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-pinsproves the pin resolves.
- Which value does
app.kubernetes.io/versiontake?:0.20.1, without thev. The manifest records0.16.2for image tagv0.16.2now, 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-giband, for three of them,nvidia.com/gpu.architecture;nvidia.com/gpu.present=truemarks a GPU node. The cluster's node-provisioning automation, which lives outside this repository, setspresentandarchitecture, and setstotal-vram-gibonly on a multi-GPU node; GPU Feature Discovery labels per-GPU memory and the GPU count, not a total. So the bump compares thenvidia.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 k8srenders the kustomization, anduv run devops k8s image-pinsresolves the image innvcr.io; theImage Pinsworkflow runs the latter on a pull request that changesk8s/. A person proves the live result after the merge withkubectlreads 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-daemonsetDaemonSet 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-daemonsetis not one of the add-ons thatkubectl -n kube-system get addonlists. 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
dan-petty commentedon Nov 12, 2026
Both change the GFD image tag in k8s/gpu-feature-discovery/daemonset.yaml, but #1267 set it back to v0.16.2 as a fix while the candidate upgrades to v0.20.1 with a new env var.build(deps): take every safe version update before Renovate (#5102)
devops-cli-service commentedon Nov 15, 2026
Alternatives check: none
Reason: The searches found only the upstream
nvcr.io/nvidia/k8s-device-pluginreleases (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 addingGFD_USE_NODE_FEATURE_API=falseink8s/gpu-feature-discovery/daemonset.yaml, then checking the GPU labels on a node.Tool: none found
Lacks:
GFD_USE_NODE_FEATURE_API=falseenv var must be set in the project's own manifest because the cluster has nonodefeatures.nfd.k8s-sigs.ioCRDnvidia-device-plugin-daemonsetinto git is a project decision, not a toolTools considered:
Searches run:
Sources:
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 17, 2026
Status set to Ready at b8c7632 (see proposed design in issue body).
Moved to new items: #6115.
devops-cli-service commentedon Nov 22, 2026
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:
Sources:
dan-petty commentedon Nov 25, 2026
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.
failed to create resource manager: unsupported strategy auto.gpu-feature-discoveryisProgressing.autofails when the container finds no GPU platform (internal/resource/factory.go). The DaemonSet sets noruntimeClassName, and the device plugin that runs on these nodes usesnvidia. So the change needs more thanGFD_USE_NODE_FEATURE_API=false.k8s/gpu-feature-discovery/daemonset.yaml) also names v0.20.2. The cluster reads the homelab copy.dan-petty commentedon Nov 25, 2026
Superseded by #7252:
gpu-feature-discoverylabelled nothing, and it is removed from the cluster (dan-petty/homelab#234) and fromdeploy-stack(#7253). Its copy of the manifest in this repository goes with step 17 of #5134.