运行Kubernetes Minikube服务给我;无法打开浏览器";错误

运行Kubernetes Minikube服务给我;无法打开浏览器";错误,kubernetes,fedora,kubectl,minikube,Kubernetes,Fedora,Kubectl,Minikube,我遵循关于Kubernetes的教程 我找到了引导我跑步的角色: minikube service sa-frontend-lb (我使用sudo来运行它,因为如果我不使用sudo,请让我使用sudo) 我发现以下错误: Opening kubernetes service default/sa-frontend-lb in default browser... No protocol specified No protocol specified (firefox:4538): Gtk-W

我遵循关于Kubernetes的教程

我找到了引导我跑步的角色:

minikube service sa-frontend-lb
(我使用sudo来运行它,因为如果我不使用sudo,请让我使用sudo)

我发现以下错误:

Opening kubernetes service default/sa-frontend-lb in default browser...
No protocol specified
No protocol specified

(firefox:4538): Gtk-WARNING **: 22:07:38.395: cannot open display: :0
/usr/bin/xdg-open: line 881: x-www-browser: command not found
No protocol specified
No protocol specified

(firefox:4633): Gtk-WARNING **: 22:07:39.112: cannot open display: :0
/usr/bin/xdg-open: line 881: iceweasel: command not found
/usr/bin/xdg-open: line 881: seamonkey: command not found
/usr/bin/xdg-open: line 881: mozilla: command not found
No protocol specified
Unable to init server: Could not connect: Connection refused
Failed to parse arguments: Cannot open display: 
/usr/bin/xdg-open: line 881: konqueror: command not found
/usr/bin/xdg-open: line 881: chromium: command not found
[4749:4749:0805/220740.485576:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
[4757:4757:0805/220740.725100:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
/usr/bin/xdg-open: line 881: www-browser: command not found
/usr/bin/xdg-open: line 881: links2: command not found
/usr/bin/xdg-open: line 881: elinks: command not found
/usr/bin/xdg-open: line 881: links: command not found
我安装了chromium和xdg UTIL,但两者都不起作用

我如何才能进入该服务,看看它是否工作?

正如人们所看到的,它正在尝试启动一个浏览器,但除了我猜测的Chrome(因为人们可以看到“Chrome”不工作)之外,没有安装它能识别的浏览器,并且正如消息所示,它不允许以
根用户身份运行

在这种情况下,您想要的实际上是:

minikube service --url sa-frontend-lb

这会导致
minikube
打印URL,而不是尝试使用它启动浏览器。

谢谢!顺便说一句,格式是“minikube service sa frontend lb--url”。很抱歉,我刚才正在处理
minikube service--help