k8s安装flannel组件出错

安装完flannel组建后,查看pod,显示Error

k8s安装flannel组件出错_第1张图片

 查看log

k8s安装flannel组件出错_第2张图片

 提示:

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得以解决

k8s安装flannel组件出错_第3张图片

你可能感兴趣的:(k8s运维及开发,服务器运维,linux,运维,服务器)