k8s-playground/setup
chris c9e0cbea4e init cluster 2019-05-24 13:37:13 +02:00
..
host_vars wg key stuff 2019-05-22 13:37:13 +02:00
templates init 2019-05-22 13:37:13 +02:00
README.md init cluster 2019-05-24 13:37:13 +02:00
generate-keys.sh wg key stuff 2019-05-22 13:37:13 +02:00
inventory.yaml init 2019-05-22 13:37:13 +02:00
setup.yml init cluster 2019-05-24 13:37:13 +02:00
trust-hosts.sh init 2019-05-22 13:37:13 +02:00

README.md

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