k8s-playground/setup
2019-05-30 13:37:13 +02:00
..
host_vars no masters 2019-05-30 13:37:13 +02:00
templates no masters 2019-05-30 13:37:13 +02:00
generate-keys.sh no masters 2019-05-30 13:37:13 +02:00
inventory.yaml no masters 2019-05-30 13:37:13 +02:00
README.md no masters 2019-05-30 13:37:13 +02:00
setup.yml no masters 2019-05-30 13:37:13 +02:00
trust-hosts.sh init 2019-05-22 13:37:13 +02:00

Setup up k8s cluster

currently only supports single controller, 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