rancher deleting service from the cluster the right way
After de-registering the server, we still have some namespaces, rolebindings, role and pods in the cluster that needs to be clean up. To do that without causing your resource wait indefinite due to finalizer, do the following curl -O https://raw.githubusercontent.com/rancher/rancher/master/cleanup/user-cluster.sh chmod +x user-cluster.sh ./user-cluster.sh rancher/rancher-agent:v2.13-head If everything runs well, you get this