You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have enabled opening Rancher Desktop on startup of Windows. (WSL2 enabled).
On running K8S commands like kubectl get pods, we get errors related to the kube config file as follows:
error: error loading config file "C:\Users<user>.kube\config": yaml: control characters are not allowed
This is because, on examination we see that either the current context or the users isnt filled up properly, leading to key value pair with a blank value.
The issue is resolved on Quitting and reopening Rancher Desktop
Steps to Reproduce
Boot up a Windows machine.
Rancher Desktop starts up.
Once its done, run a kubectl command, like kubectl get pods.
Result
On running K8S commands like kubectl get pods, we get errors related to the kube config file as follows:
error: error loading config file "C:\Users<user>.kube\config": yaml: control characters are not allowed
Expected Behavior
kube config should be configured correctly when Rancher Desktop is opened on Windows.
Kubectl commands should work properly.
There should be no need to restart Rancher Desktop
Additional Information
No response
Rancher Desktop Version
1.11.0
Rancher Desktop K8s Version
1.27.6
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Windows 10 Enterprise 22H2
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
N/A
The text was updated successfully, but these errors were encountered:
Actual Behavior
We have enabled opening Rancher Desktop on startup of Windows. (WSL2 enabled).
On running K8S commands like kubectl get pods, we get errors related to the kube config file as follows:
error: error loading config file "C:\Users<user>.kube\config": yaml: control characters are not allowed
This is because, on examination we see that either the current context or the users isnt filled up properly, leading to key value pair with a blank value.
The issue is resolved on Quitting and reopening Rancher Desktop
Steps to Reproduce
Boot up a Windows machine.
Rancher Desktop starts up.
Once its done, run a kubectl command, like kubectl get pods.
Result
On running K8S commands like kubectl get pods, we get errors related to the kube config file as follows:
error: error loading config file "C:\Users<user>.kube\config": yaml: control characters are not allowed
Expected Behavior
kube config should be configured correctly when Rancher Desktop is opened on Windows.
Kubectl commands should work properly.
There should be no need to restart Rancher Desktop
Additional Information
No response
Rancher Desktop Version
1.11.0
Rancher Desktop K8s Version
1.27.6
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Windows 10 Enterprise 22H2
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
N/A
The text was updated successfully, but these errors were encountered: