Repository navigation
docs: remove what destroy retains on Kubernetes, OpenShift, and Podman - #13416
Merged
Merged
Conversation
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
purgecommand: 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:podman --url.Deleteremoves them,Retainleaves themReleasedfor the platform's tools. On OpenShift,oc delete projectdoes the same. The state directory goes last.state.mdgains "Find Retained Kubernetes Objects" (the namespace, theGATEWAY-kekSecret, the gateway's volume claims and bound volumes, and the local state), and notes that Podman keeps the same objects as Docker.limits.mddrops 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
the_gateway_installs_authenticates_and_is_removed_keeping_storagenow deletes the retained namespace after destroy and checks that the namespace and the gateway's volumes are gone, using Kind'sDeletereclaim policy.cargo ci live-kindpasses: 7 tests in 241 seconds, within the 270-second budget.pastanetworking. The test machine's Podman 4.9.3 usesslirp4netns, 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 cipasses locally, andfern checkreports 0 errors.