How to get access to the Heapster's Grafana dashboard after clean Kubernetes installation using Rancher

727 views
Skip to first unread message

Parth Gandhi

unread,
Sep 8, 2017, 9:21:01 AM9/8/17
to Kubernetes user discussion and Q&A

I have just installed 3 node kubernetes cluster using rancher. I am trying to access the grafana dashboard with the url that i get from cluster info output. However i am getting unathorized error.


monitoring-grafana is running at https://mypublicIP:8080/r/projects/1a7/kubernetes:6443/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy


Thanks.

Brandon Philips

unread,
Sep 8, 2017, 6:52:21 PM9/8/17
to Kubernetes user discussion and Q&A
Hello Parth-

This isn't a general Kuberentes question so you might get help on the Rancher forums: https://forums.rancher.com/

Brandon

--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
--
CTO, CoreOS, Inc
Tectonic is enterprise Kubernetes

Parth Gandhi

unread,
Sep 15, 2017, 5:56:55 AM9/15/17
to Kubernetes user discussion and Q&A
Hi Brandon,

I did. However i was asked to check with the kubernetes team on this. :(

Jay Vyas

unread,
Sep 15, 2017, 3:27:28 PM9/15/17
to kubernet...@googlegroups.com
Hi parth.  

Can't help with rancher but in general, in this forum.

But this is a generic confusion some folks have.

End users don't access things through the apiserver proxy endpoint, instead You need to expose the services using kubectl expose on the service and wait for the external ip to come up (kubectl get services -o wide).

In GCE or Kops / Kubeadm you'll get this glue for free.
In other clouds the loadbalancer will be done in a different way.
Worst case scenario use type NodePort and access it anywhere on your cluster.

Parth Gandhi

unread,
Sep 15, 2017, 10:52:57 PM9/15/17
to kubernet...@googlegroups.com

Hi Jay,
I did try exposing the NodePort and accessing it using the http://hostip:NodePort. But still not able to access it.

To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-users/Ier4nOOy5n8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.

Jay Vyas

unread,
Sep 16, 2017, 6:18:07 AM9/16/17
to kubernet...@googlegroups.com
Paste the output of the: 

get services -o wide and 

curl hostip:NodePort 

commands.

Parth Gandhi

unread,
Sep 18, 2017, 3:29:33 AM9/18/17
to kubernet...@googlegroups.com
Hi Jay,

Here is the desired output.

ubuntu@Host3:~$ kubectl get services -n kube-system -o wide
NAME                   CLUSTER-IP      EXTERNAL-IP   PORT(S)         AGE       SELECTOR
heapster               10.43.214.249   <none>        80/TCP          21m       k8s-app=heapster
kube-dns               10.43.0.10      <none>        53/UDP,53/TCP   21m       k8s-app=kube-dns
kubernetes-dashboard   10.43.243.36    <none>        9090/TCP        20m       k8s-app=kubernetes-dashboard
monitoring-grafana     10.43.191.246   <nodes>       80:32498/TCP    21m       k8s-app=grafana
monitoring-influxdb    10.43.39.172    <none>        8086/TCP        21m       k8s-app=influxdb
tiller-deploy          10.43.79.214    <none>        44134/TCP       21m       app=helm,name=tiller

however curl command doesn't give any output.
Regards,
Parth Gandhi
Reply all
Reply to author
Forward
0 new messages