没有可用于kubernetes仪表板的端点 [英] no endpoints available for service for kubernetes dashboard
问题描述
根据以下信息,读取kubernetes-dashboard
.我开始kubectl prox
访问仪表板
According to following information, kubernetes-dashboard
is creaded. I start kubectl prox
to access the dashboard
[root@master ~]# kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended/kubernetes-dashboard.yaml
secret/kubernetes-dashboard-certs created
secret/kubernetes-dashboard-csrf created
serviceaccount/kubernetes-dashboard created
role.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
deployment.apps/kubernetes-dashboard created
service/kubernetes-dashboard created
[root@master ~]# kubectl proxy --address="192.168.88.43" -p 8001 --accept-hosts='^*$'
Starting to serve on 192.168.88.43:8001
当我进入网址以下
http://192.168.88.43:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
我得到
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "no endpoints available for service \"kubernetes-dashboard\"",
"reason": "ServiceUnavailable",
"code": 503
}
推荐答案
我认为您遵循了使用kubeadm正确创建单个主群集.
I think you followed the Deploying the Dashboard UI but, you did not follow the whole installation process Creating a single master cluster with kubeadm correctly.
您可能已经错过了:
您现在应该将Pod网络部署到群集.
You should now deploy a pod network to the cluster.
使用以下列出的选项之一运行"kubectl apply -f [podnetwork] .yaml":
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
https://kubernetes.io/docs/concepts/cluster-administration/插件/
您可以按照Kubernetes文档的有关如何安装一个Pod Network插件.
You can follow the Kubernetes documentation on how to Installing a pod network add-on.
完成后,您可以使用kubectl -n kube-system get pods
验证是否已部署CNI并正常工作.
Once done, you can verify if CNI is deployed and working using kubectl -n kube-system get pods
.
如果一切正常,您的kubernetes-dashboard
应该健康并且可以正常工作.
If everything goes correctly your kubernetes-dashboard
should be healthy and working.
这篇关于没有可用于kubernetes仪表板的端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!