首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Kubernetes Play Dashboard从外部访问

Kubernetes Play Dashboard从外部访问
EN

Stack Overflow用户
提问于 2018-05-24 22:05:04
回答 1查看 896关注 0票数 2

我想使用Play with Kubernetes网站学习Kubernetes,但我似乎遇到了一些问题。这就是我所做的。我按照以下步骤创建了kubernetes集群。

https://labs.play-with-k8s.com/p/bc3a57pk4ckg00bvdk70#bc3a57pk_bc3amn9k4ckg00bvdkv0

我有以下1个master和2个节点的信息

代码语言:javascript
复制
[node1 ~]$ kubectl cluster-info
Kubernetes master is running at https://192.168.0.18:6443
Heapster is running at https://192.168.0.18:6443/api/v1/namespaces/kube-system/services/heapster/proxy
KubeDNS is running at https://192.168.0.18:6443/api/v1/namespaces/kube-system/services/kube-dns/proxy
monitoring-influxdb is running at https://192.168.0.18:6443/api/v1/namespaces/kube-system/services/monitoring-influxdb/proxy

然后,我使用以下步骤部署我的仪表板。

代码语言:javascript
复制
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml

[node1 ~]$ kubectl -n kube-system get service kubernetes-dashboard
NAME                   TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)   AGE
kubernetes-dashboard   ClusterIP   10.98.185.58   <none>        443/TCP   58m

由于此问题,无法再在UI中访问https://github.com/play-with-docker/play-with-docker/issues/258控制面板端口

现在,我如何从外部访问我的仪表板?根据这里的FAQ ..https://github.com/play-with-docker/play-with-docker

代码语言:javascript
复制
How can I connect to a published port from the outside world?
If you need to access your services from outside, use the following URL pattern http://ip<hyphen-ip>-<session_jd>-<port>.direct.labs.play-with-docker.com (i.e: http://ip-2-135-3-b8ir6vbg5vr00095iil0-8080.direct.labs.play-with-docker.com).

给定我的IP地址

代码语言:javascript
复制
https://labs.play-with-k8s.com/p/bc3a57pk4ckg00bvdk70#bc3a57pk_bc3amn9k4ckg00bvdkv0

I tried it with this but I am not successful in accessing the dashboard
http://ip-192-168-0-18-bc3a57pk4ckg00bvdk70-8443.direct.labs.play-with-docker.com/

我做错了什么,或者我遗漏了什么?

我尝试了此Running dashboard inside play-with-kubernetes中的所有内容,但均未成功

有什么提示吗?

EN

回答 1

Stack Overflow用户

发布于 2018-05-25 00:36:12

你看过这个吗?https://github.com/play-with-docker/play-with-docker/issues/259#issuecomment-387607163

您需要在部署中进行一些更改,以便从外部访问。

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50511393

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档