Repository navigation
Description
Problem
DaemonSet gpu-feature-discovery runs privileged on every node and labels nothing:
- It writes a feature file for Node Feature Discovery, and no cluster that this project builds runs Node Feature Discovery. Nothing else reads the file.
- Its container finds no GPU: v0.16.2 logs
Unsupported strategy detected: auto using empty manager, and the file holds no GPU data. - No node has a label that only it would set.
kubectl labelset eachnvidia.com/*label of the nodes (the GPU label play of the homelab repository). - Since the automerged update to v0.20.2 (dan-petty/homelab#153), the same case exits 1: the updated pods crash on 2 of 5 nodes and the rollout is stalled.
Proposed remedy
devops k8s deploy-stackstops applying the folder (KUSTOMIZATIONS_BY_STACK).- The homelab repository removes the Application and the folder.
- The copy of the folder in this repository goes with step 17 of feat(argocd): read the environment from the homelab repo #5134, which deletes the environment files.
Rejected: install Node Feature Discovery and give the container the nvidia runtime. It adds a component to replace labels that work. Take it up as its own item if the labels should come from GPU Feature Discovery in place of the Ansible play.
Acceptance criteria
-
devops k8s deploy-stack --stack infraapplies nogpu-feature-discoverykustomization. - The GPU labels of the nodes do not change.
Replaces
#5092, #5646, #6109, #6628, #6321, #7105, #6973 and #6750. Close them as not planned when the removal is merged.
Proposed design
Problem statement
Stop applying the gpu-feature-discovery folder: remove its entry from KUSTOMIZATIONS_BY_STACK. DaemonSet gpu-feature-discovery runs privileged on every node and labels nothing. Its feature file has no reader, its container finds no GPU, and kubectl label set each nvidia.com/* node label. The update to v0.20.2 makes the pods crash on 2 of 5 nodes and stalls the rollout. A deferred item removes the Application and the folder in the homelab repository. The folder in this repository stays until step 17 of #5134, and the eight replaced items close as not planned after the merge.
Acceptance criteria
Requirement: Remove the gpu-feature-discovery entry
KUSTOMIZATIONS_BY_STACK MUST name no gpu-feature-discovery kustomization for the infra stack.
Scenario: The infra stack builds its kustomization list
- WHEN A test builds the kustomization list of the
infrastack fromKUSTOMIZATIONS_BY_STACK - THEN no path in the list has a part with the name
gpu-feature-discovery
Requirement: The k8s gate passes
The k8s checks MUST pass with the entry removed.
Scenario: The k8s gate runs on the change
- WHEN
uv run devops ci --check --only k8sruns - THEN the command exits 0 and reports no failed check
Requirement: Pending a person after the merge
The nvidia.com/* labels of the nodes MUST stay the same after the merge.
Scenario: A person compares the node labels after the merge
- WHEN After the merge, a person runs
kubectl get nodes -o jsonand compares eachmetadata.labelsentry with the labels recorded before the merge - THEN each
nvidia.com/*label of each node is the same
Existing Tool Considered
No alternatives check has run. The item removes a deployment, so no open tool or library covers the need. devops k8s deploy-stack already applies the kustomization folders, and the change deletes the gpu-feature-discovery entry from KUSTOMIZATIONS_BY_STACK at src/devops_cli/commands/k8s/stack_lifecycle.py:373. The project builds no product code. The change adds one test, at about 2,000 tokens and 30 minutes.
Key questions
- Where does
deploy-stackread the kustomizations of a stack, and which entry appliesgpu-feature-discovery?:KUSTOMIZATIONS_BY_STACKis a dict of stack name to kustomization paths atsrc/devops_cli/commands/k8s/stack_lifecycle.py:373.deploy-stackextends the list of the named stack with these paths at line 1501. The entry to remove is thegpu-feature-discoverypath in theinfratuple.env.pathresolves the path in the environment tree. [sources: src/devops_cli/commands/k8s/stack_lifecycle.py:373, src/devops_cli/commands/k8s/stack_lifecycle.py:1501] - Which test reads
KUSTOMIZATIONS_BY_STACK, and does the removal change it?:tests/gate/k8s_checks/network_policies.py:15imports the dict. Line 59 builds the list of kustomization folders from it. The removal drops thegpu-feature-discoveryfolder from that list. The test needs no change. [sources: tests/gate/k8s_checks/network_policies.py:15, tests/gate/k8s_checks/network_policies.py:59] - How does the code stop applying the folder: remove the entry, or add a skip setting?: Remove the entry from
KUSTOMIZATIONS_BY_STACK. (best practice) [sources: src/devops_cli/commands/k8s/stack_lifecycle.py:373, AGENTS.md]- Chosen: Remove the entry from
KUSTOMIZATIONS_BY_STACK. The folder goes away with feat(argocd): read the environment from the homelab repo #5134 step 17. A skip setting would be dead code. AGENTS.md rule 11 fixes the cause. - Rejected: Add a setting that skips the folder. It adds config surface for one folder that is going away.
- Rejected: Install Node Feature Discovery and give the container the
nvidiaruntime. The body rejects it. It adds a component to replace labels that work.
- Chosen: Remove the entry from
- Which check proves that
deploy-stackapplies nogpu-feature-discoverykustomization?: An offline test of the kustomization list thatdeploy-stackbuilds for theinfrastack. (best practice) [sources: tests/gate/k8s_checks/network_policies.py:59, CONTEXT.md]- Chosen: An offline test of the built kustomization list. The runner pod has no Kubernetes token, so a live check cannot run in the implement job.
- Rejected: A live
kubectl apply --dry-run=serverof the stack. The runner pod has no Kubernetes token (CONTEXT.md, Runner). - Rejected: A test that reads the
k8s/gpu-feature-discoveryfolder on disk. The folder stays until feat(argocd): read the environment from the homelab repo #5134 step 17. Its presence proves nothing about the application.
- Which proof shows that the
nvidia.com/*labels of the nodes do not change?: After the merge, a person compareskubectl get nodes -o jsonwith the labels recorded before the merge. The DaemonSet sets no node label, so the removal cannot change a label. (best practice) [sources: k8s/gpu-feature-discovery/daemonset.yaml, CONTEXT.md]- Chosen: A person compares the node labels after the merge. The labels are cluster state, and the runner pod has no Kubernetes token.
- Rejected: A test of the DaemonSet manifest. A test asserts no value of a cluster label.
- When and how do the eight replaced items close?: An agent closes build(k8s): move gpu-feature-discovery to v0.20.1 #5092, fix(security): remove privileged mode from gpu-feature-discovery #5646, fix(k8s): Put a NetworkPolicy on gpu-feature-discovery #6109, build(k8s): move gpu-feature-discovery out of the default namespace #6628, test(k8s): confirm gpu-feature-discovery network and GPU labels #6321, fix(security): Judge Trivy-config KSV-0012 in gpu-feature-discovery #7105, fix(security): Judge Trivy-config KSV-0012 in gpu-feature-discovery #6973 and fix(security): Judge Trivy-config KSV-0017 in gpu-feature-discovery #6750 as not planned after the removal merges. AGENTS.md lets agents manage duplicates and every non-release command. (best practice) [sources: AGENTS.md, CONTEXT.md]
- Chosen: Close the eight items as not planned after the merge. The body states it. CONTEXT.md records a replaced item as not planned.
- Rejected: Close the eight items in the pull request. A closing keyword closes an issue as completed, not as not planned.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 25, 2026
Pods crash on 2 of 5 nodes and the rollout is stalled, blocking deployment.devops-cli-service commentedon Nov 25, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 25, 2026
Released in v0.221.8: https://github.com/dan-petty/devops-cli/releases/tag/v0.221.8
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 22:02 UTC