Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to add more than one cluster in the desktopclient #2244

Open
VonNao opened this issue Aug 13, 2024 · 9 comments
Open

Not possible to add more than one cluster in the desktopclient #2244

VonNao opened this issue Aug 13, 2024 · 9 comments
Assignees
Labels
auth Authentication or authorization related blocker Completely prevents the user from using the software. bug Something isn't working desktop Issues related to the desktop

Comments

@VonNao
Copy link

VonNao commented Aug 13, 2024

Hello,

tried headlamp today and it looks amazing. Sadly i got the following Problem. I added our first cluster, which worked like a charm. After that i tried to add another cluster, from a different kubeconfig with a different context name. Loading the file worked "Clusters successfully set up!"
But the cluster isn't displayed in the ui. After restarting the client the ui displayed the new cluster but removed the old one.

OS: Windows 11
Client-Version: 0.25.0

@illume illume added desktop Issues related to the desktop auth Authentication or authorization related blocker Completely prevents the user from using the software. bug Something isn't working labels Aug 14, 2024
@joaquimrocha
Copy link
Collaborator

Hi @VonNao . This looks like a serious problem. Thanks for reporting. We will prioritize this and get back to you.

@lukas-becker0
Copy link

How did you add the new cluster configuration ?

I just started using headlamp and it lets me select from all my clusters, but I did not add them through headlamp.

@VonNao
Copy link
Author

VonNao commented Aug 16, 2024

@lukas-becker0 Just via the "load cluster" button. How did you add them to headlamp?

@lukas-becker0
Copy link

@VonNao by adding them directly to ~/.kube/config e.g. through the azure cli but you can also do this manually with a text editor

@VonNao
Copy link
Author

VonNao commented Aug 16, 2024

@lukas-becker0 Ah we are working with wsl. So my clusteconfigs are under wsl mount point's ~/.kube/config. Is it possible to point headlamp to a folder so i picks up new configs automatically?

@joaquimrocha
Copy link
Collaborator

@VonNao Adding them through the UI should definitely work. Next week we will investigate whether we have a regression here.
Adding them to the .kube/config for now Headlamp reads only that one kubeconfig by default and doesn't read a whole directory (but we want to change it to do that), so you would have to merge your kubeconfigs into that default one.

@MinHyeok90
Copy link

I have same issue. I used a windows client. 0.25.1

I added 5 clusters but only one was always visible.
I deleted the one cluster, but there was still one cluster left.
after deleting each single cluster for 4 times more, UI show the empty.

@antonosmond
Copy link

antonosmond commented Sep 16, 2024

Same issue. For some additional context, multiple clusters in a single kubeconfig works just fine. The issue is when you have multiple kubeconfigs. Say I have the following kubeconfigs with the following clusters:

~/.kube/nonprod

  • sandbox
  • staging

~/.kube/prod

  • prod

If I add a cluster in the desktop app, it asks for the kubeconfig. I select the nonprod kubeconfig. It succesfully adds the clusters and now I have both the sandbox and staging clusters available.
I add a new cluster and this time I select my prod kubeconfig.
At this point it seems to get in a pickle. I close and reopen the app and now my prod cluster from the prod kubeconfig is there but the clusters from the nonprod kubeconfig have gone.
It feels like maybe the app is storing the path to the kubeconfig centrally and assumes there will only ever be one kubeconfig for all clusters. But it should be able to handle many clusters in many kubeconfigs i.e. store the relevant kubeconfig path for each cluster.

So basically what @joaquimrocha said:

Adding them to the .kube/config for now Headlamp reads only that one kubeconfig by default and doesn't read a whole directory (but we want to change it to do that), so you would have to merge your kubeconfigs into that default one.

@rk4827
Copy link

rk4827 commented Sep 19, 2024

Same issue on the Mac as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Authentication or authorization related blocker Completely prevents the user from using the software. bug Something isn't working desktop Issues related to the desktop
Projects
Development

No branches or pull requests

8 participants