Skip to content

feat(ansible): maintenance playbooks#2

Open
ModerNews wants to merge 5 commits into
WMS-DEV:mainfrom
ModerNews:feat/maintenance
Open

feat(ansible): maintenance playbooks#2
ModerNews wants to merge 5 commits into
WMS-DEV:mainfrom
ModerNews:feat/maintenance

Conversation

@ModerNews
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Ansible “maintenance” capabilities to the existing RKE2 bootstrap automation, introducing playbooks/roles for scaling a running cluster and safely decommissioning nodes.

Changes:

  • Add rke2-scale.yaml to detect existing vs new nodes and only run join steps for new hosts.
  • Add rke2-decommission.yaml plus node maintenance roles (node-drain, node-uncordon, node-remove) to drain/remove nodes and clean up cluster membership.
  • Update ansible/README.md with new entry points, roles, and tags.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ansible/README.md Documents new maintenance playbooks/roles and updates the tags table.
ansible/playbooks/roles/node-drain/tasks/main.yaml Adds a reusable role to cordon+drain a node via the Kubernetes API from localhost.
ansible/playbooks/roles/node-uncordon/tasks/main.yaml Adds a reusable role to uncordon a node via the Kubernetes API from localhost.
ansible/playbooks/roles/node-remove/tasks/main.yaml Implements end-to-end node removal (drain, etcd member removal for masters, stop/uninstall, delete Node object).
ansible/playbooks/rke2-scale.yaml Adds a scale-up entry point that groups hosts by detected RKE2 state and runs join stages for new nodes.
ansible/playbooks/rke2-decommission.yaml Adds a decommission entry point with quorum preflight and serial master removals.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ansible/playbooks/roles/node-remove/tasks/main.yaml
Comment thread ansible/playbooks/roles/node-remove/tasks/main.yaml Outdated
Comment thread ansible/playbooks/rke2-decommission.yaml Outdated
Comment thread ansible/README.md Outdated
Copy link
Copy Markdown
Member

@SmigorX SmigorX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot has some pretty good suggestions

@ModerNews ModerNews requested a review from SmigorX May 22, 2026 09:33
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.

3 participants