Skip to content

fix(k8s): stop deploying gpu-feature-discovery, which labels nothing #7252

Done

Description

@dan-petty

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 label set each nvidia.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

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 infra applies no gpu-feature-discovery kustomization.
  • 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 infra stack from KUSTOMIZATIONS_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 k8s runs
  • 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 json and compares each metadata.labels entry 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-stack read the kustomizations of a stack, and which entry applies gpu-feature-discovery?: KUSTOMIZATIONS_BY_STACK is a dict of stack name to kustomization paths at src/devops_cli/commands/k8s/stack_lifecycle.py:373. deploy-stack extends the list of the named stack with these paths at line 1501. The entry to remove is the gpu-feature-discovery path in the infra tuple. env.path resolves 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:15 imports the dict. Line 59 builds the list of kustomization folders from it. The removal drops the gpu-feature-discovery folder 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 nvidia runtime. The body rejects it. It adds a component to replace labels that work.
  • Which check proves that deploy-stack applies no gpu-feature-discovery kustomization?: An offline test of the kustomization list that deploy-stack builds for the infra stack. (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=server of the stack. The runner pod has no Kubernetes token (CONTEXT.md, Runner).
    • Rejected: A test that reads the k8s/gpu-feature-discovery folder 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 compares kubectl get nodes -o json with 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

  1. added
    type/bug
    scope/k8s
    source/agent
    on Nov 25, 2026
  2. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor
    • Priority: Pods crash on 2 of 5 nodes and the rollout is stalled, blocking deployment.
  3. added
    status/new
    effort/low
    value/high
    priority/p1-high
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 25, 2026
  4. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  5. removed
    status/in-review
    on Nov 25, 2026
  6. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-25 22:02 UTC

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/lowpriority/p1-highscope/k8ssource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions