{"repo":"lablabs/ansible-role-rke2","free":true,"listed":false,"github":"https://github.com/lablabs/ansible-role-rke2","clone":"git clone https://github.com/lablabs/ansible-role-rke2.git","description":"Ansible Role to install RKE2 Kubernetes.","language":"Jinja","stars":506,"topics":["rke2","kubernetes","kubernetes-cluster","kubernetes-deployment","rancher"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"RKE2 Ansible Role This Ansible role will deploy RKE2 Kubernetes Cluster. RKE2 will be installed using the tarball method. The Role can install the RKE2 in 3 modes: - RKE2 single node - RKE2 Cluster with one Server(Master) node and one or more Agent(Worker) nodes - RKE2 Cluster with Server(Master) in High Availability mode and zero or more Agent(Worker) nodes. In HA mode you should have an odd number (three recommended) of server(master) nodes that will run etcd, the Kubernetes API (Keepalived VIP or Kube-VIP address), and other control plane services. --- - Additionally it is possible to install the RKE2 Cluster (all 3 modes) in Air-Gapped functionality with the use of local artifacts. It is possible to upgrade RKE2 by changing rke2 version variable and re-running the playbook with this role. During the upgrade process the RKE2 service on the nodes will be restarted one by one. The Ansible Role will check if the node on which the service was restarted is in Ready state and only then proceed with restarting service on another Kubernetes node. Requirements for Ansible Controller Ansible 2.10+ netaddr Python package Tested on Rocky Linux 9 Ubuntu 24.04 LTS Role Variables This is a copy of defaults/main.yml Inventory file example This role relies on nodes distribution to masters and workers inventory groups. The RKE2 Kubernetes master/server nodes must belong to masters group and worker/agent nodes must be the members of workers group. Both groups has to be the children of k8s cl","default_branch":null,"files":null,"tree":[],"storefront":"/r/lablabs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lablabs/ansible-role-rke2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}