Skip to content

Instantly share code, notes, and snippets.

@bachmanity1
bachmanity1 / install-k8s-1.32.sh
Last active February 24, 2026 06:29
Install Kubernetes v1.32 worker node
#!/bin/bash
set -e
MASTER=false
for arg in "$@"; do
if [[ "$arg" == "--master" ]]; then
MASTER=true
break
fi
done
@bachmanity1
bachmanity1 / uninstall-k8s.sh
Created February 24, 2026 05:51
Uninstall Kubernetes from node
#!/bin/bash
set -e
echo "[1/6] Resetting kubeadm"
kubeadm reset -f || true
echo "[2/6] Stopping services"
systemctl stop kubelet || true
systemctl disable kubelet || true
systemctl stop containerd || true