<p>I tried this <a href="https://kubernetes.io/docs/getting-started-guides/kubeadm/" rel="noreferrer">doc</a> to install and setup Kubernetes in Ubuntu VM. I have finished upto 3/4 and now kube-dns pod is in pending status.
How can i figure out this?
here is the result for <code>kubectl get pods --namespace=kube-system</code> and <code>kubectl describe pod &lt;pod name&gt;</code></p>

<pre><code># kubectl get pods --namespace=kube-system
NAME                              READY     STATUS    RESTARTS   AGE
dummy-2088944543-jk2t2            1/1       Running   0          3h
etcd-ubuntu                       1/1       Running   0          3h
kube-apiserver-ubuntu             1/1       Running   0          3h
kube-controller-manager-ubuntu    1/1       Running   0          3h
kube-discovery-1769846148-h88v4   1/1       Running   0          3h
kube-dns-2924299975-dfp17         0/4       Pending   0          3h
kube-proxy-zdcxw                  1/1       Running   0          3h
kube-scheduler-ubuntu             1/1       Running   0          3h
weave-net-xwfhj                   2/2       Running   0          2h

# kubectl describe pod kube-dns-2924299975-dfp17
Error from server (NotFound): pods "kube-dns-2924299975-dfp17" not found
</code></pre>

<h3>Cause</h3>

<p>Most likely a lack of available computing resources in your cluster.</p>

<p>If you're using the example in <a href="https://github.com/kubernetes/kubernetes/blob/release-1.10/cluster/addons/dns/kube-dns.yaml.base#L104-L108" rel="noreferrer">cluster/addons/dns</a> you're certainly using a <code>Deployment</code> with resource requests, highlighted if you click the link. It could be that your other pods are already requesting all the available resources in the cluster, therefore your pod doesn't get scheduled.</p>

<p>You can confirm that theory with <code>kubectl --namespace=kube-system describe pod kube-dns-2924299975-dfp17</code> and look for the following event:</p>

<pre><code>Reason                Message
------                -------
FailedScheduling      pod (kube-dns-2924299975-dfp17) failed to fit in any node
fit failure summary on nodes : Insufficient cpu (3)
</code></pre>

<p>You can also describe your nodes with <code>kubectl describe node &lt;node-name&gt;</code> and look at the last information:</p>

<pre><code>Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.
  CPU Requests  CPU Limits      Memory Requests Memory Limits
  ------------  ----------      --------------- -------------
  320m (8%)     300m (7%)       150Mi (1%)      150Mi (1%)
</code></pre>

<p>In your case either the CPU or memory allocation should be close to 100%.</p>

<h3>Solution</h3>

<ul>
<li>Add more computing resources / nodes to your cluster (preferred)</li>
<li>Remove the resource requests from your pod(s), at the risk of overcommitting your resources</li>
</ul>
