<p>I am trying to get the metrics in Kubernetes dashboard. For that I'm running the <code>influxdb</code> and <code>heapster</code> pod in my <code>kube-system</code> namespace. I checked the status of pods using the command <code>kubectl get pods -n kube-system</code>. Here is the <a href="https://github.com/kubernetes/heapster/tree/master/deploy/kube-config/influxdb" rel="nofollow noreferrer">link</a> which I was followed  But heapster shows the logs as </p>

<pre><code>E1023 13:41:07.915723       1 reflector.go:190] k8s.io/heapster/metrics/util/util.go:30: Failed to list *v1.Node: Get https://kubernetes.default/api/v1/nodes?resourceVersion=0: dial tcp: i/o timeout
</code></pre>

<p>Could anybody suggest where might be I will do the changes in my configurations?</p>

BSG
<p>Looks like the heapster cannot talk to you kube-apiserver through the <code>kubernetes</code> service on your default <code>namespace</code>. A few of things, you can try:</p>

<ol>
<li><p>Check that the service is defined in the default namespace:</p>

<pre><code>$ kubectl get svc kubernetes
NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
kubernetes   ClusterIP   10.96.0.1    &lt;none&gt;        443/TCP   92d
</code></pre></li>
<li><p>Check that all your kube-proxy pods are running ok:</p>

<pre><code>$ kubectl -n kube-system -l=k8s-app=kube-proxy get pods
NAME               READY   STATUS    RESTARTS   AGE
kube-proxy-xxxxx   1/1     Running   0          4d18h
...
</code></pre></li>
<li><p>Check that all your overlay pods are running. For example for calico</p>

<pre><code>$ kubectl -n kube-system -l=k8s-app=calico-node get pods
NAME                READY   STATUS    RESTARTS   AGE
calico-node-88fgd   2/2     Running   3          4d21h
...
</code></pre></li>
</ol>
