Lens IDE Working With WSL 2
So I've been deep into the container world and came across this app for visualization and easy management called Lens. Download it here.
Steps to Connect with WSL 2
- In the search bar type
\\wsl$
and hit enter to run command - Within that file explorer find your linux distro
- Open your wsl terminal
- run
pwd
and note the path printed (if your not at root (~
) then you should go there first) - go to that path from the file explorer
- find your
.kube/config
file - open Lens
- got to file > preferences > kubernetes
- scroll to
Kubeconfig Syncs
- hit the
Sync files
button - back in your initial file explorer right click on the config file and go to properties
- copy the location path
- post path into search box in the Lens file explorer
- restart Lens
- enjoy visualizations