Automated build of HA k3s Cluster with kube-vip
, basic Traefik
ingress deployment, Longhorn
and more.
Huge thanks to them!
Build a Kubernetes cluster using Ansible with k3s. The goal is easily install a HA Kubernetes cluster with a base Traefik
Ingress Controller with cert-manager
, storage provisioning with Longhorn
, and setting up SSO with Authentik
.
-
Control Node (the machine you are running
ansible
commands) must have Ansible 2.11+ If you need a quick primer on Ansible you can check out my docs and setting up Ansible. -
You will also need to install collections that this playbook uses by running
ansible-galaxy collection install -r ./collections/requirements.yml
( importantβ) -
netaddr
package must be available to Ansible. If you have installed Ansible via apt, this is already taken care of. If you have installed Ansible viapip
, make sure to installnetaddr
into the respective virtual environment. -
server
andworker
nodes should have passwordless SSH access, if not you can supply arguments to provide credentials--ask-pass --ask-become-pass
to each command.
COMING SOON
Start provisioning of the cluster using the following command:
COMING SOON
COMING SOON