[英]Kubernetes Play Dashboard Access from Outside
I wanted to learn Kubernetes using the Play with Kubernetes site but I seem to encounter some issue. 我想使用Play with Kubernetes网站学习Kubernetes,但似乎遇到了一些问题。 Here is what I did.
这是我所做的。 I created my kubernetes cluster by following the steps.
我按照以下步骤创建了kubernetes集群。
https://labs.play-with-k8s.com/p/bc3a57pk4ckg00bvdk70#bc3a57pk_bc3amn9k4ckg00bvdkv0 https://labs.play-with-k8s.com/p/bc3a57pk4ckg00bvdk70#bc3a57pk_bc3amn9k4ckg00bvdkv0
I had the following info with 1 master and 2 nodes 我有以下信息,其中有1个主节点和2个节点
[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
I then deploy my Dashboard using the following steps. 然后,我使用以下步骤部署仪表板。
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
According to this issue https://github.com/play-with-docker/play-with-docker/issues/258 Dashboard port is no longer accessible in the UI 根据此问题, https://github.com/play-with-docker/play-with-docker/issues/258仪表板端口不再可在UI中访问
Now, how can I access my dashboard from the outside? 现在,如何从外部访问仪表板? According to the FAQ here.. https://github.com/play-with-docker/play-with-docker
根据这里的常见问题解答。.https ://github.com/play-with-docker/play-with-docker
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).
Given my IP address 给出我的IP地址
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/
What did I do wrong or what I am missing? 我做错了什么或我想念什么?
Tried everything in this Running dashboard inside play-with-kubernetes Nothing is successful 尝试在play-with-kubernetes内的此正在运行的仪表板中进行所有操作, 但没有成功
Any hints? 有什么提示吗?
Have you seen this? 你见过这个吗? https://github.com/play-with-docker/play-with-docker/issues/259#issuecomment-387607163
https://github.com/play-with-docker/play-with-docker/issues/259#issuecomment-387607163
You need to make some changes in the deployment in order to access from outside. 您需要对部署进行一些更改才能从外部进行访问。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.