Unable to run Kubernetes (kubectl) and Minikube on windows 10. Unable to connect to the server: dial tcp [::1]:8080: connectex:

痴心易碎 提交于 2019-12-10 11:39:11

问题


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:


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.



来源:https://stackoverflow.com/questions/51114050/unable-to-run-kubernetes-kubectl-and-minikube-on-windows-10-unable-to-connect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!