2

I follow this guide to deploy my Kubernetes cluster and this guide to launch Heapster.

However, when I open Granfa's website UI, it always says "Dashboard init failed: Template variables could not be initialized: undefined". Moreover, I can't access InfluxDB via port 8083. Is there anything I missed?

I've tried several versions of Kubernetes. I can't deploy DNS with some of them, for now I'm using 1.1.4, but I need to create "kube-system" namespace manually. The docker version is 1.7.1.

Edit: I can curl ports 8083 and 8086 in the influxdb pod. However, I get connection refused if I do that in the node running the container. This is my services status: svc

Wei-Tsung
  • 297
  • 3
  • 12
  • Did you follow the [troubleshooting guide](https://github.com/kubernetes/heapster/blob/master/docs/influxdb.md#troubleshooting-guide) and verify that the pods are all running? – Robert Bailey Feb 18 '16 at 07:54
  • Yes, all the pods and services are running. I'm not quite sure how to make the influxDB visible though, I thought it's done in yaml. – Wei-Tsung Feb 18 '16 at 18:51
  • And even if I curl 8086 or 8083 port locally, it says connection refused. – Wei-Tsung Feb 18 '16 at 19:01
  • 1
    When you say curl locally, are you curl'ing from *inside* the container or on the node running the container? – Robert Bailey Feb 18 '16 at 21:56
  • I just found that I can curl 8083 in the pod, but not in the node running the container. I edited the post to show the service status. – Wei-Tsung Feb 19 '16 at 05:30
  • Note that Grafana should be accessing the `/query` endpoint on port 8086. Port 8083 is just for the Web Admin UI. – beckettsean Feb 20 '16 at 00:26
  • When I open Grafana, it just says "Dashboard init failed: Template variables could not be initialized: undefined" and cannot read any data. I'm not sure if it has anything to do with that I can't connect to 8086 outside the container. (I can do that inside the container) – Wei-Tsung Feb 20 '16 at 04:03
  • Port 8083 isn't bound as a host port so it won't be reachable directly from the host on localhost. Can you `10.0.0.3:8083` or `10.0.0.81:8083`? – Robert Bailey Feb 20 '16 at 07:22
  • No, I got "Network is unreachable" instead. – Wei-Tsung Feb 20 '16 at 18:18
  • can you try go to grafana settings and change database hostname to localhost? And also output of kubectl get pods --namespace=kube-system would be heplful – TermiT Jun 09 '16 at 15:17

0 Answers0