我已经在我的ubuntu机器上安装和配置了Kubernetes,遵循这个文档
在部署了Kubernetes-仪表板之后,容器继续崩溃。
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml使用:启动代理
kubectl proxy --address='0.0.0.0' --accept-hosts='.*' --port=8001Pod状态:
kubectl get pods -o wide --all-namespaces
....
....
kube-system kubernetes-dashboard-64576d84bd-z6pff 0/1 CrashLoopBackOff 26 2h 192.168.162.87 kb-node <none>Kubernetes系统日志:
root@KB-master:~# kubectl -n kube-system logs kubernetes-dashboard-64576d84bd-z6pff --follow
2018/09/11 09:27:03 Starting overwatch
2018/09/11 09:27:03 Using apiserver-host location: http://192.168.33.30:8001
2018/09/11 09:27:03 Skipping in-cluster config
2018/09/11 09:27:03 Using random key for csrf signing
2018/09/11 09:27:03 No request provided. Skipping authorization
2018/09/11 09:27:33 Error while initializing connection to Kubernetes apiserver. This most likely means that the cluster is misconfigured (e.g., it has invalid apiserver certificates or service account's configuration) or the --apiserver-host param points to a server that does not exist. Reason: Get http://192.168.33.30:8001/version: dial tcp 192.168.33.30:8001: i/o timeout
Refer to our FAQ and wiki pages for more information: https://github.com/kubernetes/dashboard/wiki/FAQ当我试图在浏览器上点击下面的链接时,获取消息
URL:http://192.168.33.30:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login
Error: 'dial tcp 192.168.162.87:8443: connect: connection refused'
Trying to reach: 'https://192.168.162.87:8443/'任何人都可以帮我。
发布于 2018-09-12 06:50:46
http://192.168.33.30:8001不是合法的API服务器URL。所有与API服务器的通信都在内部使用TLS (https:// URL方案)。这些通信使用API服务器CA证书进行验证,并通过由同一CA签名的令牌进行身份验证。
你所看到的是错误配置的结果。乍一看,你似乎把豆荚、服务和主机网络混为一谈。
确保您理解主机网络、Pod网络和服务网络之间的区别。这三个网络不能重叠。例如,--pod-network-cidr=192.168.0.0/16不能包含主机的IP地址,如果需要,可以将其更改为10.0.0.0/16或其他更小的地址。
在您对网络拓扑有了明确的概述之后,再次运行安装程序,一切都将正确配置,包括Kubernetes CA。
https://stackoverflow.com/questions/52273029
复制相似问题