Deploying calico on docker

Preview:

Citation preview

Anirban Sen Chowdhary

Project Calico provides a layer 3 network implementation, aimed at scalable datacenter deployments. Compared to traditional network overlays, Calico provides a more efficient implementation with minimal packet encapsulation. This allows better usage of node resources and a simple yet powerful network stack for your infrastructure. 

Calico can be deployed in Docker easilyCalico implements a Docker network plugin that can be used to provide routing and advanced network policy for Docker containers. 

This slides will guide you to configure a Docker with Calico networking. Calico runs as a Docker container on each host and calicoctl command line tool can be used to launch the calico/node container.

First step is to download the calicoctl binary:

Next step is to Configure access to our etcd cluster, calicoctl - etcd datastore and then launch calico/node. calicoctl will use the specified keys directly on the host to access etcd, it will also pass on these environment variables and volume mount the keys into the started calico-node container:

Let’s now check that calico/node is now running: :

 We can also check if the calico/node container is functioning properly with the following command: 

So to print the command calicoctl node run uses to launch Calico on this host, run the command with the --init-system and --dry-run flags:  

Recommended