Skip to content
GitHub stars

Configuration

This page covers the controller manager's runtime flags. For resource-level configuration (hub connection, form policies, templates), follow the links in each section.

Controller Flags

Set in config/manager/manager.yaml under spec.template.spec.containers[].args:

yaml
args:
  # Leader election
  - --leader-elect=true                        # required in HA deployments

  # Concurrency (tune for cluster scale)
  - --hub-concurrency=3                        # concurrent hub syncs (default: 3)
  - --form-concurrency=5                       # concurrent form reconciliations (default: 5)
  - --node-concurrency=10                      # concurrent node reconciliations (default: 10)

  # Metrics and health
  - --metrics-bind-address=:8443               # Prometheus scrape endpoint (0 = disabled)
  - --health-probe-bind-address=:8081          # liveness/readiness probes
  - --metrics-secure=true                      # serve metrics over HTTPS

  # TLS (cert-manager provisions these automatically)
  - --webhook-cert-path=/tmp/k8s-webhook-server/serving-certs
  - --metrics-cert-path=/tmp/k8s-metrics-server/serving-certs

  # Logging
  - --zap-log-level=info                       # debug | info | error
  - --zap-encoder=json                         # json | console
  - --zap-devel=false                          # true enables development mode

Concurrency guidance:

Cluster scalehubformnode
Small (<50 nodes)3510
Medium (50–500)5820
Large (500+)81030

For more tuning options, see Performance.

Resource Limits

The shipped manifests and chart use conservative defaults:

yaml
resources:
  requests:
    cpu: 10m
    memory: 64Mi
  limits:
    cpu: 500m
    memory: 128Mi

Increase memory before scaling beyond a few hundred LynqNodes — the controller-runtime cache grows with total managed object count. For observed benchmarks, a sizing table, and a CPU/memory model, see Resource Sizing.

Configuration by Topic

TopicWhere to configureReference
Database connection, sync interval, column mappingsLynqHub specDatasource
Resource blueprints, rollout settingsLynqForm specTemplates
CreationPolicy, DeletionPolicy, ConflictPolicy, PatchStrategyPer-resource in LynqFormPolicies
Prometheus metrics, alertingOperator flags + Prometheus configMonitoring
RBAC, network policies, credentialsCluster config + SecretRefSecurity

See Also