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

6/30/2018

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.

-- Alamgir Qazi
kubectl
kubernetes
minikube

1 Answer

6/30/2018

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.

-- VonC
Source: StackOverflow