Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly created kube config file on opening Rancher Desktop during Windows startup #5981

Closed
ashhSAG93 opened this issue Nov 16, 2023 · 1 comment
Labels
kind/bug Something isn't working triage/duplicate This issue or pull request already exists

Comments

@ashhSAG93
Copy link

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

@ashhSAG93 ashhSAG93 added the kind/bug Something isn't working label Nov 16, 2023
@jandubois
Copy link
Member

Closing as a duplicate of #5946. Feel free to re-open with additional information if you this this is a different problem!

@jandubois jandubois added the triage/duplicate This issue or pull request already exists label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants