Unable to run Kubernetes (kubectl) and Minikube on

2019-06-06 01:02发布

Here's the full error Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

Here's my Kubectl config view

apiVersion: v1
clusters: []
contexts:
- context:
    cluster: ""
    user: ""
  name: dev
current-context: dev
kind: Config
preferences: {}
users: []

I'm running Minikube start. It's stuck on Starting VM...

In Hyper-V Manager, I have minikube VM running.

1条回答
成全新的幸福
2楼-- · 2019-06-06 01:40

Check out "Minikube on Windows 10 with Hyper-V" by Jock Reed

The command to run, from a Windows CMD console as Administrator, is:

minikube start --vm-driver hyperv --hyperv-virtual-switch "Primary Virtual Switch"

With "Primary Virtual Switch" being the name of the new "External" "Virtual network switch" you have created first.

Don't forget to turn off Dynamic Memory for the minikube VM (minikube issue 2326)

And possibly, disable IPv6 on Network Adapter Windows 10 (issue 754

Make sure to use the v0.28.0/minikube-windows-amd64 executable, as mentioned in issue 1943.

查看更多
登录 后发表回答