last day (15 days later) » 

4:57 PM
0
Q: coredns pod is not running in kubernetes

yasin lachiniI install kubernetes 1000 times but now it does not work. I install kubectl kubeadm kubelet then sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=185.73.114.92 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.y...

 
What's the output of kubectl get nodes -o jsonpath="{.items[*].spec.taints}"
 
map[effect:NoSchedule key:node-role.kubernetes.io/master] map[effect:NoSchedule key:node.kubernetes.io/not-ready]]
 
You did not remove the master taint from your node, can you try kubectl taint nodes --all node-role.kubernetes.io/master- and then redoing kubectl get nodes -o jsonpath="{.items[*].spec.taints}"?
 
I do it but nothing change
 
Really? What did kubectl taint nodes --all node-role.kubernetes.io/master say?
 
4:57 PM
error: at least one taint update is required
 
My mistake, it should have been kubectl taint nodes --all node-role.kubernetes.io/master- with a - in the end.
 
node/ubuntu untainted
 
are you here?
 
network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
i edit the node and delete taint and now pod start creating but it gives me this error
 
ok can you do :
kubectl taint nodes --all node-role.kubernetes.io/master-
then show me result
then:
kubectl get nodes -o jsonpath="{.items[*].spec.taints}"
and show me result
 
5:02 PM
kubectl get nodes -o jsonpath="{.items[*].spec.taints}"
[map[effect:NoSchedule key:node.kubernetes.io/not-ready timeAdded:2019-09-22T16:59:09Z]]
 
ok now the master taint is gone
 
kubectl taint nodes --all node-role.kubernetes.io/master-
error: taint "node-role.kubernetes.io/master" not found
 
it should work now
 
it stuck at creating
and give the error
network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
 
the first time you have these taints:
map[effect:NoSchedule key:node-role.kubernetes.io/master] map[effect:NoSchedule key:node.kubernetes.io/not-ready]]
now you have this:
[map[effect:NoSchedule key:node.kubernetes.io/not-ready time
just wait for the scheduler to reschedule coredns
it might take some time
 
5:04 PM
no it stuck and give the error
 
really, can you redo the command : kubectl apply -f raw.githubusercontent.com/coreos/flannel/master/Documentation/…
 
I reset the cluster and do it seeral times
 
this should force coredns to be re scheduled
when you redo it, do you still get this error:
0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.
 
no the error change as i said
 
strange.
What does kubectl get pods --all-namespaces output?
if you have a problem with cni, then flannel is the issue
 
5:18 PM
kube-system coredns-5644d7b6d9-gv449 0/1 ContainerCreating 0 22m
how to solve flannel
 
can you show all the output of kubectl get pods --all-namespaces.
One of the pods is made by flannel
 
5:41 PM
yes it runs without any error in describe of it and no log
 
 
1 hour later…
6:49 PM
Not sure how to debug a cni plugin. Maybe you can try other CNI plugins or a different version of the flannel plugin to see if that fixes the issue.
 

last day (15 days later) »