minikube dashboard returns 503 error on macOS

后端 未结 6 1698
南笙
南笙 2020-12-28 14:14

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 st

相关标签:
6条回答
  • 2020-12-28 14:22

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

    0 讨论(0)
  • 2020-12-28 14:23

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

                                                                        
    0 讨论(0)
  • 2020-12-28 14:24

    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...
    
    0 讨论(0)
  • 2020-12-28 14:29

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

    0 讨论(0)
  • 2020-12-28 14:36

    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/

    0 讨论(0)
  • 2020-12-28 14:44

    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
    
    0 讨论(0)
提交回复
热议问题