Deploy Kubectl On Vagrant Machinies
Deploy Kubectl On Vagrant Machinies
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
[cisco@centos-host kube-1m-3w]$
[cisco@centos-host kube-1m-3w]$ vagrant reload
==> master: Halting domain...
==> master: Starting domain.
==> master: Waiting for domain to get an IP address...
==> master: Waiting for SSH to become available...
==> master: Creating shared folders metadata...
==> master: Rsyncing folder: /home/cisco/vagrant-projects/kube-1m-3w/ => /vagrant
==> master: Machine already provisioned. Run `vagrant provision` or use the `--
provision`
==> master: flag to force provisioning. Provisioners marked to run always will
still run.
<..>
[cisco@centos-host kube-1m-3w]$ vagrant ssh master
[vagrant@kube-master ~]$
[vagrant@kube-master ~]$
To start using your cluster, you need to run the following as a regular user:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Run 'kubectl get nodes' on the control-plane to see this node join the cluster.
[vagrant@kube-worker-1 ~]$
[vagrant@kube-worker-3 ~]$
Link - https://docs.projectcalico.org/getting-started/kubernetes/self-managed-
onprem/onpremises#install-calico-with-kubernetes-api-datastore-50-nodes-or-less
8. Install Calico
10.