Bootstrap small HA k3s cluster (external etcd, glusterfs, nodes networked with wireguard)
group_vars | ||
host_vars | ||
roles | ||
.gitignore | ||
ansible.cfg | ||
generate-k3s-token.sh | ||
generate-keys.sh | ||
inventory.yaml | ||
README.md | ||
site.yml |
bootstrap k3s cluster
requirements
- 3 nodes, key-based SSH to root, empty sdb for gluster
init repository
local requirements: wireguard-tools, yq, jq, ansible
- adapt inventory.yaml (use external IPs!)
- run ./generate-keys.sh and ./generate-k3s-token.sh to generate your keys
- do NOT commit your wireguard keys to git, or use ansible-vault
deploy
ansible-playbook site.yaml