{"id":23881391,"url":"https://github.com/nartix/ansible-playbook","last_synced_at":"2026-07-13T07:32:21.455Z","repository":{"id":270335357,"uuid":"908885201","full_name":"nartix/ansible-playbook","owner":"nartix","description":"An Ansible playbook to deploy RKE2 cluster","archived":false,"fork":false,"pushed_at":"2024-12-27T08:06:08.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T11:52:32.709Z","etag":null,"topics":["ansible","kube","kubespray","rke2"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nartix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-27T07:51:48.000Z","updated_at":"2024-12-27T08:10:42.000Z","dependencies_parsed_at":"2024-12-30T11:43:41.663Z","dependency_job_id":"e8a52ed4-4b00-452f-80f0-3c708d168ec9","html_url":"https://github.com/nartix/ansible-playbook","commit_stats":null,"previous_names":["nartix/ansible-playbook"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nartix/ansible-playbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nartix%2Fansible-playbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nartix%2Fansible-playbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nartix%2Fansible-playbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nartix%2Fansible-playbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nartix","download_url":"https://codeload.github.com/nartix/ansible-playbook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nartix%2Fansible-playbook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35414732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-13T02:00:06.543Z","response_time":119,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","kube","kubespray","rke2"],"created_at":"2025-01-04T01:45:23.293Z","updated_at":"2026-07-13T07:32:21.436Z","avatar_url":"https://github.com/nartix.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Ansible Kubespray\n\nI successfully tested this in my homelab, where it performed flawlessly. However, for production use, its deployment, upgrade process, and feature set are not as desirable as those offered by RKE2.\n\n## RKE2\n\nI found RKE2 to be the easiest to deploy and upgrade. It works without any preliminary setup. It is made by Rancher, a well-known company that provides support for and makes Kubernetes engines.\n\n## Others\n\nHonorable mentions: Kubesphere, Kubekey, K3s, RKE. I have explored storage solutions like Portworx and OpenEBS but found them unnecessary for my personal projects, as I decided against deploying databases in Kubernetes. Additionally, I evaluated cluster backup solutions including Velero, Stash K8, and Kasten K10.\n\n# RKE2 Kubernetes Cluster Management\n\n## Remove all RKE2 nodes\n\nTo remove all nodes from the RKE2 cluster, use the following command:\n\n```bash\nsudo ansible-playbook ansible/playbooks/rke2/uninstall-rke2.yml\n```\n\n## Install RKE2 nodes\n\nTo install nodes in the RKE2 cluster, execute:\n\n```bash\nsudo ansible-playbook ansible/playbooks/rke2/install-rke2-cluster.yml\n```\n\n## Install a single RKE2 node\n\nTo install a single node (e.g., `node2` as the master, ensure it's in the `kube_control_plane` group):\n\n```bash\nsudo ansible-playbook ansible/playbooks/rke2/install-rke2-cluster.yml --limit node2\n```\n\n## Remove a single RKE2 node\n\nTo remove a specific node (e.g., `node2`) from the cluster, use:\n\n```bash\nsudo ansible-playbook ansible/playbooks/rke2/uninstall-rke2.yml --limit node2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnartix%2Fansible-playbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnartix%2Fansible-playbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnartix%2Fansible-playbook/lists"}