Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

How to configure kubernetes cluster #87

Open
bittu664 opened this issue Feb 13, 2020 · 5 comments
Open

How to configure kubernetes cluster #87

bittu664 opened this issue Feb 13, 2020 · 5 comments

Comments

@bittu664
Copy link

Hello, @ALL I want to ask a question that how to configure the Kubernetes cluster with this Kubernetes plugin.
k899

@cbluth
Copy link

cbluth commented Feb 13, 2020

@bittu664

  1. ignore that page.

  2. extract the certificate keys from your KUBECONFIG with base64 -d

  3. go to configure a new "datasource"

  4. configure a new kubernetes datasource

  5. in the new datasource, use "TLS Client Auth"

  6. paste in the keys from step 2

  7. done


see here: #46 (comment)

@bittu664
Copy link
Author

bittu664 commented Feb 14, 2020

I do not have #Client Cert and #Client Key. FYI I am using Digital ocean Kubernetes cluster when I am run this 2 command
cat ~/.kube/config | grep client-certificate-data | cut -d ' ' -f 6 | base64 -d
cat ~/.kube/config | grep client-key-data | cut -d ' ' -f 6 | base64 -d
it shows me nothing only show the #CA Cert, so what should I do now. But it works on only that cluster which is created manually just like kops etc.

@baifuwa
Copy link

baifuwa commented Apr 27, 2020

I do not have #Client Cert and #Client Key. FYI I am using Digital ocean Kubernetes cluster when I am run this 2 command
cat ~/.kube/config | grep client-certificate-data | cut -d ' ' -f 6 | base64 -d
cat ~/.kube/config | grep client-key-data | cut -d ' ' -f 6 | base64 -d
it shows me nothing only show the #CA Cert, so what should I do now. But it works on only that cluster which is created manually just like kops etc.

try "Skip TLS Veryify"

@adacaccia
Copy link

adacaccia commented May 22, 2020

Hello, any news on this?
I've only got "certificate-authority-data" on my KUBECONFIG, so I've decoded it with "base64 -d" as "-----BEGIN CERTIFICATE----- [...] -----END CERTIFICATE----", then copied this data to the TLS Cert field which appeared after selecting "With CA Cert" in the Kubernetes Datasource page.
But no luck! The dashboards show errors and remain empty.

Please advise on a proper and general way to configure of a Kubernetes cluster metrics' with Grafana 7.

@maozhihui
Copy link

add a new cluster, what is the mean of name?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants