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

Wrong kubeconfig is updated when installing 18.05 ce (Edge) and enabling Kubernetes #2066

Closed
1 of 2 tasks
janlund67 opened this issue May 26, 2018 · 2 comments
Closed
1 of 2 tasks

Comments

@janlund67
Copy link

janlund67 commented May 26, 2018

  • 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

  1. Have an existing kubeconfig and kubectl installed.
  2. Move the kubeconfig to some other folder.
  3. Update your KUBECONFIG environment variable to reflect the change.
  4. Test that you can still reach remote clusters.
  5. Install 18.05 ce Egde, Enable Kubernetes and restart.
  6. Run command kubectl config use-context docker-for-desktop-cluster
@janlund67 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
@docker-robott
Copy link
Collaborator

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

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants