Repository navigation
Description
Split from #5092.
Problem: the cluster runs the DaemonSet nvidia-device-plugin-daemonset in namespace kube-system, and no file in this repository holds it, so a review cannot see a change to it. k8s/README.md:1078 says an object in the cluster that git does not hold is drift: remove it or add it to git, and only the k3s packaged add-ons are the exception (k8s/README.md:1080). This DaemonSet is not a k3s add-on, and removing it would stop the GPUs that the ollama tiers use, so its spec belongs in git. Why deferred: the live spec is cluster state that the repository does not hold, so a person must capture it from the cluster, and the spec, its Argo CD Application and its stack entry need a review of their own. It is separate from the gpu-feature-discovery v0.20.1 bump in #5092. Acceptance criteria: a person captures kubectl -n kube-system get daemonset nvidia-device-plugin-daemonset -o yaml, removes the runtime fields (status, metadata.resourceVersion, metadata.uid, metadata.creationTimestamp and metadata.generation), and commits it under k8s/, with the Argo CD Application and the stack list that deploys it; uv run devops ci --check --only k8s passes; uv run devops k8s image-pins resolves its image; after the sync, kubectl -n kube-system rollout status daemonset/nvidia-device-plugin-daemonset exits 0 and kubectl get nodes -o json shows nvidia.com/gpu capacity above zero on each GPU node.
Proposed design
Problem statement
The cluster runs the DaemonSet nvidia-device-plugin-daemonset in namespace kube-system, and no file in this repository holds it. k8s/README.md calls an object in the cluster that git does not hold drift. This change captures the live spec, removes the runtime fields, and commits it under k8s/nvidia-device-plugin/ with an Argo CD Application and an infra stack entry. A review can then see a change to the object, and Argo CD owns it.
Acceptance criteria
Requirement: DaemonSet manifest in the environment tree
The environment tree SHALL hold the DaemonSet nvidia-device-plugin-daemonset of namespace kube-system as a file under k8s/nvidia-device-plugin/ that a kustomization.yaml renders.
Scenario: The k8s check renders the new folder
- WHEN A person runs
uv run devops ci --check --only k8son the branch. - THEN The check exits 0.
Requirement: No runtime field in the captured spec
The DaemonSet file MUST hold no status, metadata.resourceVersion, metadata.uid, metadata.creationTimestamp or metadata.generation field.
Scenario: The render shows no runtime field
- WHEN A person runs
kubectl kustomize k8s/nvidia-device-plugin. - THEN The output holds no
status:,resourceVersion:,uid:,creationTimestamp:orgeneration:field.
Requirement: Argo CD deploys the DaemonSet to kube-system
An Argo CD Application under k8s/argocd/apps/ SHALL deploy the folder k8s/nvidia-device-plugin to namespace kube-system.
Scenario: The Application is Synced and Healthy
- WHEN A person runs
kubectl -n argocd get application nvidia-device-plugin -o jsonafter the sync. - THEN The output shows
.spec.destination.namespaceaskube-system,.status.sync.statusasSyncedand.status.health.statusasHealthy.
Requirement: The infra stack list names the folder
The infra stack list of devops k8s deploy-stack SHALL name the folder k8s/nvidia-device-plugin.
Scenario: The dry run lists the new folder
- WHEN A person runs
uv run devops k8s deploy-stack --stack infra --dry-run. - THEN The output lists
k8s/nvidia-device-pluginamong the manifests that the infra stack applies.
Requirement: The image pin resolves
The DaemonSet image MUST be a tag that the image-pin check resolves.
Scenario: The image-pin check resolves the DaemonSet image
- WHEN A person runs
uv run devops k8s image-pins. - THEN The command exits 0 and resolves the image that the DaemonSet names.
Requirement: The rollout finishes
The DaemonSet SHALL roll out with no failed pod after the sync.
Scenario: The rollout status exits 0
- WHEN A person runs
kubectl -n kube-system rollout status daemonset/nvidia-device-plugin-daemonsetafter the sync. - THEN The command exits 0.
Requirement: Each GPU node reports GPU capacity
Each GPU node MUST report an nvidia.com/gpu capacity above zero after the sync.
Scenario: The node list shows the GPU capacity
- WHEN A person runs
kubectl get nodes -o jsonafter the sync. - THEN Each GPU node shows an
nvidia.com/gpucapacity above zero in the output.
Existing Tool Considered
No alternatives check has run. The open, maintained upstream NVIDIA/k8s-device-plugin repository at https://github.com/NVIDIA/k8s-device-plugin ships the DaemonSet manifest at each release. It lacks this cluster's live object and local customizations, so a person captures the live spec. The change builds no code, so it has no build cost. It adds one manifest folder, one Argo CD Application and one stack entry.
Key questions
- What does
k8s/README.mdsay about an object that the cluster runs and git does not hold?: It is drift. Remove the object or add it to git. Only the k3s packaged add-ons are the exception, and this DaemonSet is no add-on. [sources: k8s/README.md:1078, k8s/README.md:1080] - Does the change take the manifest from the upstream release or from the live cluster?: From the live cluster. The Argo CD Application syncs with
selfHealandprune, so a sync writes the committed spec onto the running object. An upstream default spec can differ from the live object in its arguments, node selectors and tolerations, and that sync would change the device plugin that the GPU workloads use. (best practice) [sources: k8s/README.md, k8s/argocd/apps/gpu-feature-discovery.yaml]- Chosen: Capture the live spec. The committed object then equals the running object, so the first sync changes nothing.
- Rejected: Copy the upstream static manifest. It holds upstream defaults, so the first sync can change the running object and stop the GPUs.
- How does the environment tree hold and deploy one component?: Give the component its own folder under
k8s/with akustomization.yaml, add one Argo CD Application ink8s/argocd/apps/that points at the folder, and add the folder to the infra kustomization stack list. (best practice) [sources: k8s/gpu-feature-discovery/kustomization.yaml, k8s/argocd/apps/gpu-feature-discovery.yaml, k8s/agents/kustomization.yaml, k8s/argocd/apps/agents.yaml, src/devops_cli/commands/k8s/stack_lifecycle.py, k8s/README.md]- Chosen: Own folder plus one Argo CD Application. It matches
k8s/gpu-feature-discovery/andk8s/agents/, so a review of one component sees one folder, one Application and one stack entry. - Rejected: Add the DaemonSet to an existing kustomization. The object belongs to no existing stack, and its review would mix with another component.
- Rejected: A plain file under
k8s/with no Application. Nothing applies it, so the cluster object stays drift.
- Chosen: Own folder plus one Argo CD Application. It matches
- Which stack list applies the new DaemonSet?: The infra kustomization stack list
KUSTOMIZATIONS_BY_STACK["infra"]. It holds the cluster-wide components and already holdsgpu-feature-discovery. (best practice) [sources: src/devops_cli/commands/k8s/stack_lifecycle.py, k8s/README.md]- Chosen: KUSTOMIZATIONS_BY_STACK["infra"]. It is the native deploy list for kustomization folders, and it already holds the sibling
gpu-feature-discovery. - Rejected: MANIFESTS_BY_STACK["infra"]. It holds plain manifests and the
llm/gatewaykustomization. The device plugin needs no Secret or chart, so the kustomization list is the right place. - Rejected: The llm stack. The llm stack holds the Ollama workloads, and the device plugin is a cluster-wide device component.
- Chosen: KUSTOMIZATIONS_BY_STACK["infra"]. It is the native deploy list for kustomization folders, and it already holds the sibling
- Which image tag does the new manifest pin?: Keep the tag of the captured spec. The change adds the object to git and does not bump its version. (best practice) [sources: k8s/gpu-feature-discovery/daemonset.yaml]
- Chosen: Keep the tag of the captured spec. The item records what runs, and a version change needs its own review.
- Rejected: Bump to the latest upstream release. It mixes a version change into a change that only adds the object to git.
- Which command proves the new manifest offline?:
uv run devops ci --check --only k8s, the k8s row of the CI check. It builds each Application path of the environment tree and runs the k8s checks with no cluster. (best practice) [sources: .github/workflows/ci.yml, k8s/README.md]- Chosen: The k8s row of the CI check. It builds the environment tree and runs the repository's k8s checks with no cluster.
- Rejected: A new test that reads the yaml file. A test asserts no value of a manifest or a config file.
- Which command proves that the stack list names the new folder?:
uv run devops k8s deploy-stack --stack infra --dry-runprints each manifest that the stack applies, so the new folder appears in its output with no cluster. (best practice) [sources: src/devops_cli/commands/k8s/stack_lifecycle.py, k8s/README.md]- Chosen: The deploy-stack dry run. It shows the effect of the stack list, and it needs no cluster.
- Rejected: A test that reads the yaml file. A test asserts no value of a manifest, so the dry run is the command that shows the stack list.
- Rejected: No proof. The stack list is a requirement of the issue, so it needs a command that shows it.
- Can a roadmap runner capture the live DaemonSet spec?: No. The runner pod holds no Kubernetes token, so no job runs
kubectl. A person with cluster access must run the capture. [sources: CONTEXT.md]
Fit
Fits in one pull request.
Suspected block
A person with cluster access must capture the live DaemonSet spec with kubectl -n kube-system get daemonset nvidia-device-plugin-daemonset -o yaml, because the runner pod holds no Kubernetes token.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 17, 2026
Both concern GPU k8s DaemonSets, but #5092 bumps gpu-feature-discovery to v0.20.1 while this adds the nvidia-device-plugin-daemonset spec to git.devops-cli-service commentedon Nov 18, 2026
Owner question: A person with cluster access must capture the live DaemonSet spec with kubectl -n kube-system get daemonset nvidia-device-plugin-daemonset -o yaml, because the runner pod holds no Kubernetes token.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 21, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 26, 2026
Closed: git already holds the NVIDIA device plugin.
dan-petty/homelab installs it: role
ansible/roles/k8s_gpuwrites a k3s HelmChart (valuesk8s/helm/nvidia-device-plugin-values.yaml) and deletes the static DaemonSetnvidia-device-plugin-daemonset. The target ismake gpu-plugin. A read of the cluster on 2026-11-26 shows no such DaemonSet, and each GPU node reportsnvidia.com/gpucapacity. devops-cli needs no manifest.