Welcome to the Linux Foundation Forum!

Deploying with Vagrant

DavidSanders Posts: 5
edited May 2019 in LFD259 Class Forum

I wanted to share this because over two nights I've had not a lot of fun trying to get LFD259 to work first on Azure (which I abandoned) and then on Vagrant.

Here's what I did to finally get this working for me on vagrant:

  1. First, I defined my vagrant machines as having private IPs: config.vm.network :private_network, ip:
  2. Then after I stood the machines up I edited k8sMaster.sh on the master node and a) changed every occurrence of 1.13.1 to 1.14.0 in vim: %s/1.13.1/1.14.0/g; b) found the sudo kubeadm line and appended --apiserver-advertise-address
  3. I then edit k8sSecond.sh on the worker node and changed every occurrence of 1.13.1 to 1.14.0 in vim: %s/1.13.1/1.14.0/g
  4. Ran k8sMaster.sh on vagrant machine 1 while running k8sSecond.sh on machine 2 at the same time
  5. Copied the kubeadm join command and ran it on machine 2

At this point, I finally have a cluster up and running.

Why did I abandon Azure? When I got to lab 3.4, I could not get the healthchecks to work with Azure networking for some reason and thought Vagrant would be easier; well, half right :) Now to try lab 3.4 again :smile:

Hope this helps someone else




Upcoming Training