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

Terminal not switching with clusters #200

Open
Filipcsupka opened this issue May 21, 2024 · 1 comment
Open

Terminal not switching with clusters #200

Filipcsupka opened this issue May 21, 2024 · 1 comment

Comments

@Filipcsupka
Copy link

Hi, so the issue i have with OpenLens...

I have multiple clusters conected, some of them from kubeconfig synced from my WSL2 (Ubuntu) and some of them directly proxied since they need some auth stuff to let me in. Also terminal is connected to use wsl.exe to give me all the terminal tools and extensions i used previousli.

Now the ISSUE:

When i switch cluster from DEV to TEST, terminal stays on DEV and since we use same pod naming for like psql DB, mongo, and some core services... when i then go into SHELL it uses the kubectl exec... but from wrong cluster (DEV) even i switched to TEST and see resources from TEST and clicking on pod on TEST. But since the name is same and OpenLens is giving me shell access with command which is automatically placed in the terminal i am getting rekt.

As you can imagine this is causing lot of problems, i already updated psql DB in a wrong cluster because of that...

Any solutions, advice ?

@busches
Copy link

busches commented May 22, 2024

You can default a namespace per K8S config, not per namespace. You can duplicate the K8S config and setup each namespace in your .kubeconfig to be separate and then default the namespace in the terminal for each, that's what I do.

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

No branches or pull requests

2 participants