kubernetes-app icon indicating copy to clipboard operation
kubernetes-app copied to clipboard

How to configure kubernetes cluster

Open bittu664 opened this issue 5 years ago • 5 comments

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

bittu664 avatar Feb 13 '20 13:02 bittu664

@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: https://github.com/grafana/kubernetes-app/issues/46#issuecomment-435806954

cbluth avatar Feb 13 '20 14:02 cbluth

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.

bittu664 avatar Feb 14 '20 06:02 bittu664

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"

baifuwa avatar Apr 27 '20 04:04 baifuwa

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.

adacaccia avatar May 22 '20 17:05 adacaccia

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

maozhihui avatar Oct 10 '20 02:10 maozhihui