gpt4 book ai didi

kubernetes - 无法访问 kubernetes 仪表板

转载 作者:行者123 更新时间:2023-12-04 11:01:43 28 4
gpt4 key购买 nike

我按照本指南 link安装 kubernetes 集群,我没有错误,但我无法访问 kubernetes-Dashboard

我做了kubectl create -f https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml当我去 https://192.168.11.20/ui什么都没有

我如何访问仪表板?

一些附加信息

[root@kubeMaster ~]# kubectl get nodes
NAME STATUS AGE
kubenode1 Ready 6h
kubenode2 Ready 6h

[root@kubeMaster ~]# kubectl get pods
No resources found.

[root@kubeMaster ~]# kubectl describe svc kubernetes-dashboard --namespace=kube-system
Name: kubernetes-dashboard
Namespace: kube-system
Labels: app=kubernetes-dashboard
Selector: app=kubernetes-dashboard
Type: NodePort
IP: 10.254.81.213
Port: <unset> 80/TCP
NodePort: <unset> 31785/TCP
Endpoints: <none>
Session Affinity: None
No events.

[root@kubeMaster ~]# kubectl get deployment kubernetes-dashboard --namespace=kube-system
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
kubernetes-dashboard 1 0 0 0 6h

[root@kubeMaster ~]# kubectl --namespace=kube-system get ep kubernetes-dashboard
NAME ENDPOINTS AGE
kubernetes-dashboard <none> 6h

[root@kubeMaster ~]# kubectl cluster-info
Kubernetes master is running at http://kubeMaster:8080

[root@kubeMaster ~]# kubectl get ns
NAME STATUS AGE
default Active 6h
kube-system Active 6h

[root@kubeMaster ~]# kubectl get ep
NAME ENDPOINTS AGE
kubernetes 192.168.11.20:6443 6h

最佳答案

采用:

kubectl proxy

这将使您可以在以下位置访问仪表板:
localhost:8001

关于kubernetes - 无法访问 kubernetes 仪表板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42097335/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com