kubegraf icon indicating copy to clipboard operation
kubegraf copied to clipboard

Connection to GKE Cluster

Open feadosiy opened this issue 5 years ago • 2 comments

I don't see any possibility connect to my GKE cluster to kubegraf I'm trying to use current configuration:

Screen Shot 2019-10-21 at 12 33 20 PM

However, during tests connection, in grafana logs I've just see: status=403

feadosiy avatar Oct 21 '19 09:10 feadosiy

Hi!

  1. Apply manifests from https://github.com/devopsprodigy/kubegraf/tree/master/kubernetes for create token with read-only access (https://github.com/devopsprodigy/kubegraf/blob/master/README.md steps 3-4
  2. Click on "Access via token"
  3. Enter your token from step 1

SergeiSporyshev avatar Oct 21 '19 09:10 SergeiSporyshev

Was hitting a similar issue but manage to get working with version 1.2.0. You need to follow the steps from @SergeiSporyshev's comment

But you also appear to need the CA Cert. You can get this from the gcloud console for your kubernetes cluster and click Show cluster certificate. Only use that tickbox, you can untick any others under the Auth section.

Also I found it helpful once saved, to go to the grafana datasources as there is a Save & test button on that window (grafana 6.5.2) which will tell you straight away if not working. If you pass there you should be good.

hawksight avatar Jan 07 '20 16:01 hawksight