✅ 1. First: Check the kubeconfig Rancher Desktop injects into Windows
Rancher Desktop ALWAYS writes a kubeconfig to this standard location:
👉 C:\Users\<your-user>\.kube\config
Check it:
PowerShell:
If you see a file named config, then that is the correct kubeconfig.
eg:
Directory: C:\Users\admin\.kube
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 22/11/2024 10:12 AM cache
-a---- 06/12/2025 8:58 AM 6054 config
Inside WSL run:
Now WSL and PowerShell use the same Kubernetes context.
Create aliases for convenience
Inside WSL, so you don’t have to type .exe:
Now in WSL you can run:
Exactly like in PowerShell.
No comments:
Post a Comment