我正在使用
*$ minikube version
minikube version: v0.28.2
和
*$ kubectl version
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.3", GitCommit:"a4529464e4629c21224b3d52edfe0ea91b072862", GitTreeState:"clean", BuildDate:"2018-09-09T18:02:47Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
我正在运行一个本地集群,而集群和kubectl
之间的所有通信突然丢失:
*$ kubectl get pods
No resources found.
Error from server (Timeout): the server was unable to return a response in the time allotted, but may still be processing the request (get pods)
执行显式minikube stop && minikube start
后问题消失
任何想法如何调试?
听起来您的kubectl
版本有问题。
当我的服务器版本太旧时,我通常会下载相同版本的 kubectl。
这里是链接(linux版本(:
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/linux/amd64/kubectl
问题与资源有关。
通过停止minikube
然后像这样启动它来解决:
minikube --memory 8192 --cpus 2 start
这个线程很有帮助。