From 849dbe034b3e4398922c383e09900b464a60db69 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 --- .../k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go | 1 + 1 file changed, 1 insertion(+) diff --git a/staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go b/staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go index c0fd8045f3a..7c4a91ee6b8 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go @@ -149,6 +149,7 @@ func newETCD3Client(c storagebackend.TransportConfig) (*clientv3.Client, error) DialTimeout: dialTimeout, DialKeepAliveTime: keepaliveTime, DialKeepAliveTimeout: keepaliveTimeout, + PermitWithoutStream: true, DialOptions: dialOptions, Endpoints: c.ServerList, TLS: tlsConfig,