This will spin up a 3-node, 1-master kubernetes cluster on Ubuntu 18.04 and deploy nginx in a load-balanced config. It uses https://github.com/cloudnativelabs/kube-router for the pod network.
sudo dnf install vagrant vagrant-sshfs libvirt sudo gpasswd -a $USER libvirt
vagrant up
A 'vagrant up' will spin up a new 3 node + 1 master cluster.
vagrant ssh k8s-master1
sudo -i
kubectl get nodes -o wide
kubectl get pods -l app=nginx
kubectl describe service nginx-svc
nodePort = $(kubectl describe service nginx-svc | awk '/^NodePort:/ { print substr($3,0,5) }') curl -k -H'Host: www.example.com' http://10.4.2.11:$nodePort curl -k http://10.4.2.11:$nodePort