Skip to content

Instantly share code, notes, and snippets.

@richardcase
Last active February 6, 2024 10:44

Revisions

  1. richardcase revised this gist Feb 6, 2024. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    > 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
  2. richardcase created this gist Feb 6, 2024.
    20 changes: 20 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    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:

    ```bash
    kubectl get clusters.cluster.x-k8s.io
    ```

    7. You should see **default/cluster1** in the output
    8. Run the following command:

    ```bash
    kubectl get clusters.cluster.x-k8s.io cluster1 -o yaml
    ```

    9. Check there is a annotation called **imported** with a value of **true**
    10. Wait a few minutes and ensure the cluster doesn't appear in the **Cluster Management* screen in Rancher Manager