当虚拟交换机设置为内部时无法启动 Minikube 仪表板

Unable to launch Minikube Dashboard when virtual switch is set to Internal

我正在尝试做一个 POC,我可以在其中使用虚拟交换机连接类型为仅内部的 kubernetes。我成功启动了 minikube 和集群。

PS C:\WINDOWS\system32> minikube status
minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at <**Any random Ip**>

但是当我 运行 Minikube Dashboard 命令时,我遇到了以下错误。

PS C:\WINDOWS\system32> minikube dashboard
Could not find finalized endpoint being pointed to by kubernetes-dashboard: Error validating service: Error getting serv
ice kubernetes-dashboard: Get https://<**Same Ip as above**>:8443/api/v1/namespaces/kube-system/services/kubernetes-dashboard:
Service Unavailable

详情如下:

Driver : HyperV
OS : Windows 10
Dynamic Memory allocation : Disabled
Dynamic MAC allocation : Disabled
NATSwitch connection type : Internal Only
Minikube version : minikube-v0.25.1
Kubectl version : 1.9.0

使用外部它工作得很好我需要有关内部的帮助,请参考屏幕截图)

[

我找到了这个特定问题的解决方案,我想与其他人分享。

此问题的根本原因 是代理设置,我们的网络管理员设置了一些代理设置策略,这会阻止访问在 https://<**Same Ip as above**>:8443/api/v1/namespaces/kube-system/services/kubernetes-dashboard 处公开的仪表板

解决方案为此,您需要检查您的代理配置并相应地更新它们。