无法在Windows 10上运行Kubernetes(kubectl)和Minikube.无法连接到服务器:拨打tcp [:: 1]:8080:connectex: [英] Unable to run Kubernetes (kubectl) and Minikube on windows 10. Unable to connect to the server: dial tcp [::1]:8080: connectex:

查看:985
本文介绍了无法在Windows 10上运行Kubernetes(kubectl)和Minikube.无法连接到服务器:拨打tcp [:: 1]:8080:connectex:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是完整错误Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

这是我的Kubectl配置视图

Here's my Kubectl config view

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

我正在运行Minikube start.它卡在Starting VM...

在Hyper-V管理器中,我正在运行minikube VM.

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

推荐答案

查看" Jock Reed

要从Windows CMD控制台以管理员身份运行的命令是:

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

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

以"Primary Virtual Switch"为您首先创建的新外部"虚拟网络交换机"的名称.

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

别忘了为minikube VM关闭动态内存( minikube问题2326 )

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

并且可能,在网络适配器上禁用IPv6 Windows 10 (问题754

确保使用 v0.28.0/minikube-windows-amd64 可执行文件,如问题1943 中所述.

这篇关于无法在Windows 10上运行Kubernetes(kubectl)和Minikube.无法连接到服务器:拨打tcp [:: 1]:8080:connectex:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆