Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 844 Bytes

File metadata and controls

35 lines (25 loc) · 844 Bytes

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

  1. Drain the node (run on control-plane):
kubectl drain <worker-node-name> --ignore-daemonsets
kubectl delete node <worker-node-name>
  1. 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.

  1. Ensure all worker nodes are removed first
  2. 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.