Execute the cleanup subcommand:
curl -fsSL https://github.com/MuNeNICK/setup-k8s/raw/main/setup-k8s.sh | sudo sh -s -- cleanup [options]- 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 --forceWarning: 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 --forceSee reference.md for the full list of cleanup options.