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

Can someone give the detail steps for creating new cluster

Open hegdedarsh opened this issue 7 years ago • 5 comments
trafficstars

HI All,

Can someone please send the documentation for creating a new cluster, bcoz after i click on new cluster and fill in the details i am stuck, i get error like datasource name already exists, 404 http error etc...

Would be really helpful if someone has a documentation for this.Also would request the grafana team to please update it.

hegdedarsh avatar Oct 12 '18 07:10 hegdedarsh

@hegdedarsh i am having a similar issue, but i have already added my first cluster without issue, now im having issues finding any good documentation on adding a second cluster, and everything i try seems to fail in some way.

Anyone have good docs on adding multiple clusters?

anyways, @hegdedarsh , grab the certificates and keys from your ~/.kube/config file, and then do this: echo 'LS0tLS1CRUd..very-long-string..FWS0tLS0tCg==' | base64 -d ;echo.

Then the attached image should be able to help you the rest of the way. Pay attention to all the red arrows.

image

cbluth avatar Nov 05 '18 09:11 cbluth

here is some info on adding more clusters: https://github.com/grafana/kubernetes-app/issues/48#issuecomment-435956771

cbluth avatar Nov 06 '18 11:11 cbluth

@hegdedarsh i am having a similar issue, but i have already added my first cluster without issue, now im having issues finding any good documentation on adding a second cluster, and everything i try seems to fail in some way.

Anyone have good docs on adding multiple clusters?

anyways, @hegdedarsh , grab the certificates and keys from your ~/.kube/config file, and then do this: echo 'LS0tLS1CRUd..very-long-string..FWS0tLS0tCg==' | base64 -d ;echo.

Then the attached image should be able to help you the rest of the way. Pay attention to all the red arrows.

image

I have created my cluster in EKS . 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. Can you please elaborate the steps.

shashikant-koder avatar Nov 09 '18 13:11 shashikant-koder

Thanks @cbluth for sharing this. I couldn't find any other instructions to configure the app. I have simple shell script to base64 decode from kubectl/config.

#CA Cert 
cat ~/.kube/config | grep certificate-authority-data | cut -d ' ' -f 6 | base64 -d
#Client Cert 
cat ~/.kube/config | grep client-certificate-data | cut -d ' ' -f 6 | base64 -d
#Client Key 
cat ~/.kube/config | grep client-key-data | cut -d ' ' -f 6 | base64 -d

nvenky avatar Nov 13 '18 01:11 nvenky

I wondering what I should input into URL field under HTTP section.

thank for your help


figured it out: it's the cluster endpoint URL

bobbui avatar Nov 15 '18 21:11 bobbui