This document applies to the HEAD of the calico-containers source tree.
View the calico-containers documentation for the latest release here.
Calico can be installed on Kubernetes using Kubernetes resources (DaemonSets, etc).
The Calico self-hosted installation consists of three objects in the kube-system
Namespace:
- A
ConfigMap
which contains the Calico configuration. - A
DaemonSet
which installs thecalico/node
pod and CNI plugin. - A
ReplicaSet
which installs thecalico/kube-policy-controller
pod.
To intall these components:
kubectl create -f manifests/calico-configmap.yaml
kubectl create -f manifests/calico-hosted.yaml
You should see the containers start in the kube-system
Namespace:
$ kubectl get pods --namespace=kube-system
NAME READY STATUS RESTARTS AGE
calico-node-ctwm7 2/2 Running 0 4m
calico-node-w03mn 2/2 Running 0 4m
calico-policy-controller-lo2hf 1/1 Running 0 4m
To install KubeDNS, use the provided manifest. This enables Kubernetes Service discovery.
kubectl create -f manifests/skydns.yaml
You should now have a fully functioning Kubernetes cluster using Calico for networking. You're ready to use your cluster.
We recommend you try using Calico for Kubernetes NetworkPolicy.