Repository navigation
Description
Split from #6109.
The main change adds a default-deny NetworkPolicy for default/gpu-feature-discovery and removes the kube-linter exception. No one has observed the connections of the pod on a GPU node. A GPU node with the NVIDIA device plugin and node-feature-discovery is not available to the implementation job, so this check waits on that hardware. Acceptance criteria: 1. Run Inspektor Gadget on a GPU node and record the connections that the pod opens. 2. The recorded connections are none; if not, update the NetworkPolicy to allow only them. 3. Restart the pod and show that each GPU label of the node stays. 4. uv run devops k8s lint still passes.
Proposed design
Problem statement
The change of #6109 adds a default-deny NetworkPolicy for default/gpu-feature-discovery and removes its kube-linter exception. No one has observed the connections of that pod on a GPU node. This item records the trace on the GPU node condor, checks the applied policy against the trace, restarts the pod, and confirms that the GPU labels and uv run devops k8s lint stay correct.
Acceptance criteria
Requirement: trace-network-on-condor
The pod default/gpu-feature-discovery SHALL open no network connection on the GPU node condor.
Scenario: Trace of the pod on the node condor
- WHEN A person runs
kubectl gadget run trace_network -n default --podname gpu-feature-discovery --node condorwith thehomelab-k3skube context for one full cycle of the pod and records the output in the change folder. - THEN The recorded output holds no event in which the pod is the source of a connection.
Requirement: policy-matches-trace
The NetworkPolicy that selects the pods of default/gpu-feature-discovery MUST allow only the connections that the trace records.
Scenario: The applied policy agrees with the recorded trace
- WHEN A person runs
kubectl get networkpolicy -n default -o yamland compares each ingress rule of the policy that selectsdefault/gpu-feature-discoverywith the recorded trace. - THEN Each traced connection matches an ingress rule of the policy, and no connection that the trace does not record matches an ingress rule.
Requirement: restart-keeps-gpu-labels
A restart of the pod default/gpu-feature-discovery MUST keep each GPU label that node-feature-discovery sets on the node condor.
Scenario: Rollout restart of the pod on the node condor
- WHEN A person reads
kubectl get node condor -o json, runskubectl rollout restart daemonset/gpu-feature-discovery -n default, waits forkubectl rollout status daemonset/gpu-feature-discovery -n default, and readskubectl get node condor -o jsonagain. - THEN Each
nvidia.com/gpu.*label and eachfeature.node.kubernetes.io/*label has the same value in both reads.
Requirement: lint-without-exception
The environment tree k8s/ MUST pass uv run devops k8s lint with no non-isolated-pod exception for default/gpu-feature-discovery.
Scenario: Lint of the environment tree
- WHEN A person runs
uv run devops k8s linton the repository after the merge of fix(k8s): Put a NetworkPolicy on gpu-feature-discovery #6109. - THEN The command exits 0, and its output holds no finding for
default/gpu-feature-discovery.
Existing Tool Considered
No alternatives check has run. Inspektor Gadget (https://github.com/inspektor-gadget/inspektor-gadget) is the open, maintained CNCF tool that covers the need. Its trace_network gadget records the connections of one named pod on one node. It has no access to the GPU node, the kube context of the home cluster or the node labels. The proposal runs the gadget by hand on condor and reads the labels with kubectl get node condor -o json. The item builds no code, so it gives no cost to build and keep.
Key questions
- What does this check wait on: the change of fix(k8s): Put a NetworkPolicy on gpu-feature-discovery #6109, a GPU node, or both?: Both. The repository holds no NetworkPolicy for
default/gpu-feature-discovery:k8s/gpu-feature-discovery/kustomization.yamllists onlydaemonset.yaml, so the policy that fix(k8s): Put a NetworkPolicy on gpu-feature-discovery #6109 adds must merge first. The trace also needs the GPU nodecondor, which the implementation job cannot reach. The home cluster hascondor(2 RTX 3090) andhawk(RTX 5070 Ti). The archived design of fix(k8s): the ebpf profiler skips hawk #3784 keeps the eBPF profiler offhawk. The trace therefore runs oncondor. [sources: k8s/gpu-feature-discovery/kustomization.yaml, openspec/changes/archive/2026-10-31-2822-raise-condor-hawk-context/proposal.md, openspec/changes/archive/2026-11-06-3784-ebpf-profiler-skips-hawk/design.md] - Which tool records the connections that the pod opens?: Inspektor Gadget, with its
trace_networkgadget. It is an open, maintained CNCF project, it names the pod in the trace, and it needs no change to the cluster. It reads no node label, sokubectl get node condor -o jsonreads the labels. (best practice) [sources: docs/adr/0005-review-findings-come-from-tools-not-models.md]- Chosen: Inspektor Gadget
trace_network. Open and maintained, it traces one named pod, and the item builds no code. - Rejected: Cilium Hubble. It reads only the flows of Cilium, and the environment tree of this cluster deploys no Cilium.
- Rejected: A privileged
kubectl debug node/...pod with tcpdump. It traces the interfaces of the node, not the connections of one pod, and it needs a privileged pod and a tcpdump image. - Rejected: A guess from the manifest. ADR 0005 admits no finding or result from a model, and a guess is no observation of the pod.
- Chosen: Inspektor Gadget
- Which command reads the GPU labels of the node before and after the restart?:
kubectl get node condor -o json. gpu-feature-discovery writes the features of the node into the feature directory that node-feature-discovery reads. node-feature-discovery sets the node labels from it. The same read before and after the restart shows whether each label stayed. [sources: k8s/gpu-feature-discovery/daemonset.yaml] - Is the confirmation a new
devops k8scommand or a repeatable manual check?: A repeatable manual check that a person runs once on the GPU node. No schedule and no digest bump repeats it, so a command would add code, tests and error paths for one observation. The change folder records the commands and their output. (best practice) [sources: CONTEXT.md, k8s/README.md]- Chosen: Repeatable manual check. It runs once on hardware that the implementation job cannot reach, and no recurring trigger exists.
- Rejected: A new
devops k8s gpu-checkcommand. It adds a command, its tests and its error paths for one confirmation that no trigger repeats. - Rejected: No check, read the manifest. The item exists because no one observed the connections, and a manifest cannot show them.
- Who runs the live check on the GPU node?: The owner, or a person who holds the kube context of the home cluster (
homelab-k3s), because the implementation job has no access to that cluster. Recommendation: run the trace oncondor, and put the trace and the two node reads into the change folder. (a person decides) [sources: k8s/README.md] - What does the change do when the trace records a connection?: It adds one ingress rule for each traced connection to the NetworkPolicy that fix(k8s): Put a NetworkPolicy on gpu-feature-discovery #6109 adds, and no other rule. It records the trace and the policy in the change folder. When the trace records none, the policy stays default-deny. (best practice) [sources: k8s/gpu-feature-discovery/kustomization.yaml, docs/adr/0005-review-findings-come-from-tools-not-models.md]
- Chosen: Update the policy only from the trace. The trace is the observation that the item exists to make.
- Rejected: Keep the policy default-deny without a trace. The item must show that the pod opens no connection.
- Rejected: Allow a guessed set of connections. ADR 0005 admits no finding or result from a model, and a guess is no observation.
Open questions
- Who runs the live check on the GPU node? (a person decides)
Fit
Fits in one pull request.
Suspected block
A person with the homelab-k3s kube context runs the trace and the restart on the GPU node condor of the home cluster: the implementation job cannot reach that cluster.
Activity
devops-cli-service commentedon Nov 18, 2026
Both target the gpu-feature-discovery NetworkPolicy; #6109 adds it, the candidate confirms it on a GPU node.[-]test(k8s): confirm gpu-feature-discovery network and GPU labels on a GPU node[/-][+]test(k8s): confirm gpu-feature-discovery network and GPU labels[/+]devops-cli-service commentedon Nov 18, 2026
The job shortened the title of this item. The summary had 66 characters, and the limit is 60. The type and the scope stay.
test(k8s): confirm gpu-feature-discovery network and GPU labels on a GPU nodetest(k8s): confirm gpu-feature-discovery network and GPU labelsdevops-cli-service commentedon Nov 19, 2026
Owner question: See the first point of Open questions and Watched files in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 23, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
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.