Skip to content

Commit b6dcf49

Browse files
committed
Change default probe timeout to 3 seconds
Fixes: #293
1 parent 9b46a13 commit b6dcf49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ spec:
7373

7474
* `--health-port <number>`: TCP ports for listening for healthz requests (default "9808")
7575

76-
* `--probe-timeout <duration>`: Maximum duration of single `Probe()` call (default "1s").
76+
* `--probe-timeout <duration>`: Maximum duration of single `Probe()` call (default "3s").
7777

7878
* `--metrics-address <port>`: The TCP network address where the prometheus metrics endpoint will listen (example: `:8080`). The default is empty string, which means metrics endpoint is disabled.
7979

cmd/livenessprobe/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const (
4343

4444
// Command line flags
4545
var (
46-
probeTimeout = flag.Duration("probe-timeout", time.Second, "Probe timeout in seconds.")
46+
probeTimeout = flag.Duration("probe-timeout", 3*time.Second, "Probe timeout in seconds.")
4747
csiAddress = flag.String("csi-address", "/run/csi/socket", "Address of the CSI driver socket.")
4848
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))
4949
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`.")

0 commit comments

Comments
 (0)