Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch namespace in lens

I'm using lens kubernetes I searched and tried a lot but I didn't find any way to switch between namespaces. is there any option to do so ? to clarify it in vscode extension you can switch between namespaces easily by right clicking on a namespace listed and then selecting use Namespace option switch to ns in vs code

also in kubectl using this command :

kubectl config set-context --current --namespace=my-namespace 

but how can we do it in lens ?

like image 657
smh Avatar asked Oct 20 '25 11:10

smh


1 Answers

If I remember correctly there is a dropdown on the top right corner which you can use to select the namespace from.

Here is a screenshot from a blog that shows this dropdown:

Select Namespace

like image 67
M B Avatar answered Oct 23 '25 08:10

M B