minikube dashboard returns 503 error on macOS

10/21/2018

I have recently installed minikube and VirtualBox on a new Mac using homebrew. I am following instructions from the official minikube tutorial.

This is how I am starting the cluster -

minikube start --vm-driver=hyperkit

On running kubectl cluster-info I get this

Kubernetes master is running at https://192.168.99.100:8443
CoreDNS is running at https://192.168.99.100:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

Then I set the context of minikube

kubectl config use-context minikube

But when I run minikube dashboard it takes a lot of time to get any output and ultimately I get this output -

http://127.0.0.1:50769/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/ is not responding properly: Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503

I am expecting to see a web UI for minikube clusters, but getting error output. Is there something I am doing wrong?

More-info -
OS: macOS Mojave (10.14)
kubectl command was installed using gcloud sdk.

Update
Output of kubectl cluster-info dump

Unable to connect to the server: net/http: TLS handshake timeout

Output of kubectl get pods and kubectl get pods --all-namespaces both

The connection to the server 192.168.99.100:8443 was refused - did you specify the right host or port?
-- noob
kubernetes
macos-mojave
minikube

6 Answers

10/21/2018

If you just want to try the dashboard, you could run a proxy with kubectl proxy and access it in http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

-- Miguel Medina
Source: StackOverflow

10/21/2018

stop the minikube:

minikube stop

clean up the current minikune config and data ( which is not working or gone bad)

rm -rf  ~/.minikube

Start minikube again: ( a fresh instance )

minikube start
-- Ijaz Ahmad Khan
Source: StackOverflow

10/21/2018

I believe something is wrong with the VirtualBox networking conflicting with xhyve, I recommend you completely uninstall VirtualBox. Install docker for mac and install the hyperkit driver

Essentially, Hyperkit doesn't use VirtualBox but it uses the xhyve Hypervisor.

It works for me installing docker for mac and the hyperkit driver

$ kubectl cluster-info
Kubernetes master is running at https://192.168.64.2:8443
CoreDNS is running at https://192.168.64.2:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
$ minikube dashboard
Opening http://127.0.0.1:55919/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/ in your default browser...
-- Rico
Source: StackOverflow

9/10/2019

I have the same problem and my environment is the same as yours.

  Enabling dashboard ...
  Verifying dashboard health ...
  Launching proxy ...
  Verifying proxy health ...
  http://127.0.0.1:52582/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/ is not responding properly: Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
Temporary Error: unexpected response code: 503
  • MacOS 10.13.6
  • Docker Desktop for mac
  • VirtualBox
  • Kubernetes v1.15.2

My solution is as follows:

  1. delete the existing VM
minikube delete -p minikube
  1. start minikube
minikube start
  1. Is there a problem with the dashboard?
mushuweideMacBook-Pro:tools mushuwei$ minikube dashboard
  Verifying dashboard health ...
  Launching proxy ...
  Verifying proxy health ...
  Opening http://127.0.0.1:53414/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/ in your default browser...

enter image description here I hope my experience is useful to you!

-- james mu
Source: StackOverflow

3/5/2019

I think you should delete existing one. Simply run minikube delete -p minikube. After deleting start new minikube cluster

-- Feruz Oripov
Source: StackOverflow

8/5/2019

It's weird but installing a fresh minikube works. Don't know what was the issue that got resolved after fresh installation.

-- Ravendra Singh
Source: StackOverflow