From 6640c869f935102de0b22fcf44c1fa156fe14eeb Mon Sep 17 00:00:00 2001 From: pacoxu Date: Thu, 29 Apr 2021 16:27:08 +0800 Subject: [PATCH] use PermitWithoutStream=true for etcd: send pings even without active streams Signed-off-by: pacoxu Kubernetes-commit: 849dbe034b3e4398922c383e09900b464a60db69 --- pkg/storage/storagebackend/factory/etcd3.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/storage/storagebackend/factory/etcd3.go b/pkg/storage/storagebackend/factory/etcd3.go index f762e94f3..7a1fa6317 100644 --- a/pkg/storage/storagebackend/factory/etcd3.go +++ b/pkg/storage/storagebackend/factory/etcd3.go @@ -154,6 +154,7 @@ func newETCD3Client(c storagebackend.TransportConfig) (*clientv3.Client, error) DialTimeout: dialTimeout, DialKeepAliveTime: keepaliveTime, DialKeepAliveTimeout: keepaliveTimeout, + PermitWithoutStream: true, DialOptions: dialOptions, Endpoints: c.ServerList, TLS: tlsConfig,