Skip to content

docs: remove what destroy retains on Kubernetes, OpenShift, and Podman - #13416

Merged
cv merged 1 commit into
v1from
docs/remove-retained-resources
Oct 18, 2026
Merged

cv merged 1 commit into
v1from
docs/remove-retained-resources

Conversation

@cv

@cv cv commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Part of #12640.

Failure

Destroy keeps a deployment's persistent data, and #12929 documented removing it on Docker only. Users couldn't fully remove a deployment on Kubernetes, OpenShift or Podman, and there was no verified procedure for them.

Decision

As decided on #12640, there's no purge command: users remove what destroy retains with each platform's own commands, and the docs say so.

  • usage.md, "Remove Retained Resources" now starts with that, then has three procedures:
    • Docker: docs: add removal of a deployment's retained Docker resources #12929's procedure, unchanged.
    • Podman: the same objects, names and label, removed with podman --url.
    • Kubernetes or OpenShift: list what's left, note the bound volumes, delete the namespace, and check. Whether the volumes go depends on their StorageClass reclaim policy: Delete removes them, Retain leaves them Released for the platform's tools. On OpenShift, oc delete project does the same. The state directory goes last.
  • state.md gains "Find Retained Kubernetes Objects" (the namespace, the GATEWAY-kek Secret, the gateway's volume claims and bound volumes, and the local state), and notes that Podman keeps the same objects as Docker.
  • limits.md drops the purge and Podman/Kubernetes rows, and narrows the open row to verifying removal on Podman, of managed service volumes, and on SSH engines.

Validation

  • Kubernetes, verified live: the_gateway_installs_authenticates_and_is_removed_keeping_storage now deletes the retained namespace after destroy and checks that the namespace and the gateway's volumes are gone, using Kind's Delete reclaim policy. cargo ci live-kind passes: 7 tests in 241 seconds, within the 270-second budget.
  • Podman: not verified. Rootless managed Podman requires Podman's API to report pasta networking. The test machine's Podman 4.9.3 uses slirp4netns, and changing that needs a system package. The procedure follows the code, which gives Podman's objects the same names and label as Docker's.
  • cargo ci passes locally, and fern check reports 0 errors.

There is no purge command; each platform's own commands remove what destroy
retains. Document the Kubernetes and OpenShift namespace removal and the
Podman equivalent of the Docker procedure, and have the live Kubernetes test
delete a retained namespace and check that its volumes are gone.
@cv
cv enabled auto-merge (squash) October 18, 2026 13:10
@cv
cv merged commit 14b10ba into v1 Oct 18, 2026
@cv
cv deleted the docs/remove-retained-resources branch October 18, 2026 13:22
@github-actions

Copy link
Copy Markdown
Contributor

cv added a commit that referenced this pull request Oct 18, 2026
Part of #12640.

## Failure

#13416 documented removing a managed Podman gateway's retained objects,
but couldn't verify it: rootless managed Podman requires an API that
reports `rootlessNetworkCmd: "pasta"`, which only Podman 5 reports, and
the test machine had Ubuntu's Podman 4.9.3.

## Decision

The test machine now has Podman 5.8.8 (the signed static build,
installed beside Ubuntu's packages), so the procedure was run for real.
The docs drop the "not yet run against a Podman gateway" sentence, and
`limits.md` narrows the open row to SSH engines.

## Validation

On rootless Podman 5.8.8 with `pasta`:

1. **Apply:** `nemoclaw apply` of `examples/managed-podman.yaml`, with a
fresh UID and the Hermes agent image, created the gateway's storage and
the gateway.
2. **Destroy:** deleted the gateway and kept `gateway storage`: the
volume `WS-gateway-data`, the network `WS-network`, and the stopped
`WS-gateway-initialize`, exactly as `state.md` lists.
3. **Removal:** the documented Docker commands, with `podman --url
"$deployment_engine"`, removed all three. Rerunning the list commands
printed nothing.

On the same machine, the Docker procedure removed, by UID, everything 76
earlier test deployments had left: 84 containers, 94 volumes and 72
networks, including a vLLM model-cache volume. Nothing remained.

`fern check` reports 0 errors.
@wscurran wscurran added area: docs Documentation, examples, guides, or docs build area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch labels Oct 23, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation, examples, guides, or docs build area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants