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

yaml
resources:
  requests:
    cpu: 200m
    memory: 256Mi
  limits:
    cpu: 1000m
    memory: 1Gi

These defaults suit clusters up to ~200 LynqNodes. 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