Add command line arguments to configure leader election options

This commit is contained in:
shahra
2021-06-25 11:38:58 +05:30
parent e6f0b49700
commit db972e7c50
2 changed files with 16 additions and 2 deletions

View File

@@ -148,6 +148,12 @@ Read more about how to install the example webhook [here](deploy/kubernetes/webh
* `--leader-election-namespace <namespace>`: The namespace where the leader election resource exists. Defaults to the pod namespace if not set.
* `--leader-election-lease-duration <duration>`: Duration, in seconds, that non-leader candidates will wait to force acquire leadership. Defaults to 15 seconds.
* `--leader-election-renew-deadline <duration>`: Duration, in seconds, that the acting leader will retry refreshing leadership before giving up. Defaults to 10 seconds.
* `--leader-election-retry-period <duration>`: Duration, in seconds, the LeaderElector clients should wait between tries of actions. Defaults to 5 seconds.
* `--timeout <duration>`: Timeout of all calls to CSI driver. It should be set to value that accommodates majority of `CreateSnapshot`, `DeleteSnapshot`, and `ListSnapshots` calls. 1 minute is used by default.
* `snapshot-name-prefix`: Prefix to apply to the name of a created snapshot. Default is `snapshot`.