Open brubrz opened 2 years ago
Looking through the settings I also see and Error in the WSL preferences, which may be unrelated:
Error: File /home/user/.kube/config exists and is not a symlink
I use wsl-vpnkit to provide network connectivity to the WSL, this might help as well
Looking through the settings I also see and Error in the WSL preferences, which may be unrelated:
Error: File /home/user/.kube/config exists and is not a symlink
That happens to me too.
Potentially related to #905 -- checking.
Looking through the settings I also see and Error in the WSL preferences, which may be unrelated:
Error: File /home/user/.kube/config exists and is not a symlink
That happens to me too.
In my case, I mounted %USERPROFILE%
to ~
in WSL, like below
/home$ ls -la
lrwxrwxrwx 1 user user 12 Jun 9 21:27 user -> /c/Users/user
%USERPROFILE%/.kube/config
exists on windows and conflicts with the /home/user/.kube/config
file on WSL.
A little bit confused @mon-jai ? How did you do this? Did you just mount %USERPROFILE% to ~? Not sure that really makes sense to me.
I'm also running into the same issue.
@maczamora Something like this.
WINDOWS_USER_PROFILE="$(wslpath "$(wslvar USERPROFILE)")"
HOME_DICECTORY="/home/$(whoami)"
# https://askubuntu.com/a/86891
cp -vra ~/. $WINDOWS_USER_PROFILE
sudo rm -r $HOME_DICECTORY
sudo ln -s $WINDOWS_USER_PROFILE $HOME_DICECTORY
sudo chown $(whoami):$(whoami) -R $HOME_DICECTORY
I did that so that I could access my files and projects with ~
, e.g. ~/Documents
.
Looking through the settings I also see and Error in the WSL preferences, which may be unrelated:
Error: File /home/user/.kube/config exists and is not a symlink
That happens to me too.
Same happend to me. I just exited rancher desktop, then deleted /home/user/.kube/config in wsl and started rancher desktop again. Now kubectl was working again.
Actual Behavior
Kubernetes fails to start.
Steps to Reproduce
Hard, because it depends on user vpn setup.
Result
Error Starting Kubernetes
TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"
Context: Waiting for nodes
recent logfile:
maybe this is also helpful, I found this right above the log that was cut short in the snippet above:
Expected Behavior
Kubernetes starts.
Additional Information
Windows
NO_PROXY
environment variable:kubernetes.docker.internal,127.0.0.1,localhost,172.18.108.0/24,10.96.0.0/12,192.168.59.0/24,192.168.39.0/24,192.168.49.0/24,.*github.com,0.0.0.0,10.0.0.0/8,cattle-system.svc,.svc,.cluster.local
Rancher Desktop Version
Rancher Desktop 1.5.0 - win32 (x64)
Rancher Desktop K8s Version
1.24.3
Which container engine are you using?
containerd (nerdctl)
What operating system are you using?
Windows
Operating System / Build Version
Windows 10 21H2 (Build 19044.1826)
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
VPN Cisco AnyConnect