Use ansible to create an HA k8s cluster with three master nodes and three worker nodes automatically.
- ubuntu 20.04
- kubeadm 1.20
- CRI: docker 19.03
- CNI: calico
Edit inventory/hosts
and group_vars/all.yaml
as your desired
- build -
ansible-playbook site.yaml -i inventory/hosts
- cleanup -
ansible-playbook reset-site.yaml -i inventory/hosts