Skip to content

cli: run kubeadm reset when removing control-plane nodes - #157

Merged
alicefr merged 1 commit into
bootc-dev:mainfrom
alicefr:reset-kubeadm
Oct 23, 2026
Merged

alicefr merged 1 commit into
bootc-dev:mainfrom
alicefr:reset-kubeadm

Conversation

@alicefr

@alicefr alicefr commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

When removing a control-plane node, run kubeadm reset on the node before deleting it from Kubernetes. This cleanly removes the node from the etcd cluster, preventing quorum loss when the node goes down.

Without this, removing a control-plane node from a 2-node cluster leaves etcd unable to elect a leader, breaking the entire cluster.

This is required to test bootc-operator for upgrading control planes at bootc-dev/bootc-operator#255

Comment thread internal/cli/node/remove.go
Comment thread internal/cli/node/remove.go Outdated
When removing a control-plane node, run kubeadm reset on the node
before deleting it from Kubernetes. This cleanly removes the node
from the etcd cluster, preventing quorum loss when the node goes
down.

Without this, removing a control-plane node from a 2-node cluster
leaves etcd unable to elect a leader, breaking the entire cluster.

Assisted-by: AI
Signed-off-by: Alice Frosi <afrosi@redhat.com>
@alicefr
alicefr merged commit c760926 into bootc-dev:main Oct 23, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants