mirror of
https://github.com/rancher/rke.git
synced 2025-09-26 07:14:54 +00:00
add timeout to etcd member add
This commit is contained in:
@@ -56,6 +56,7 @@ func getEtcdClientV3(ctx context.Context, etcdHost *hosts.Host, localConnDialerF
|
||||
Endpoints: []string{"https://" + etcdHost.InternalAddress + ":2379"},
|
||||
TLS: tlsConfig,
|
||||
DialOptions: []grpc.DialOption{grpc.WithContextDialer(wrapper(dialer))},
|
||||
DialTimeout: 5 * time.Second,
|
||||
}
|
||||
|
||||
return etcdclientv3.New(cfg)
|
||||
|
Reference in New Issue
Block a user