Build a minimal highly available (HA) Kubernetes cluster with zero effort in less than 10 minutes in Hetzner Cloud aka hcloud with Terraform >= 0.13, Ansible and MicroK8s for development.
New in 1.19, high availability is automatically enabled on MicroK8s for clusters with three or more nodes.
Learn more: https://microk8s.io/docs/high-availability
hcloud WebUI -> Create new project -> Enter new project -> Access -> Add API Token
local$ git clone https://github.com/z3dm4n/k8s-dev-cluster-hcloud.git k8s-dev-cluster-hcloud
local$ cd k8s-dev-cluster-hcloud
local$ git checkout master
local$ cp terraform/terraform.tfvars.example terraform/terraform.tfvars
local$ # change hcloud_token in terraform/terraform.tfvars
local$ make ssh-key
local$ make
local$ make demo
local$ cd terraform; echo "`terraform output loadbalancer-ip` www.gitea.local"
local$ # add above command output to /etc/hosts
Now browse to http://www.gitea.local and finish the Gitea installation.
You just installed Gitea to your new MicroK8s HA cluster in less than 10 minutes.
local$ make clean