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.
Benjamin 60ab4f4868 fix python dep, update to 1.18, minor fixes 11 months ago
inventories/example-inventory fix python dep, update to 1.18, minor fixes 11 months ago
roles fix python dep, update to 1.18, minor fixes 11 months ago
.gitignore refactor using better role grouping 2 years ago
LICENSE Initial commit 4 years ago
README.md add example token in the README 2 years ago
install-all.yml rework and cleanup for kubernetes 1.17 2 years ago

README.md

Kubernetes cluster bootstrap with ansible and kubeadm

the install-all.yml will install a kubernetes 1.17 cluster with kubeadm and flannel.

Right now it is only tested on ubuntu

components

  • kubernetes 1.17
  • flannel

Minimum Requirements

1 Master

  • 2 cpu's
  • 4gb ram

at least 1 Node, better 3 with more ram and cpu

  • 2 cpu's
  • 4gb ram

getting started

create your inventory from the example-inventory or edit the values directly

generate yourself a new cluster join token and insert it in the inventory with

kubeadm token generate

or use one for tests only e.g sw4xjw.xfar3wciairc2n7o

Then run the playbook:

ansible-playbook -i inventories/<example-inventory>/ install-all.yml

you can give your newly added Nodes the "worker" label with kubectl label node <nodeName> node-role.kubernetes.io/worker=worker