How Do You Log into the Kubernetes Dashboard?

Problem scenario
When you completed configuring Kubernetes, you were provided with a URL.  But this web page looks minimalistic with no graphics and a white background.  The web UI is not complete or polished and looks like a YAML file.  How do you get to the regular Kubernetes dashboard that looks like this picture? 

Possible Solution #1
1.  From the command prompt you set up Kubernetes with, run this command to find the URL of the dashboard:

kubectl config view | grep server | awk '{print $2"/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/"}'

2.  Open a web browser and go to this URL.  If you go to the URL and you are prompted to upload a kube config file for authentication, clicking "Skip" may work for testing in a non-production environment.

Possible Solution #2
This is for older versions of Kubernetes.
1.  Go to the back-end of the Kubernetes' cluster server or the server you used to set up Kubernetes.  Use this command from the back end to find the URL for the web UI:

kubectl config view | grep server

2.  Draft the URL by using the https:// constructor above (e.g., https://x.x.x.x:6443 where x.x.x.x is the IP address obtained from the command above) and append a "/ui" to it with no quotes.  The final dashboard will look like this:


3.  Open a web browser and go to this URL.

Leave a comment

Your email address will not be published. Required fields are marked *