Hi, not clear how to get kubeconfig from cluster r...
# rancher-desktop
p
Hi, not clear how to get kubeconfig from cluster running in rancher desktop. Do not see in documentation .. any idea how to do it ? usually in rancher gui there is a dowload link for a kubeconfig, but it is missing ..
a
https://docs.rancherdesktop.io/ui/preferences/wsl/integrations/#kubeconfig
Rancher Desktop will create a symlink from
~/.kube/config
inside the distro to the corresponding
%USERPROFILE%\.kube\config
file on the Windows filesystem.
If the
~/.kube/config
file already exists inside the distro and contains only
rancher-desktop
contexts, users, and clusters then it will be deleted and replaced with the symlink.
If it contains any other information then the file will not be modified and the user has to update the Rancher Desktop cluster information manually. In that case the "Kubernetes context" menu entry for the notification icon will show (and change) the context for the Win32 side only. The contexts inside distributions will need to be managed manually from a command prompt.
Sorry, that was the long answer. The short answer is: There's no kubeconfig download link in Rancher Desktop, it tries to manage that for you automatically.
🤔 but it might be good to have a link in the UI too.
p
ah ,, thanks a lot ... I have a several contexts in kubeconfig.. found it finally ... 👍 yes will be greate to a have a link in UI as well ..