![](/img/trans.png)
[英]dial tcp [::1]:6397: connectex: No connection could be made because the target machine actively refused it
[英]Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it. -Microk8s
当我执行这个命令kubectl get pods --all-namespaces
我得到这个Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.
我所有的 pod 都在运行并准备好 1/1,但是当我使用这个microk8s kubectl get service -n kube-system
我得到
kubernetes-dashboard ClusterIP 10.152.183.132 <none> 443/TCP 6h13m
dashboard-metrics-scraper ClusterIP 10.152.183.10 <none> 8000/TCP 6h13m
即使启用了 dns,我也缺少 kube-dns。 另外,当我为所有 ip 地址的代理键入此地址时, microk8s kubectl proxy --accept-hosts=.* --address=0.0.0.0 &
我只得到这个Starting to serve on [::]:8001
,我错过了 [1 ]84623 例如。
我在 Windows 上使用 microk8s 和 multipass 和 Hyper-V 管理器,我不能 go 到网上的仪表板。 我也是初学者,这是我的大学论文。 我在网上看到了类似的东西,但它是针对 Azure 的。
从评论中发布答案以获得更好的可见性:通过重新安装 multipass 和 microk8s 解决了问题。 现在它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.