
If /etc/kubeadm/amdin.conf doesn't exist kubeadm reset fails with the error: failed to load admin kubeconfig: open /root/.kube/config: no such file or directory Fixed by properly checking if file exists before using it.
If /etc/kubeadm/amdin.conf doesn't exist kubeadm reset fails with the error: failed to load admin kubeconfig: open /root/.kube/config: no such file or directory Fixed by properly checking if file exists before using it.