Skip to content

feat: etcd reunion procedure#800

Open
alexarefev wants to merge 15 commits intomainfrom
feature/etcd_reunion
Open

feat: etcd reunion procedure#800
alexarefev wants to merge 15 commits intomainfrom
feature/etcd_reunion

Conversation

@alexarefev
Copy link
Copy Markdown
Collaborator

@alexarefev alexarefev commented Apr 3, 2026

Description

  • Provide an automation procedure to remove and add etcd member. It might be useful in case of corruption one of etcd members.

Solution

  • Add new KubeMarine procedure
  • Implement particular steps to remove and add corrupted etcd member
  • Add an article into maintenance guide

Test Cases

TestCase 1
Check if the reunion procedure is working (all members are up and running)

Test Configuration:

  • Hardware: 4CPU/8GB
  • OS: Ubuntu 22.04
  • Inventory: miniHA

Steps:

  1. Install K8S
  2. Run the kubemarine reunion procedure

Results:

Before After
Not applicable The etcd cluster is healthy and all of k8s cluster nodes are ready

TestCase 2
Check if the reunion procedure is working (one member is corrupted)

Test Configuration:

  • Hardware: 4CPU/8GB
  • OS: Ubuntu 22.04
  • Inventory: miniHA

Steps:

  1. Install K8S
  2. Run the following commands on one of the control plane nodes:
$ mv /etc/kubernetes/manifests/etcd.yaml /etc/kubernetes/tmp/
$ dd if=/dev/urandom of=/var/lib/etcd/member/snap/db bs=1k count=100 seek=100 conv=notrunc
$ mv /etc/kubernetes/tmp/etcd /etc/kubernetes/manifests/etcd.yaml
  1. Set that node as corrupted in procedure.yaml
  2. Run the kubemarine reunion procedure

Results:

Before After
Not applicable The etcd cluster is healthy and all of k8s cluster nodes are ready

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Integration CI passed
  • There is no merge conflicts

@alexarefev alexarefev added documentation Improvements or additions to documentation improvement New feature or request labels Apr 3, 2026
@alexarefev alexarefev marked this pull request as ready for review April 8, 2026 10:41
@alexarefev alexarefev requested review from disa1217 April 10, 2026 08:37
@disa1217
Copy link
Copy Markdown
Collaborator

Hi @alexarefev ,
reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation improvement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants