Skip to content

Uninstall and clean up

There come a time when you break the Kubernetes beyond repair. So we are going to clean up and start anew.

Worker nodes

Assuming you have ansible setup same as we installed K3s using this guide:

Run following to remove Kubernetes from worker nodes:

ansible workers -b -m shell -a "/usr/local/bin/k3s-agent-uninstall.sh"

Master nodes

ansible control -b -m shell -a "/usr/local/bin/k3s-uninstall.sh"

Storage cleanup

Remove all file from /storage

ansible all -b -m shell -a "rm -rf /storage/*"

Last update: February 8, 2021

Comments