Fabry
Fabry

Reputation: 1650

minikube dashboard not working

I'm pretty new with Minikube.
I want to try minikube in a local machine.
I installed ubuntu server and docker.
I've downloaded and started minikube using this command:

sudo minikube start --vm-driver=none

If I type this command:

sudo kubectl get services --all-namespaces

if I type: sudo minikube dashboard --url I get: http://127.0.0.1:30000

If I try to use the browser installed on my laptop (replacing 127.0.0.1 with the server ip address) I cannot connect to the Minikube dashboard.

enter image description here

Upvotes: 12

Views: 23528

Answers (7)

poone
poone

Reputation: 44

  • Use the latest release of kubectl and minikube reinstall by curl.
  • I use docker on my Mac and use the brew installed the minikube the version minikube 1.20.0_1 already installed and got this bug and it's fix at v1.23.0 .

Skip setting "net.netfilter.nf_conntrack_tcp_timeout_established" tcpEstablishedTimeout: 0s Skip setting "net.netfilter.nf_conntrack_tcp_timeout_close" tcpCloseWaitTimeout: 0s

Upvotes: 0

Laura Liparulo
Laura Liparulo

Reputation: 2907

I think you have to enable it. check if the addon is enabled first:

 minikube addons list

If it´s disabled then:

 minikube addons enable dashboard

then you can get the url typing:

 minikube dashboard --url

Upvotes: 7

Andrzej Krawczuk
Andrzej Krawczuk

Reputation: 409

I had problem when tried to launch dashboard with command minikube dashboard i recived:

🔌  Enabling dashboard ...
🤔  Verifying dashboard health ...
🚀  Launching proxy ...
🤔  Verifying proxy health ...

And nothing happens...

Then checked system pods like kubectl get pod -n kube-system and recived:

kube-proxy-4h255                   0/1     CrashLoopBackOff   6          10m

Then tried to check what happens kubectl logs kube-proxy-4h255 -n kube-system and recivedn:

I1006 09:56:08.110470       1 server.go:650] Version: v1.20.2
I1006 09:56:08.111489       1 conntrack.go:100] Set sysctl 'net/netfilter/nf_conntrack_max' to 131072
F1006 09:56:08.111542       1 server.go:495] open /proc/sys/net/netfilter/nf_conntrack_max: permission denied

To solve this, set parameter like sudo sysctl net/netfilter/nf_conntrack_max=131072 as written here

Upvotes: 2

robertluwang
robertluwang

Reputation: 321

If I am not understand wrong, you installed Ubuntu vm and install minikube with none driver inside Ubuntu vm?

If this is case, the dashboard localhost:30000 is inside ubuntu, so it won't work to access it from your laptop host.

You need to access it from Ubuntu web browser if it is desktop version or setup port forward:

127.0.0.1:30000 to guest 30000

then you can access to 127.0.0.2:30000 from your laptop.

Upvotes: 1

ovrdoz
ovrdoz

Reputation: 55

After starts your minikube, check the status of your cluster with

$ kubectl cluster-info

If you have anything referencing a "localhost" address for example, delete the instance and starts again

$ minikube delete

and reapply your start (I prefer to use local rather than use virtual box as driver)

$ minikube start --vm-driver = virtualbox

when trying to get info from your cluster you will have described

$ Kubernetes master is running at https: // <ip>: 8443

will mean success, after that in a simple way as said previously execute

$ minikube dashboard

which will redirect you to dashboard page

Upvotes: 1

Prateek Jain
Prateek Jain

Reputation: 3075

simply type 'minikube dashboard' from command terminal.

Upvotes: 19

delfer
delfer

Reputation: 544

You can access port 30000 from localhost, not from other hosts. Check it locally by curl -v http://127.0.0.1:30000

As workaround use ssh-tunnel to access this port like from localhost or add/modify k8s service for type nodePort or use k8s ingress.

Check you firewall rules (disable it) and check dashboard pod (kubectl get pods --all-namespaces -o wide).

Upvotes: 1

Related Questions