<p>I have a ubuntu 16.04 running in virtual box. I installed Kubernetes on it as a single node using kubeadm.</p>
<p>But coredns pods are in Crashloopbackoff state.</p>
<p>All other pods are running.</p>
<p>Single interface(enp0s3) - Bridge Network</p>
<p>Applied calico using
kubectl apply -f <a href="https://docs.projectcalico.org/manifests/calico.yaml" rel="nofollow noreferrer">https://docs.projectcalico.org/manifests/calico.yaml</a></p>
<pre class="lang-yaml prettyprint-override"><code>output on kubectl describe pod: 
 Type     Reason     Age                  From               Message
  ----     ------     ----                 ----               -------
  Normal   Scheduled  41m                  default-scheduler  Successfully assigned kube-system/coredns-66bff467f8-dxzq7 to kube
  Normal   Pulled     39m (x5 over 41m)    kubelet, kube      Container image &quot;k8s.gcr.io/coredns:1.6.7&quot; already present on machine
  Normal   Created    39m (x5 over 41m)    kubelet, kube      Created container coredns
  Normal   Started    39m (x5 over 41m)    kubelet, kube      Started container coredns
  Warning  BackOff    87s (x194 over 41m)  kubelet, kube      Back-off restarting failed container
</code></pre>

<p>I did a <code>kubectl logs &lt;coredns-pod&gt;</code> and found error logs below and looked in the mentioned <a href="https://coredns.io/plugins/loop/#troubleshooting" rel="nofollow noreferrer">link</a>
As per suggestion, added <code>resolv.conf = /etc/resolv.conf</code> at the end of <code>/etc/kubernetes/kubelet/conf.yaml </code>and recreated the pod.</p>
<pre><code>kubectl logs coredns-66bff467f8-dxzq7 -n kube-system 
.:53 [INFO] plugin/reload: Running configuration MD5 = 4e235fcc3696966e76816bcd9034ebc7 CoreDNS-1.6.7 linux/amd64, go1.13.6, da7f65b [FATAL] plugin/loop: Loop (127.0.0.1:34536 -&gt; :53) detected for zone &quot;.&quot;, see coredns.io/plugins/loop#troubleshooting. Query: &quot;HINFO 8322382447049308542.5528484581440387393.&quot; 
root@kube:/home/kube# 
</code></pre>
