-
Notifications
You must be signed in to change notification settings - Fork 149
How to configure cluster #35
Comments
I also looked at this App for Grafana and also didn't know what to fill in the http field. My guess is, it is the kubernetes api server. But than you need to use credentials (a token), so I am not sure. I now have settled for the dashboards which load directly from prometheus, they seem to provide enough info. Don't know if this app would provide more. |
FYI, I finally got this working. (Woo hoo!) Details are as follows:
Hope this is helpful. FYI to Grafana people: it would probably be good if somebody documents this somewhere! DR |
I hope you understand the security implementations of this setup. You'd better dive into RBAC and only authorise the API user for reading. |
Thanks for the tip. It's just a dev cluster though, used by only a handful of people, so not really a significant security risk. I'll definitely make a note to be aware of this for production though. |
In my .kube/config i have only clusters.cluster.server and clusters.cluster.certificate-authority-data data. Other data is not available in the config file. Can you please help me weather i miss something in the setup or how to connect to the cluster. |
I'm using minikube, and I had to do it a bit differently. The IP address in the kubectl get pods --namespace=kube-system -l component=kube-apiserver -o jsonpath='{.items[*].status.podIP}' After substituting, you'll end up with a url like Set The client cert and key were in files pointed to by the config; I copied their content into the fields. I did not have a CA cert so checked the |
For Kubernetes clusters in GCP, you'll get the credential information when running
The setting that worked for me was It took me a while to find this setting the Readme should be update to make users aware of different methods to set those parameters. Hope that helps some of you :) |
This is a copy of a previous comment by darose, you can use the kube client to view the config file:
|
Thanks @darose that made it work for me too!! |
Hi, I have done the same thing but I am getting the Error as also mentioned on my new github issue. Hope you can help me out. |
@dionmes could you please elaborate on how to implement RBAC to properly mitigate any risks involved? |
Hello @zimmertr , I am not really familiar with configuring RBAC in kubernetes but you can get info about RBAC here ; https://kubernetes.io/docs/reference/access-authn-authz/rbac/ . You should use a role which has read rights only. |
@CiaranCurran |
I've been able to install the kubernetes-app plugin into grafana running on our kubernetes cluster, but I'm not able to get the plugin to work. I think I probably don't have it configured correctly, but I'm not sure how to correct it. In my cluster config I have datasource set to "prometheus", and access set to "Server (Default)". But I'm not sure what to set for the http url or the auth settings. I have grafana and prometheus running as pods on the k8s cluster. (Installed via core-os prometheus-operator kube-prometheus.) So I'm not sure what http url to use: url of the kubernetes system? url of the prometheus service? The docs/help system aren't clear. Would appreciate if someone could help get this issue addressed, as the plugin looks quite nice. Thanks!
The text was updated successfully, but these errors were encountered: