我正在尝试使用https://kubernetes.io/docs/tasks/tools/install-minikube/在RHEL 7.4上安装 minikube 。我的系统已设置了无密码的root用户。
泊坞窗,virtualbox,minikube,kubectl等的安装进行得很好,但是当我运行minikube start
时,我得到了:
启动集群时出错:等待提升kube-system RBAC特权超时:创建clusterrolebinding:发布https://192.168.99.100:8443/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings:服务不可用。
我该怎么做才能克服这个困难?
答案 0 :(得分:0)
我看到了同样的问题,我只是将virtualbox更新为5.2.22 r126460,并且错误消失了。
之前:
george:cloud neng$ minikube start
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Downloading Minikube ISO
170.78 MB / 170.78 MB [============================================] 100.00% 0s
Getting VM IP address...
Moving files into cluster...
Downloading kubeadm v1.10.0
Downloading kubelet v1.10.0
Finished Downloading kubelet v1.10.0
Finished Downloading kubeadm v1.10.0
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
E1119 11:38:49.424164 32901 start.go:297] Error starting cluster: timed out waiting to elevate kube-system RBAC privileges: creating clusterrolebinding: Post https://192.168.99.103:8443/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings: dial tcp 192.168.99.103:8443: i/o timeout
之后:
george:cloud neng$ minikube start
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.
Loading cached images from config file
。