Calico using vagrant and virtual box

10
Anirban Sen Chowdhary

Transcript of Calico using vagrant and virtual box

Anirban Sen Chowdhary

Project Calico, a Tigera open-source project that provides a layer 3 network implementation, aimed at scalable datacenter deployments. This slides explains Calico using Vagrant and VirtualBox.

Deploy cluster using Vagrant

Dependencies:1) VirtualBox 2) Vagrant 3) Curl

Downloading the required file:

Deploying a Kubernetes master and two Kubernetes nodes:

To run more nodes, we need to modify the value num_instances in the Vagrantfile before running vagrant up.

Connecting to our servers:

For Windows OS:We can get instructions from https://github.com/nickryand/vagrant-multi-putty

For Linux/Mac OS :

Verifying the environment:

We can see have three CoreOS Container Linux servers:

We will check if they are able to ping each other:From k8s-master:

Verifying the environment:

From k8s-node-01 :

And finally from k8s-node-02 :

We can also verify each host can access etcd. The following command will return an error if etcd is not available.

And can check Docker is running on both hosts by running :

So we have now a basic three node CoreOS cluster setup

For more information visit

https://www.projectcalico.org/

https://docs.projectcalico.org/v2.6/introduction/

https://blog.tigera.io/tagged/calico