Once Dashboard has been installed in your cluster it can be accessed in a few different ways. Note that this document does not describe all possible ways of accessing cluster applications. In case of any error while trying to access Dashboard, please first read our FAQ and check closed issues. In most cases errors are caused by cluster configuration issues.
This document only describes the basic ways of accessing Kubernetes Dashboard. If you have modified the default configuration in any way, it might not work.
kubectl port-forward
Use kubectl port-forward
and access Dashboard with a simple URL. Depending on the chosen installation method you might need to access different service.
For Helm-based installation when nginx
is being installed by our Helm chart simply run:
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-nginx-controller 8443:443
In case you have used any other installation method or have nginx
already installed in your cluster, follow below steps:
nginx
installation namespace.nginx-ingress
service name.Once you have all the information simply run (make sure to replace placeholders with correct names):
kubectl -n <nginx-namespace> port-forward svc/<nginx-service-name> 8443:443
Now access Dashboard at: https://localhost:8443.
If your login view displays below error, this means that you are trying to log in over HTTP, and it has been disabled for the security reasons.
Logging in is available only if URL used to access Dashboard starts with:
http://localhost/...
http://127.0.0.1/...
https://<domain_name>/...
Copyright 2019 The Kubernetes Dashboard Authors
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。