<p>I am trying to configure a 2 node Kubernetes cluster. First I am trying to configure the master node of the cluster on a CentOS VM. I have initialized the cluster using 'kubeadm init --apiserver-advertise-address=172.16.100.6 --pod-network-cidr=10.244.0.0/16' and deployed the flannel network to the cluster. But when I do 'kubectl get nodes', I get the following output ----</p>

<pre><code>[root@kubernetus ~]# kubectl get nodes
NAME         STATUS     ROLES    AGE   VERSION
kubernetus   NotReady   master   57m   v1.12.0
</code></pre>

<p>Following is the output of 'kubectl get pods --all-namespaces -o wide ' ----</p>

<pre><code>[root@kubernetus ~]# kubectl get pods --all-namespaces -o wide
NAMESPACE     NAME                                 READY   STATUS    RESTARTS   AGE   IP             NODE         NOMINATED NODE
kube-system   coredns-576cbf47c7-9x59x             0/1     Pending   0          58m   &lt;none&gt;         &lt;none&gt;       &lt;none&gt;
kube-system   coredns-576cbf47c7-l52wc             0/1     Pending   0          58m   &lt;none&gt;         &lt;none&gt;       &lt;none&gt;
kube-system   etcd-kubernetus                      1/1     Running   2          57m   172.16.100.6   kubernetus   &lt;none&gt;
kube-system   kube-apiserver-kubernetus            1/1     Running   2          57m   172.16.100.6   kubernetus   &lt;none&gt;
kube-system   kube-controller-manager-kubernetus   1/1     Running   1          57m   172.16.100.6   kubernetus   &lt;none&gt;
kube-system   kube-proxy-hr557                     1/1     Running   1          58m   172.16.100.6   kubernetus   &lt;none&gt;
kube-system   kube-scheduler-kubernetus            1/1     Running   1          57m   172.16.100.6   kubernetus   &lt;none&gt;
</code></pre>

<p>coredns is in a pending state for a very long time. I have removed docker and kubectl, kubeadm, kubelet a no of times &amp; tried to recreate the cluster, but every time it shows the same output. Can anybody help me with this issue?</p>

Aditya Datta
<p>Try to install Pod network add-on (Base on <a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network" rel="noreferrer">this guide</a>).</p>

<p>Run this line:</p>

<pre class="lang-sh prettyprint-override"><code>kubectl apply -f https://docs.projectcalico.org/v3.14/manifests/calico.yaml
</code></pre>
