Giter Club home page Giter Club logo

Comments (5)

jcabrera96 avatar jcabrera96 commented on August 20, 2024 2

Hello again.

I just found how to resolve this issue by my self, so here are the steps:

  1. (Just to make sure) You have to ensure you have a Service Account with a valid ClusterRole attached to your grafana deployment
  2. Give that SA (Service account) the perms needed to call api and get info about the cluster and other elements
  3. Go to your google cloud console and get into the Clusters section in gke
  4. Open your desired cluster and click at show credentias (at the right side of endpoint address)
  5. Get your user/password combination
  6. Go to grafana and get to your cluster by the datasources path (datasources --> your cluster) if created or at the kubernetes-app create one, then place the cluster IP (the one you get with kubectl get services) in this way: https://yout-cluster-ip:443 with proxy access mode, then check skip tls verification and basic auth using your user/password combination there.
  7. Maybe data doesn't displays because prometheus config doesn't deploy well, so just get to your cluster config (at the kubernetes app) and at the bottom you will find a configuring prometheus link, click it and then add that jobs (don't replace all the scrape'configs, just add that ones as new ones) to the file, changing jobs names in case they conflict with anothers you have at the same file (deployment will always restart if this happens, so just check logs).

Please try it out and comment again with the close option in case this solved your issue aswell so we are sure it works. Hope this helps you and anothers with the same problem.

from kubernetes-app.

BushnevYuri avatar BushnevYuri commented on August 20, 2024

Hello.

Yes, struggling with the same. Not quite sure if I understand where to get the cluster http url but I'm running the grafana/prometheus under the same k8s cluster. Would be very glad if you can add some more detailed instruction on how to configure kubernetes data source.

from kubernetes-app.

gabrielfsousa avatar gabrielfsousa commented on August 20, 2024

@LKO124 how i create credentias on the independent kubernetes cluster to be used the on the Service Accoun ?

from kubernetes-app.

gabrielfsousa avatar gabrielfsousa commented on August 20, 2024

manage to install on a independent kubernetes , used TLS Client Auth and With CA Cert .

from kubernetes-app.

axot avatar axot commented on August 20, 2024

Hello, I'm using the private cluster in GKE, so each Node only has private IP. Is it possible setup proxy to connect to Master Node?

from kubernetes-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.