Bootstrap small HA k3s cluster (external etcd, glusterfs, nodes networked with wireguard)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chris 7ffd17d3b5 fix systemd service for k3s 1 year ago
group_vars generate etcd cluster token 1 year ago
host_vars init 1 year ago
roles fix systemd service for k3s 1 year ago
.gitignore gitignore more potential sensitive data 1 year ago
README.md gitignore more potential sensitive data 1 year ago
ansible.cfg init 1 year ago
generate-k3s-token.sh generate etcd cluster token 1 year ago
generate-keys.sh add keygen 1 year ago
inventory.yaml add k3s token 1 year ago
site.yml k3s cluster 1 year ago

README.md

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