Minikube无法启动-> pgrep kube-api

时间:2019-11-29 01:10:47

标签: kubernetes minikube

我正在与kubernetes和minukube一起在我的机器上本地运行集群,但是我遇到了这个错误:

W1118 20:54:48.711968 14383 kubeadm.go:502] pgrep apiserver: command failed: sudo pgrep kube-apiserver
stdout:
stderr: : exit status 1 cmd: sudo pgrep kube-apiserver
I1118 20:54:49.012735 14383 exec_runner.go:42] (ExecRunner) Run: sudo pgrep kube-apiserver
I1118 20:54:49.041602 14383 exec_runner.go:74] (ExecRunner) Non-zero exit: sudo pgrep kube-apiserver: exit status 1 (28.808764ms)
W1118 20:54:49.041655 14383 kubeadm.go:502] pgrep apiserver: command failed: sudo pgrep kube-apiserver
stdout:
stderr: : exit status 1 cmd: sudo pgrep kube-apiserver
I1118 20:54:49.332086 14383 exec_runner.go:42] (ExecRunner) Run: sudo pgrep kube-apiserver
I1118 20:54:49.354256 14383 exec_runner.go:74] (ExecRunner) Non-zero exit: sudo pgrep kube-apiserver: exit status 1 (22.079013ms)
W1118 20:54:49.354306 14383 kubeadm.go:502] pgrep apiserver: command failed: sudo pgrep kube-apiserver
stdout:
stderr: : exit status 1 cmd: sudo pgrep kube-apiserver
I1118 20:54:49.612700 14383 exec_runner.go:42] (ExecRunner) Run: sudo pgrep kube-apiserver
I1118 20:54:49.630745 14383 exec_runner.go:74] (ExecRunner) Non-zero exit: sudo pgrep kube-apiserver: exit status 1 (17.984732ms)
W1118 20:54:49.630837 14383 kubeadm.go:502] pgrep apiserver: command failed: sudo pgrep kube-apiserver

我正在对此进行调查,但没有发现与之相关的任何东西。

1 个答案:

答案 0 :(得分:2)

使用您提供的信息,检查您的主机配置,因为它看起来需要权限,然后运行以下命令:

echo "1" >/proc/sys/net/bridge/bridge-nf-call-iptables

这修改了您的操作系统以启用桥接呼叫