mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 08:17:04 +00:00
nfd-worker: try connecting to nfd-master for 60s
Instead of erroring out right away, try to connect to nfd-master for 60 seconds until giving up.
This commit is contained in:
parent
c191f20c30
commit
4fb8bd8efc
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ func (w *nfdWorker) Run() error {
|
|||
}
|
||||
|
||||
// Connect to NFD server
|
||||
dialOpts := []grpc.DialOption{}
|
||||
dialOpts := []grpc.DialOption{grpc.WithBlock(), grpc.WithTimeout(60 * time.Second)}
|
||||
if w.args.CaFile != "" || w.args.CertFile != "" || w.args.KeyFile != "" {
|
||||
// Load client cert for client authentication
|
||||
cert, err := tls.LoadX509KeyPair(w.args.CertFile, w.args.KeyFile)
|
||||
|
|
Loading…
Add table
Reference in a new issue