diff --git a/README.md b/README.md index 8b0ce590..9f33f51c 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ spec: * `--health-port `: TCP ports for listening for healthz requests (default "9808") -* `--probe-timeout `: Maximum duration of single `Probe()` call (default "1s"). +* `--probe-timeout `: Maximum duration of single `Probe()` call (default "3s"). * `--metrics-address `: The TCP network address where the prometheus metrics endpoint will listen (example: `:8080`). The default is empty string, which means metrics endpoint is disabled. diff --git a/cmd/livenessprobe/main.go b/cmd/livenessprobe/main.go index 9d1cea74..0d8cc4d8 100644 --- a/cmd/livenessprobe/main.go +++ b/cmd/livenessprobe/main.go @@ -43,7 +43,7 @@ const ( // Command line flags var ( - probeTimeout = flag.Duration("probe-timeout", time.Second, "Probe timeout in seconds.") + probeTimeout = flag.Duration("probe-timeout", 3*time.Second, "Probe timeout in seconds.") csiAddress = flag.String("csi-address", "/run/csi/socket", "Address of the CSI driver socket.") healthzPort = flag.String("health-port", defaultHealthzPort, fmt.Sprintf("(deprecated) TCP ports for listening healthz requests. The default is `%s`. If set, `--http-endpoint` cannot be set.", defaultHealthzPort)) metricsAddress = flag.String("metrics-address", "", "(deprecated) The TCP network address where the prometheus metrics endpoint will listen (example: `:8080`). The default is empty string, which means metrics endpoint is disabled. If set, `--http-endpoint` cannot be set, and the address cannot resolve to localhost + the port from `--health-port`.")