Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nartix/ansible-playbook
An Ansible playbook to deploy RKE2 cluster
https://github.com/nartix/ansible-playbook
ansible kube kubespray rke2
Last synced: 11 days ago
JSON representation
An Ansible playbook to deploy RKE2 cluster
- Host: GitHub
- URL: https://github.com/nartix/ansible-playbook
- Owner: nartix
- License: mit
- Created: 2024-12-27T07:51:48.000Z (19 days ago)
- Default Branch: main
- Last Pushed: 2024-12-27T08:06:08.000Z (19 days ago)
- Last Synced: 2024-12-30T11:43:38.948Z (16 days ago)
- Topics: ansible, kube, kubespray, rke2
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Ansible Kubespray
I 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.
## RKE2
I 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.
## Others
Honorable 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.
# RKE2 Kubernetes Cluster Management
## Remove all RKE2 nodes
To remove all nodes from the RKE2 cluster, use the following command:
```bash
sudo ansible-playbook ansible/playbooks/rke2/uninstall-rke2.yml
```## Install RKE2 nodes
To install nodes in the RKE2 cluster, execute:
```bash
sudo ansible-playbook ansible/playbooks/rke2/install-rke2-cluster.yml
```## Install a single RKE2 node
To install a single node (e.g., `node2` as the master, ensure it's in the `kube_control_plane` group):
```bash
sudo ansible-playbook ansible/playbooks/rke2/install-rke2-cluster.yml --limit node2
```## Remove a single RKE2 node
To remove a specific node (e.g., `node2`) from the cluster, use:
```bash
sudo ansible-playbook ansible/playbooks/rke2/uninstall-rke2.yml --limit node2
```