1 Star 0 Fork 0

guerlab.net / dashboard

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
README.md 1.99 KB
AI 代码解读
Copy Edit Raw Blame History
Sebastian Florek authored 2023-07-21 11:33 . Update README.md

Accessing Dashboard

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.

Introduction

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:

  1. Find nginx installation namespace.
  2. 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.

Login not available

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>/...

Login disabled


Copyright 2019 The Kubernetes Dashboard Authors

1
https://gitee.com/guerlab_net/k8s_dashboard.git
git@gitee.com:guerlab_net/k8s_dashboard.git
guerlab_net
k8s_dashboard
dashboard
master

Search