guiqui / k8Studio

K8Studio: A Kubernetes IDE
https://k8studio.io
Other
794 stars 25 forks source link

Doesn't work with GKE #62

Open TonyBogdanov opened 7 months ago

TonyBogdanov commented 7 months ago

I have a GKE cluster that appears automatically when I open k8studio. Double clicking on it, however, shows an error toast and nothing else happens:

image

mo-othman commented 7 months ago

Hi @TonyBogdanov, Thanks for reporting this, I will do a similar setup and investigate. I have a question

This information will help me reproduce the issue more efficiently and faster. Thanks!

TonyBogdanov commented 7 months ago

Actually when I opened k8studio I saw my cluster listed and double clicked on it. I never setup the connection and I have no setup on my computer. I do have a ~/.kube/config file on WSL, maybe that's what k8studio is picking up somehow?

The correct way would probably be to setup the connection manually. Do you have any guide how to obtain credentials from GKE to be used in k8studio?

mo-othman commented 7 months ago

The application by default reads your default kubeconfig file. If you're working with Google Kubernetes Engine (GKE), you can update your kubeconfig file using the following command: gcloud container clusters get-credentials CLUSTER_NAME --region=COMPUTE_REGION For more information on how gcloud container clusters get-credentials works, you can refer to the documentation https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials. Additionally, GKE-specific documentation on cluster access: https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl

We're currently working on enhancing the process of adding clusters by redesigning the workflow. The upcoming approach will allow you to seamlessly add multiple configuration files instead of using the form modal. This change aims to provide more flexibility and convenience in managing your clusters.

vlakarados commented 7 months ago

Same issue here, using several clusters from AWS as well as a couple of other ones. Windows 11, WSL2. Used to use k9s and it still works properly, while K8SStudio did load clusters, same error "cannot read properties of null" when clicking on cluster on the dashboard as Tony has.

[2024-01-25 15:26:06.449] [info]  Clusters config created
[2024-01-25 15:26:07.716] [info]  Selecting Cluster arn:aws:eks:eu-central-1:xxx:cluster/core
[2024-01-25 15:26:07.719] [info]  Loading Cluster arn:aws:eks:eu-central-1:xxx:cluster/core
[2024-01-25 15:26:07.749] [error] Cannot read properties of null (reading 'toString')
[2024-01-25 15:26:07.750] [error] Cannot read properties of null (reading 'toString')
[2024-01-25 15:26:07.751] [error] Error Loading cluster Cannot read properties of null (reading 'toString')