You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/guide/configuration.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,5 +26,9 @@ in `manifests/metacontroller.yaml`):
26
26
|`--events-qps`| Rate of events flowing per object (default - 1 event per 5 minutes, e.g. `--events-qps=0.0033`) |
27
27
|`--events-burst`| Number of events allowed to send per object (default 25, e.g. `--events-burst=25`) |
28
28
|`--pprof-address`| Enable pprof and bind to endpoint /debug/pprof, set to 0 to disable pprof serving (default 0, e.g. `--pprof-address=:6060`) |
29
+
|`--leader-election`| Determines whether or not to use leader election when starting metacontroller (default `false`, e.g., `--leader-election`) |
30
+
|`--leader-election-resource-lock`| Determines which resource lock to use for leader election (default `leases`, e.g., `--leader-election-resource-lock=leases`). Valid resource locks are `endpoints`, `configmaps`, `leases`, `endpointsleases`, or `configmapsleases`. See the client-go documentation [leaderelection/resourcelock](https://pkg.go.dev/k8s.io/client-go/tools/leaderelection/resourcelock#pkg-constants) for additional information. |
31
+
|`--leader-election-namespace`| Determines the namespace in which the leader election resource will be created. If metacontroller is running in-cluster, the default leader election namespace is the same namespace as metacontroller. If metacontroller is running out-of-cluster, the default leader election namespace is undefined. If you are running metacontroller out-of-cluster with leader election enabled, you must specify the leader election namespace. (e.g., `--leader-election-namespace=metacontroller`) |
32
+
|`--leader-election-id`| Determines the name of the resource that leader election will use for holding the leader lock. For example, if the leader election id is metacontroller and the leader election resource lock is leases, then a resource of kind `leases` with metadata.name `metacontroller` will hold the leader lock. (default metacontroller, e.g., `--leader-election-id=metacontroller`) |
29
33
30
34
Logging flags are being set by `controller-runtime`, more on the meaning of them can be found [here](https://sdk.operatorframework.io/docs/building-operators/golang/references/logging/#overview)
discoveryInterval=flag.Duration("discovery-interval", 30*time.Second, "How often to refresh discovery cache to pick up newly-installed resources")
41
-
informerRelist=flag.Duration("cache-flush-interval", 30*time.Minute, "How often to flush local caches and relist objects from the API server")
42
-
metricsAddr=flag.String("metrics-address", ":9999", "The address to bind metrics endpoint - /metrics")
43
-
clientGoQPS=flag.Float64("client-go-qps", 5, "Number of queries per second client-go is allowed to make (default 5)")
44
-
clientGoBurst=flag.Int("client-go-burst", 10, "Allowed burst queries for client-go (default 10)")
45
-
workers=flag.Int("workers", 5, "Number of sync workers to run (default 5)")
46
-
eventsQPS=flag.Float64("events-qps", 1./300., "Rate of events flowing per object (default - 1 event per 5 minutes)")
47
-
eventsBurst=flag.Int("events-burst", 25, "Number of events allowed to send per object (default 25)")
48
-
pprofAddr=flag.String("pprof-address", "0", "Enable pprof and bind to endpoint - /debug/pprof, set to 0 to disable pprof serving")
49
-
version="No version provided"
43
+
discoveryInterval=flag.Duration("discovery-interval", 30*time.Second, "How often to refresh discovery cache to pick up newly-installed resources")
44
+
informerRelist=flag.Duration("cache-flush-interval", 30*time.Minute, "How often to flush local caches and relist objects from the API server")
45
+
metricsAddr=flag.String("metrics-address", ":9999", "The address to bind metrics endpoint - /metrics")
46
+
clientGoQPS=flag.Float64("client-go-qps", 5, "Number of queries per second client-go is allowed to make (default 5)")
47
+
clientGoBurst=flag.Int("client-go-burst", 10, "Allowed burst queries for client-go (default 10)")
48
+
workers=flag.Int("workers", 5, "Number of sync workers to run (default 5)")
49
+
eventsQPS=flag.Float64("events-qps", 1./300., "Rate of events flowing per object (default - 1 event per 5 minutes)")
50
+
eventsBurst=flag.Int("events-burst", 25, "Number of events allowed to send per object (default 25)")
51
+
pprofAddr=flag.String("pprof-address", "0", "Enable pprof and bind to endpoint - /debug/pprof, set to 0 to disable pprof serving")
52
+
leaderElection=flag.Bool("leader-election", false, "Determines whether or not to use leader election when starting metacontroller")
53
+
leaderElectionResourceLock=flag.String("leader-election-resource-lock", resourcelock.LeasesResourceLock, "Determines which resource lock to use for leader election")
54
+
leaderElectionNamespace=flag.String("leader-election-namespace", "", "Determines the namespace in which the leader election resource will be created")
55
+
leaderElectionID=flag.String("leader-election-id", "metacontroller", "Determines the name of the resource that leader election will use for holding the leader lock")
0 commit comments