Increase maxMsgSize for dockershim

Increase the grpc max message size to be the same as the value defined
in `pkg/kubelet/remote/utils.go`.

Increase the limit because, `ListPodSandbox` (and possibly other) calls
are hitting the limit. Long term, the best solution to this issue is to
use pagination, but that is not currently available.
This commit is contained in:
mattjmcnaughton 2019-04-27 13:25:12 -04:00
parent 24c964d5c1
commit 0547167ad0
No known key found for this signature in database
GPG Key ID: BC530981A9A1CC9D

View File

@ -26,9 +26,9 @@ import (
"k8s.io/kubernetes/pkg/kubelet/util"
)
// maxMsgSize use 8MB as the default message size limit.
// maxMsgSize use 16MB as the default message size limit.
// grpc library default is 4MB
const maxMsgSize = 1024 * 1024 * 8
const maxMsgSize = 1024 * 1024 * 16
// DockerServer is the grpc server of dockershim.
type DockerServer struct {