Skip to content

Commit 0547167

Browse files
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.
1 parent 24c964d commit 0547167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/kubelet/dockershim/remote/docker_server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import (
2626
"k8s.io/kubernetes/pkg/kubelet/util"
2727
)
2828

29-
// maxMsgSize use 8MB as the default message size limit.
29+
// maxMsgSize use 16MB as the default message size limit.
3030
// grpc library default is 4MB
31-
const maxMsgSize = 1024 * 1024 * 8
31+
const maxMsgSize = 1024 * 1024 * 16
3232

3333
// DockerServer is the grpc server of dockershim.
3434
type DockerServer struct {

0 commit comments

Comments
 (0)