Skip to content

Instantly share code, notes, and snippets.

@richardcase
Last active February 6, 2024 10:44
Show Gist options
  • Save richardcase/dd33c1a61b9963844e7d121b549e895b to your computer and use it in GitHub Desktop.
Save richardcase/dd33c1a61b9963844e7d121b549e895b to your computer and use it in GitHub Desktop.
Rancher Turtles: Remove a cluster from Rancher Manager

Also called un-importing

  1. In Rancher Manager go to Cluster Management
  2. Tick the box next to cluster1-capi
  3. Click the Delete button
  4. Type cluster1-capi in the text box
  5. Click the Delete button
  6. Run the following command to check that the CAPI cluster hasn't been deleted:
kubectl get clusters.cluster.x-k8s.io
  1. You should see default/cluster1 in the output
  2. Run the following command:
kubectl get clusters.cluster.x-k8s.io cluster1 -o yaml
  1. Check there is a annotation called imported with a value of true
  2. Wait a few minutes and ensure the cluster doesn't appear in the *Cluster Management screen in Rancher Manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment