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

Kubernetes cluster don't start properly #1845

Closed
vincentditlevinz opened this issue Mar 16, 2018 · 3 comments
Closed

Kubernetes cluster don't start properly #1845

vincentditlevinz opened this issue Mar 16, 2018 · 3 comments

Comments

@vincentditlevinz
Copy link

Expected behavior

A working kubernetes cluster

Actual behavior

kubernetes cluster appears to be started (green flag in docker settings) however, it doesn't work properly. For instance, "kubectl version" fails with the following message:

Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T10:09:24Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"windows/amd64"}
Error from server (NotFound): the server could not find the requested resource

In docker's logs one can see errors like the following
12:06:53.975][VpnKit ][Error ] vpnkit.exe: Hvsock.read: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.
[12:06:53.976][ApiProxy ][Info ] time="2018-03-16T12:06:53+01:00" msg="Node status error: Get https://localhost:6445/api/v1/nodes: EOF"
[12:06:54.978][ApiProxy ][Info ] time="2018-03-16T12:06:54+01:00" msg="Node status error: Get https://localhost:6445/api/v1/nodes: EOF"

and finally messages indicating that the cluster is probably not started properly:

"Discarded service kube-dns: Unknown service type ClusterIP"
"Discarded service kubernetes: Unknown service type ClusterIP"
"Discarded service compose-api: Unknown service type ClusterIP"

Information

  • Diagnostic ID from "Diagnose & Feedback" in the menu.
    E7734192-92D7-4CEC-818D-6EFF43A60066/2018-03-16_13-41-53
  • a reproducible case if this is a bug, Dockerfiles FTW
  • page URL if this is a docs issue or the name of a man page
  • host distribution and version (Windows version, build number, etc)
    Windows 10, Hyper-V, Home connection to internet (means no corporate proxy)
  • Useful information
    Docker itself works correctly (ex: "docker run -p 8080:80 nginx" works as expected)

Steps to reproduce the behavior

  1. Install Docker for windows edge 18.03.0-ce-rc4-win57 (16511)
  2. Switch to Linux containers
  3. Enable kubernetes
@vincentditlevinz
Copy link
Author

As an alternative I've installed Minikube for windows and I manage to start a kubernetes cluster correctly with this version of docker (18.03.0-ce-rc4-win57 (16511)).

@vincentditlevinz
Copy link
Author

I apologize. This is related to the fact that I was executing "kubectl version" with a powershell console open as admin and not the current user.

@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 27, 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

3 participants