feat(ansible): maintenance playbooks#2
Open
ModerNews wants to merge 5 commits into
Open
Conversation
There was a problem hiding this comment.
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.yamlto detect existing vs new nodes and only run join steps for new hosts. - Add
rke2-decommission.yamlplus node maintenance roles (node-drain,node-uncordon,node-remove) to drain/remove nodes and clean up cluster membership. - Update
ansible/README.mdwith 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.
SmigorX
requested changes
May 22, 2026
Member
SmigorX
left a comment
There was a problem hiding this comment.
Copilot has some pretty good suggestions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.