Flannel Pod network CIDR alignment¶
Flannel Pod network CIDR alignment refers to the necessary configuration step of matching the Network CIDR in Flannel's configuration with the --pod-network-cidr specified during the Kubernetes initialization process^[400-devops__06-Kubernetes__k8s-learning__00.install__01.使用部署工具安装_Kubernetes.md].
When setting up a cluster, the administrator defines the Pod network range using the --pod-network-cidr flag in the kubeadm init command^[400-devops__06-Kubernetes__k8s-learning__00.install__01.使用部署工具安装_Kubernetes.md]. For the cluster to function correctly, the Flannel manifest must be modified to use an identical network range^[400-devops__06-Kubernetes__k8s-learning__00.install__01.使用部署工具安装_Kubernetes.md].
For example, if kubeadm init is configured with --pod-network-cidr=192.168.0.0/16, the default Flannel configuration (10.244.0.0/16) must be changed to 192.168.0.0/16 in the kube-flannel.yml file^[400-devos__06-Kubernetes__k8s-learning__00.install__01.使用部署工具安装_Kubernetes.md]. Proper alignment ensures that node statuses transition from NotReady to Ready once the network plugin is applied^[400-devops__06-Kubernetes__k8s-learning__00.install__01.使用部署工具安装_Kubernetes.md].
Related Concepts¶
- Kubernetes
- [[kubeadm]]
Sources¶
^[400-devops__06-Kubernetes__k8s-learning__00.install__01.使用部署工具安装_Kubernetes.md]