在Kubernetes minikube教程中,有一个使用Minikube Docker守护进程的命令:
$ eval $(minikube docker-env)
Run Code Online (Sandbox Code Playgroud)
这个命令到底是做什么的,也就是说究竟是什么minikube docker-env
意思?
我正在尝试启动本地Kubernetes集群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...
E0912 17:39:12.486830 17689 start.go:305] Error restarting
cluster: restarting kube-proxy: waiting for kube-proxy to be
up for configmap update: timed out waiting for the condition
Run Code Online (Sandbox Code Playgroud)
知道如何确保它开始吗?我正在使用VirtualBox和本教程.我试过这里给出的小费,但没有运气.
还有任何具体的原因,为什么需要这么长时间才能达到这个阶段?或者它通常这么慢?
我是Kubernetes的初学者,并从本教程开始。我安装了VM,并期望能够通过使用以下命令来启动集群:
minikube start
Run Code Online (Sandbox Code Playgroud)
但是我得到了错误:
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
E0911 13:34:45.394430 41676 start.go:174] Error starting host: Error
creating host: Error executing step: Creating VM.
: Error setting up host only network on machine start: The host-only
adapter we just created is not visible. This is a well known
VirtualBox bug. You might want to uninstall it and reinstall at least
version 5.0.12 that is is supposed to fix this issue.
Run Code Online (Sandbox Code Playgroud)
它说这是Virtualbox中一个众所周知的错误,但我安装了最新版本。有任何想法吗?
问题:
我在 grpc 中接收消息时收到此错误:
rpc error: code = ResourceExhausted desc = grpc: received message larger than max (8653851 vs. 4194304)
我试过的:
我提供了增加要接收消息大小的选项,但它仍然出现相同的错误,这意味着此最大大小设置不起作用:
size := 1024 * 1024 * 12
opts = append(opts, grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(size)))
conn, err := grpc.Dial(address, opts...)
Run Code Online (Sandbox Code Playgroud)
注释:
默认限制1024 * 1024 * 4 = 4194304
显示在错误消息中。我原以为这个限制会增加到,1024 * 1024 * 12 = 12582912
但显然没有。
有鉴于命令在这里解释如何使用执行回滚kubectl
。列出部署的先前版本的一个是:
kubectl rollout history deployment/myDeployment
这显示了基于它们的顺序和对应的编号的先前版本的列表。但是如何了解更多关于它们的细节呢?仅通过查看数字很难知道我要回滚到哪个版本。
kubernetes ×4
minikube ×3
devops ×2
docker ×1
dockerfile ×1
go ×1
grpc ×1
grpc-go ×1
kubectl ×1
virtualbox ×1