almost 6 years ago

In my last post we had a demonstration of Project Calico in Policy-only mode.

In this post, we will see Project Calico in Calico networking mode.
So as we know, we first require kubectl and minikube as we seen in that last post.

We will start minikube with following command:

minikube start --memory 2096 --network-plugin=cni --host-only-cidr \
--extra-config=kubelet.ClusterCIDR= \
--extra-config=proxy.ClusterCIDR= \

We can see in the following screen:

and after some time it get started as below:

In this mode Calico handles configuring the networking and provides policy.

After kubernetes is started with the above command then it is possible to install Calico though some slight modifications will need to be made to the manifests.
The following commands can be used to pull down a manifest, update it, and then apply the manifest:
sudo curl -O -L
We can see as below:

Then update it as follow:
sudo sed -i -e '/nodeSelector/d' calico.yaml
We can see that below:

Followed by following command:
sudo sed -i -e '/\/master: ""/d' calico.yaml
and we can see as below:

And then the following:
sudo sed -i -e 's/10\.96\.232/10.0.0/' calico.yaml
Which we can see below:

And we can use following commands to install Calico:
kubectl apply -f calico.yaml
We can see the response below:

To confirm that all of the pods are running with the following command:
kubectl get pods --all-namespaces

We can see below:

So, we can see easily how Calico handles configuring the networking and provides policy.
This is Calico in networking mode.

← Getting Started With Project Calico