Remove kubeconfig of root

This commit is contained in:
Yosafat Marselino 2025-05-17 10:28:19 -04:00
parent 4919ddc263
commit 2a86de44ec

View File

@ -101,6 +101,7 @@ check_existing_cluster() {
fi
echo "Removing existing Kubernetes cluster..."
kubeadm reset -f
rm -rf /root/.kube/
# What's the point of uninstalling them if later on we gonna install them again
# sudo apt-get -y purge kubeadm kubectl kubelet kubernetes-cni kube* containerd
# sudo apt-get -y autoremove