canasta uninstall
From Canasta Wiki
canasta > uninstall
canasta uninstall
Uninstall dependencies from the target host
Synopsis
Uninstall dependencies from the target host. Supported packages: k8s (removes k3s, kubectl, helm, and cleans up iptables rules).
When uninstalling k8s from a worker, pass --cp-host <name> to
also delete the worker's Node entry from the control plane.
Without it, the Node lingers in kubectl get nodes until manually
removed (and a worker rejoining with the same hostname will
reclaim it, masking the uninstall).
canasta uninstall [flags]
Examples
canasta uninstall k8s
canasta uninstall k8s --host worker1 --cp-host cp
Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--cp-host |
For k8s worker uninstalls, name of the registered control-plane host. Canasta SSHs there after stopping the agent and runs 'kubectl delete node <hostname>' so the Node entry is cleaned up. Ignored on control-plane uninstalls. | Both | |||
--docker-host |
Docker API socket on the target. Set this when the target uses rootless podman or rootless Docker. Defaults to system Docker's /var/run/docker.sock. |
Both | |||
--host |
-H |
Target host (default: localhost) | Both | ||
--packages |
Dependencies to uninstall (k8s) | ✓ | Both | ||
--yes |
-y |
Skip confirmation prompt | Both |
Global Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--help |
-h |
Show help message and exit | Both | ||
--verbose |
-v |
Enable verbose output | Both |