Deploying calico on docker

10
Anirban Sen Chowdhary

Transcript of Deploying calico on docker

Page 1: Deploying calico on docker

Anirban Sen Chowdhary

Page 2: Deploying calico on docker

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. 

Page 3: Deploying calico on docker

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.

Page 4: Deploying calico on docker

First step is to download the calicoctl binary:

Page 5: Deploying calico on docker

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:

Page 6: Deploying calico on docker

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

Page 7: Deploying calico on docker

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

Page 8: Deploying calico on docker

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:  

Page 9: Deploying calico on docker
Page 10: Deploying calico on docker