.. | ||
host_vars | ||
templates | ||
generate-keys.sh | ||
inventory.yaml | ||
README.md | ||
setup.yml | ||
trust-hosts.sh |
Setup up k8s cluster
currently only supports single master, stacked etcd cluster with three to six worker nodes.
run:
-
adapt IPs in inventory.yaml
-
add host keys to your ssh config
./trust-hosts.sh
-
change wg encryption keys in host_vars:
./generate-keys.sh
- requires wireguard-tools, yq
-
run play for the first time
ansible-playbook -i inventory.yaml -u root -t initial setup.yaml
- this will upgrade all packages and reboot the system -
run play again, without the tag
now you have an empty cluster with canal networking plugin