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
I have tried with the latest version of my channel (Stable or Edge)
I have uploaded Diagnostics
Diagnostics ID:
Expected Behavior
After installation it should be possible to switch to the context "docker-for-desktop-cluster" using kubectl config use-context docker-for-desktop-cluster
Actual behavior
error: no context exists with the name: "docker-for-desktop".
Information
Windows Version: 10
Docker for Windows Version: 18.05 CE Edge
If you have an existing kubeconfig that is not located at default location (C:\users{userid}\.kube\config) then your active kubeconfig is not updated, but a new kubekonfig is written to the default location.
It seems like the installation is not using the environment variable the tells the location of kubeconfig.
Workaround:
Open the config at the default location in a text editor.
Copy the contents to clipboard.
Open your current kubekonfig in a text editor
Paste the contents into the proper sections (clusters, contexts and users)
Steps to reproduce the behavior
Have an existing kubeconfig and kubectl installed.
Move the kubeconfig to some other folder.
Update your KUBECONFIG environment variable to reflect the change.
Test that you can still reach remote clusters.
Install 18.05 ce Egde, Enable Kubernetes and restart.
Run command kubectl config use-context docker-for-desktop-cluster
The text was updated successfully, but these errors were encountered:
janlund67
changed the title
Wrong kubeconfig is updated when installing 18.05 ce (Edge)
Wrong kubeconfig is updated when installing 18.05 ce (Edge) and enabling Kubernetes
May 26, 2018
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale
Expected Behavior
After installation it should be possible to switch to the context "docker-for-desktop-cluster" using
kubectl config use-context docker-for-desktop-cluster
Actual behavior
Information
If you have an existing kubeconfig that is not located at default location (C:\users{userid}\.kube\config) then your active kubeconfig is not updated, but a new kubekonfig is written to the default location.
It seems like the installation is not using the environment variable the tells the location of kubeconfig.
Workaround:
Open the config at the default location in a text editor.
Copy the contents to clipboard.
Open your current kubekonfig in a text editor
Paste the contents into the proper sections (clusters, contexts and users)
Steps to reproduce the behavior
kubectl config use-context docker-for-desktop-cluster
The text was updated successfully, but these errors were encountered: