安装完flannel组建后,查看pod,显示Error
查看log
提示:
Error registering network: failed to acquire lease: subnet "10.244.0.0/16" specified in the flannel net config doesn't contain "10.224.1.0/24" PodCIDR of the "node1" node.
百度是没有用地,还是要科学上谷歌查一下,找到原因
This occurs when its not able to lookup the host add the below after name: POD_NAMESPACE
- name: KUBERNETES_SERVICE_HOST
value: "10.220.64.186" #ip address of the host where kube-apiservice is running
- name: KUBERNETES_SERVICE_PORT
value: "6443"
修改flannel.yml后,重新初始化fannel得以解决