Cleanup Guide¶
Quick Start¶
Execute the cleanup subcommand:
curl -fsSL https://github.com/MuNeNiCK/setup-k8s/raw/main/setup-k8s.sh | sudo sh -s -- cleanup [options]
Worker Node Cleanup¶
-
Drain the node (run on control-plane):
kubectl drain <worker-node-name> --ignore-daemonsets kubectl delete node <worker-node-name> -
Run cleanup on the worker:
curl -fsSL https://github.com/MuNeNiCK/setup-k8s/raw/main/setup-k8s.sh | sudo sh -s -- cleanup --force
Control-Plane Node Cleanup¶
Warning: This will destroy your entire cluster.
- Ensure all worker nodes are removed first
- Run cleanup:
curl -fsSL https://github.com/MuNeNiCK/setup-k8s/raw/main/setup-k8s.sh | sudo sh -s -- cleanup --force
Options¶
See reference.md for the full list of cleanup options.