TransWikia.com

How can I make the minikube dashboard answer on all ips 0.0.0.0?

Unix & Linux Asked by Evan Carroll on January 2, 2021

minikube has a dashboard that I can view easily with

minikube dashboard

However, that only works if I run it on my own machine because it only answers on localhost,

* Verifying dashboard health ...
* Launching proxy ...
* Verifying proxy health ...
* Opening http://127.0.0.1:35781/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/ in your default browser...
  - http://127.0.0.1:35781/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/

I’m running minikube though on a remote machine on openstack, so I need to address it by it’s lan address, and not 127.0.0.1.

One Answer

One method is to background the dashboard,

$ minikube dashboard --url &
[1] 356972

And then use kubectl proxy to listen to all addresses,

kubectl proxy --address=0.0.0.0 --accept-hosts='.*'

Correct answer by Evan Carroll on January 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP