minikube dashboard启动不了
问题
如题:
[tom@localhost ~]$ minikube dashboard
🤔 Verifying dashboard health ...
🚀 Launching proxy ...
🤔 Verifying proxy health ...
🎉 Opening http://127.0.0.1:36369/api...in your default browser...
START /usr/bin/firefox
"http://xxx:36369/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/"
Running without a11y support!
Error: no DISPLAY environment variable specified
xdg-open: no method available for opening
'http://xxx:36369/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/'
❌ Exiting due to HOST_BROWSER: failed to open browser: exit status 3
解决方案
关闭防火墙
[tom@localhost ~]$ sudo systemctl stop firewall
[tom@localhost ~] nohup kubectl proxy
--port=8888
--address='192.168.1.20'
--accept-hosts='^.*' >/dev/null 2>&1&
然后直接访问
http://192.168.1.20:8888/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/
good luck !