Configuring the Installation Environment
Before installing and deploying the Calico component, you must initialize the Kubernetes component.
- Set the master node during initialization.
In this section, the 10.244.0.0/16 network segment is used as the network driver CIDR and the default gateway is used as the network broadcast address. If you need to specify another network segment, modify the command accordingly.
1$ kubeadm init --pod-network-cidr=10.244.0.0/16
After the initialization is complete, check whether the pods information of the Kubernetes cluster is normal and whether the node status is NotReady. Back up the kubeadm join command in the output for future use. Then, deploy the network plane.


- Set master node environment variables:
1 2 3
$ mkdir -p $HOME/.kube $ cp -i /etc/kubernetes/admin.conf $HOME/.kube/config $ chown $(id -u):$(id -g) $HOME/.kube/config
Parent topic: Calico 3.13.1 Installation Guide (CentOS & openEuler)