Post

Remove cluster from rancher that is in updating state

Sometimes when deleting a cluster from rancher it will get in an updating state and will hang. You can force remove this by editing the clusters yaml from cluster managment and set the finalizers to []

1
finalizers: []

If you need to run this via the cli use either of the 2 commands below

RKE1

1
kubectl edit clusters.rancher.cattle.io/<cluster_name>

RKE2

1
kubectl edit clusters.management.cattle.io/<cluster_name>
This post is licensed under CC BY 4.0 by the author.