Personal repository for Kubernetes certification learning path: CKAD β , CKA π―, CKS π
Automated scripts for Kubernetes control plane setup and teardown on Ubuntu/Debian.
install_cp.sh
- Install Kubernetes control plane with containerd and Cilium CNI
chmod +x install_cp.sh
./install_cp.sh
uninstall_cp.sh
- Complete removal of Kubernetes and all components
chmod +x uninstall_cp.sh
./uninstall_cp.sh
install_worker.sh
- Install Kubernetes worker node
chmod +x install_worker.sh
# Method 1: Command line arguments
./install_worker.sh <CONTROL_PLANE_IP> <CONTROL_PLANE_HOSTNAME>
# Method 2: Environment variables
CONTROL_PLANE_IP=<CONTROL_PLANE_IP> CONTROL_PLANE_HOSTNAME=<CONTROL_PLANE_HOSTNAME> ./install_worker.sh
# Method 3: Interactive (will prompt for IP and hostname)
./install_worker.sh
These scripts completely wipe Kubernetes clusters. Use only on test systems.
- Dynamic version detection
- System requirements validation (2 CPU, 2GB RAM)
- Automatic cleanup of previous installations
- Multi-shell kubectl completion
kubeadm reset
doesn't clean everything:
- CNI configuration remains in
/etc/cni/net.d
- Port 6443 stays occupied
- Container images persist
$HOME/.kube
remains
The uninstall script handles complete cleanup including Cilium removal.