Skip to content

Commit

Permalink
Add ControlNode deletion to docs on how to remove a controller node
Browse files Browse the repository at this point in the history
There's nothing that would handle automatic removal of those objects,
currently. Documenting the manual deletion is the least we can do about
this.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 086b243)
  • Loading branch information
twz123 authored and github-actions[bot] committed Dec 16, 2023
1 parent df34254 commit b9a02a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/remove_controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ k0s kubectl drain --ignore-daemonsets --delete-emptydir-data <controller>
k0s kubectl delete node <controller>
```

Delete Autopilot's `ControlNode` object for the controller node:

```console
k0s kubectl delete controlnode.autopilot.k0sproject.io <controller>
```

Then you need to remove it from the Etcd cluster.
For example, if you want to remove `controller01` from a cluster with 3 controllers:

Expand Down

0 comments on commit b9a02a0

Please sign in to comment.