A vagrant image with kubeadm installation. There are two virtual machines, one for the master and the other for thes nodes.
Pre Requisites
Install vagrant (at least 1.8.1)
Master
once you start the machine with 'vagrant up' command you must follow next steps
1 - execute
vagrant up
2 - execute
vagrant reload
3 - execute
vagrant ssh
4 - execute as sudo
sudo su && echo 1 > /proc/sys/vm/drop_caches
5 - execute
/install/postinstall.bash
this commands install kubeadm, kubelet, docker
6 - execute
/install/start.bash <IP> for example /install/start.bash 192.168.1.4
this commands start kubeadm as master and install dashboard. You can search the ip address with the command ip addr.
Node
once you start the machine with 'vagrant up' command you must follow next steps
1 - execute vagrant up
2 - execute vagrant reload
3 - execute vagrant ssh
4 - execute as sudo
sudo su && echo 1 > /proc/sys/vm/drop_caches
5 - execute
/install/postinstall.bash
this commands install kubeadm, kubelet, docker.
6 - execute the join token
/install/join.bash 'TOKEN' for example kubeadm join 192.168.1.9:6443 --token 3jpzfi.fqyo9k561b34rdd0 --discovery-token-ca-cert-hash sha256:9ed37df6e95bc57453dded04bd3ab0147abde34e32ea444c7fd771d0d6fb830c