-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using flannel, the CoreDNS remains "pending" #2064
Comments
If you do kubectl describe for the coredns pod what do you get? |
I'm sorry. There is no flannel pod. |
Flannel create its own namespace you should check |
I'm running into the same issue. Nodes never go into "ready" state after deploying flannel. root@master # kubectl get nodes root@master # kubectl get pods -A Conditions: NetworkUnavailable False Sun, 24 Nov 2024 23:26:33 -0700 Sun, 24 Nov 2024 23:26:33 -0700 FlannelIsUp Flannel is running on this node root@master # ll /etc/cni/net.d/ root@master # cat /etc/cni/net.d/10-flannel.conflist root@master # ip a Fedora 41 |
This might be a clue. I observed this error when running: journalctl -u crio -f Nov 24 23:43:08 master.lab crio[26766]: time="2024-11-24 23:43:08.876402310-07:00" level=warning msg="Error validating CNI config file /etc/cni/net.d/10-flannel.conflist: [failed to find plugin "portmap" in path [/opt/cni/bin/]]" |
Ok, just figured it out. I had to add this to /etc/crio/crio.conf and restart the crio service on each node. Everything is working now. [crio.network] For some reason Fedora uses a different plugin directory /usr/libexec/cni. Not sure the background on why its different with Fedora (and likely other redhat based distros). Ubuntu uses /opt/cni/bin. |
When I use flannel as the pod network of Kubernetes, the coredns pod stays in the "pending" status.
Expected Behavior
The coredns pod should be in the "running" status.
Current Behavior
Steps to Reproduce (for bugs)
1.kubeadm init --pod-network-cidr=100.100.0.0/16 --image-repository=registry.aliyuncs.com/google_containers --apiserver-advertise-address=192.168.1.122 (192.168.1.122 is my private IP address, which is available to the cluster nodes)$(id -u):$ (id -g) $HOME/.kube/config (steps 2,3,4 are directed by the above kubeadm init command's output)
2.mkdir -p $HOME/.kube
3.sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
4.sudo chown
5.kubectl apply -f kube-flannel.yml (this file is attached)
6.kubectl get pod -n kube-system
Your Environment
Attached: the content of "kube-flannel.yml"
The text was updated successfully, but these errors were encountered: