Configure IP pools
IP pools are ranges of IP addresses that Calico uses for workload endpoints.
When we stood up the Kubernetes cluster, we set the pod CIDR, which is the range of IP addresses Kubernetes thinks the pods should be in. Many Kubernetes components use this setting to determine if an IP belongs to a pod, so you normally want all IP pools you configure to be subsets of the pod CIDR.
Let’s define two IP pools for use in this cluster. You can have a production-ready Calico install with only a single pool, but we define two so that we can show advanced networking later in this guide.
Let’s define a second pool right now.
In this second pool, we set disabled
to , meaning that Calico will not create new pods with addresses in the pool but will still recognize pods with these addresses as part of the Calico network. Later, in the test networking lab, we will enable this pool and demonstrate how to control which pools your pods are assigned addresses from.
The nodeSelector
is a label selector which determines which nodes use the pool. They are both set to meaning all nodes can use the pools.
Verify the pools are created by
You should see output similar to