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.
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:
- Find
nginx
installation namespace. - Find main
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