diff --git a/README.md b/README.md index 9c8bab9b..c1b0e436 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ Read more about how to install the example webhook [here](deploy/kubernetes/webh #### Other recognized arguments * `--kubeconfig `: Path to Kubernetes client configuration that the snapshot controller uses to connect to Kubernetes API server. When omitted, default token provided by Kubernetes will be used. This option is useful only when the snapshot controller does not run as a Kubernetes pod, e.g. for debugging. -* `--resync-period `: Internal resync interval when the snapshot controller re-evaluates all existing `VolumeSnapshot` instances and tries to fulfill them, i.e. create / delete corresponding snapshots. It does not affect re-tries of failed calls! It should be used only when there is a bug in Kubernetes watch logic. Default is 60 seconds. +* `--resync-period `: Internal resync interval when the snapshot controller re-evaluates all existing `VolumeSnapshot` instances and tries to fulfill them, i.e. create / delete corresponding snapshots. It does not affect re-tries of failed calls! It should be used only when there is a bug in Kubernetes watch logic. Default is 15 minutes. * `--version`: Prints current snapshot controller version and quits. @@ -143,7 +143,7 @@ Read more about how to install the example webhook [here](deploy/kubernetes/webh #### Other recognized arguments * `--kubeconfig `: Path to Kubernetes client configuration that the CSI external-snapshotter uses to connect to Kubernetes API server. When omitted, default token provided by Kubernetes will be used. This option is useful only when the external-snapshotter does not run as a Kubernetes pod, e.g. for debugging. -* `--resync-period `: Internal resync interval when the CSI external-snapshotter re-evaluates all existing `VolumeSnapshotContent` instances and tries to fulfill them, i.e. update / delete corresponding snapshots. It does not affect re-tries of failed CSI calls! It should be used only when there is a bug in Kubernetes watch logic. Default is 60 seconds. +* `--resync-period `: Internal resync interval when the CSI external-snapshotter re-evaluates all existing `VolumeSnapshotContent` instances and tries to fulfill them, i.e. update / delete corresponding snapshots. It does not affect re-tries of failed CSI calls! It should be used only when there is a bug in Kubernetes watch logic. Default is 15 minutes. * `--version`: Prints current CSI external-snapshotter version and quits. diff --git a/cmd/csi-snapshotter/main.go b/cmd/csi-snapshotter/main.go index 73f95671..8d95de56 100644 --- a/cmd/csi-snapshotter/main.go +++ b/cmd/csi-snapshotter/main.go @@ -57,7 +57,7 @@ const ( var ( kubeconfig = flag.String("kubeconfig", "", "Absolute path to the kubeconfig file. Required only when running out of cluster.") csiAddress = flag.String("csi-address", "/run/csi/socket", "Address of the CSI driver socket.") - resyncPeriod = flag.Duration("resync-period", 60*time.Second, "Resync interval of the controller.") + resyncPeriod = flag.Duration("resync-period", 15*time.Minute, "Resync interval of the controller.") snapshotNamePrefix = flag.String("snapshot-name-prefix", "snapshot", "Prefix to apply to the name of a created snapshot") snapshotNameUUIDLength = flag.Int("snapshot-name-uuid-length", -1, "Length in characters for the generated uuid of a created snapshot. Defaults behavior is to NOT truncate.") showVersion = flag.Bool("version", false, "Show version.") diff --git a/cmd/snapshot-controller/main.go b/cmd/snapshot-controller/main.go index 0b6e84f4..8308edbe 100644 --- a/cmd/snapshot-controller/main.go +++ b/cmd/snapshot-controller/main.go @@ -44,7 +44,7 @@ import ( // Command line flags var ( kubeconfig = flag.String("kubeconfig", "", "Absolute path to the kubeconfig file. Required only when running out of cluster.") - resyncPeriod = flag.Duration("resync-period", 60*time.Second, "Resync interval of the controller.") + resyncPeriod = flag.Duration("resync-period", 15*time.Minute, "Resync interval of the controller.") showVersion = flag.Bool("version", false, "Show version.") threads = flag.Int("worker-threads", 10, "Number of worker threads.")