helm

Matcher Helm Chart

Chart Contract

Release name

The PostgreSQL, Valkey, and RabbitMQ hosts (POSTGRES_HOST, POSTGRES_REPLICA_HOST, REDIS_HOST, RABBITMQ_HOST, RABBITMQ_HEALTH_URL) default to the subchart service names resolved collapse-aware via common.names.dependency.fullname, and the single-source secret references resolve to <release>-postgresql and <release>-valkey the same way — so all follow any release name (and fullnameOverride) automatically. The object-storage endpoint (matcher-seaweedfs) remains a literal carrying a matcher- prefix (SeaweedFS is not a dependency of this chart); installing it under a different name requires overriding matcher.configmap.OBJECT_STORAGE_ENDPOINT accordingly.

Known limitations

Source code can be found here:

This helm chart installs Matcher, a transaction reconciliation engine for the Lerian Studio ecosystem.


Install Matcher Helm Chart:

To install Matcher using Helm:

The chart needs a license, a RabbitMQ password and the schema migrations. Follow the quickstart (section 3.3) or the production profile (section 3.4) of the install runbook for a complete command.

This will create a new namespace called matcher if it doesn’t already exist and deploy the Matcher Helm chart.

For install profiles, external dependencies, validation and known errors, see the install runbook: English Português.

After installation, you can verify that the release was successful by listing the Helm releases in the matcher namespace:

$ helm list -n matcher

Configuring Ingress for Different Controllers

The Matcher Helm Chart supports different Ingress Controllers for exposing services when necessary.

NGINX Ingress Controller

To use the NGINX Ingress Controller, configure the values.yaml as follows:

matcher:
  ingress:
    enabled: true
    className: "nginx"
    annotations: {}
    hosts:
      - host: matcher.example.com
        paths:
          - path: /
            pathType: Prefix
    tls:
      - secretName: matcher-tls
        hosts:
          - matcher.example.com

Matcher Components:

Matcher Service:

Parameter Description Default Value
matcher.name Service name. "matcher"
matcher.enabled Enable or disable the matcher service. true
matcher.replicaCount Number of replicas for the matcher service. 2
matcher.revisionHistoryLimit Number of old ReplicaSets to retain. 10
matcher.image.repository Repository for the matcher service container image. "lerianstudio/matcher"
matcher.image.pullPolicy Image pull policy. "IfNotPresent"
matcher.image.tag Image tag used for deployment. Must be at or above the first image that serves the health port (see matcher.health in templates/_helpers.tpl). "6.1.0"
matcher.imagePullSecrets Secrets for pulling images from a private registry. []
matcher.nameOverride Overrides the default generated name by Helm. ""
matcher.fullnameOverride Overrides the full name generated by Helm. ""
matcher.podAnnotations Pod annotations for additional metadata. {}
matcher.podSecurityContext Security context applied at the pod level. {}
matcher.securityContext.* Defines security context settings for the container. See values.yaml
matcher.pdb.annotations Annotations for the PodDisruptionBudget. {}
matcher.health.stack Health preset stack (lerian-common.health). The preset owns probes (/health, /readyz on the internal health port 8099), grace, the rolling update strategy, the PDB spec and HEALTH_PORT/SHUTDOWN_*; non-empty matcher.startupProbe, matcher.livenessProbe, matcher.readinessProbe, and any matcher.deploymentUpdate, matcher.pdb.enabled, matcher.pdb.minAvailable or matcher.pdb.maxUnavailable are refused. go
matcher.health.drainSeconds SHUTDOWN_DRAIN_DELAY: listeners keep serving this long after SIGTERM. 15
matcher.health.shutdownSeconds SHUTDOWN_TIMEOUT: total shutdown budget; grace = drain + shutdown + 10. 30
matcher.service.type Kubernetes service type. "ClusterIP"
matcher.service.port Port for the HTTP API. 8080
matcher.service.annotations Annotations for the service. {}
matcher.ingress.enabled Specifies whether Ingress is enabled. false
matcher.ingress.className Ingress class name. ""
matcher.ingress.annotations Additional ingress annotations. {}
matcher.ingress.hosts Configured hosts for Ingress and associated paths. ""
matcher.ingress.tls TLS configurations for Ingress. []
matcher.resources.* CPU/Memory resource requests/limits. See values.yaml
matcher.autoscaling.enabled Specifies whether autoscaling is enabled. true
matcher.autoscaling.minReplicas Minimum number of replicas for autoscaling. 2
matcher.autoscaling.maxReplicas Maximum number of replicas for autoscaling. 5
matcher.autoscaling.targetCPUUtilizationPercentage Target CPU utilization percentage for autoscaling. 80
matcher.autoscaling.targetMemoryUtilizationPercentage Target memory utilization percentage for autoscaling. 80
matcher.nodeSelector Node selectors for pod scheduling. {}
matcher.tolerations Tolerations for pod scheduling. []
matcher.affinity Affinity rules for pod scheduling. {}
matcher.configmap.* Environment variables for the service. Every key is rendered into the ConfigMap. See values.yaml
Matcher pod checksums checksum/config and checksum/secret hash the rendered matcher ConfigMap and Secret, so any change to either (a values change or a chart-side key/default change) rolls the pods. With matcher.useExistingSecret the secret checksum is empty; roll the pods by hand when rotating that Secret. argocd-vault-plugin resolves <path:...> after helm, so a Vault-only rotation does not roll them either. n/a
matcher.secrets.* Secrets for the service. Every non-empty key is rendered into the Secret, except POSTGRES_PASSWORD, POSTGRES_REPLICA_PASSWORD, REDIS_PASSWORD and RABBITMQ_PASSWORD, which follow their subchart / existingSecret gates. See values.yaml
matcher.useExistingSecret Use an existing secret instead of creating a new one. false
matcher.existingSecretName The name of the existing secret to use. ""
matcher.serviceAccount.create Specifies whether a ServiceAccount should be created. true
matcher.serviceAccount.annotations Annotations for the ServiceAccount. {}
matcher.serviceAccount.name Name of the service account. ""

Detached migrations (matcher-migrations)

Optional ArgoCD PreSync Secret + Job that applies the schema (up-only, single-tenant) before the app Deployment. matcher v3+ is detached: it refuses to boot against an unmigrated DB, and the app image ships no migration binary. Disabled by default. With the bundled PostgreSQL the Job reads the password from the subchart Secret (<release>-postgresql, key password), like the app. With external PostgreSQL it needs an operator-provided password or matcher.useExistingSecret pointing at a pre-created Secret. Do not run this with MULTI_TENANT_ENABLED=true (the runner refuses it; the Tenant Manager owns tenant DB migrations).

Parameter Description Default Value
migrations.enabled Enable the detached migration PreSync Job. false
migrations.image.repository Migration runner image. "ghcr.io/lerianstudio/matcher-migrations"
migrations.image.tag Migration image tag. Empty → falls back to matcher.image.tag. ""
migrations.image.pullPolicy Image pull policy. "IfNotPresent"
migrations.imagePullSecrets Pull secrets for the migration image. []
migrations.waitImage Image for the TCP-wait initContainer. busybox
migrations.postgres.{host,port,user,database,sslMode} Postgres connection. Empty fields fall back to matcher.configmap.POSTGRES_* (host derives from the postgresql subchart). ""
migrations.postgres.password Password for the PreSync Secret (external PostgreSQL only). Empty → matcher.secrets.POSTGRES_PASSWORD. Ignored with the bundled PostgreSQL (the Job reads the subchart Secret) and when matcher.useExistingSecret=true (Job reads the existing Secret). ""
migrations.backoffLimit / migrations.activeDeadlineSeconds / migrations.ttlSecondsAfterFinished Job retry / deadline / TTL. 3 / 600 / 600
migrations.resources.* CPU/Memory requests/limits. See values.yaml

Upgrade Notes

3.1.0

3.0.0

matcher:
  ingress:
    enabled: true
    className: nginx
    annotations:
      nginx.ingress.kubernetes.io/proxy-body-size: 20m
    hosts:
      - host: matcher.example.com
        paths:
          - path: /v1
            pathType: Prefix
          - path: /system
            pathType: Prefix
    tls:
      - hosts: [matcher.example.com]
        secretName: matcher-tls

2.0.0

matcher:
  configmap:
    DEPLOYMENT_MODE: "byoc"

Dependencies

The Matcher Helm chart includes the following dependencies:

Valkey (Redis-compatible)

Parameter Description Default Value
valkey.enabled Enable or disable Valkey. true
valkey.architecture Valkey architecture. "standalone"
valkey.auth.enabled Enable authentication. true
valkey.auth.password Valkey password. Leave empty for internal Valkey — the subchart auto-generates it and matcher reads it from <release>-valkey. "" (auto-generated)
valkey.auth.username Valkey username. "matcher"

PostgreSQL

Parameter Description Default Value
postgresql.enabled Enable or disable PostgreSQL. true
postgresql.architecture PostgreSQL architecture. "replication"
postgresql.auth.postgresPassword PostgreSQL admin password. Leave empty for internal PostgreSQL — the subchart auto-generates it. "" (auto-generated)
postgresql.auth.username PostgreSQL username. "matcher"
postgresql.auth.password PostgreSQL user password. Leave empty for internal PostgreSQL — the subchart auto-generates it and matcher reads it from <release>-postgresql. "" (auto-generated)
postgresql.auth.database PostgreSQL database name. "matcher"

RabbitMQ

Parameter Description Default Value
rabbitmq.enabled Enable or disable RabbitMQ. true
rabbitmq.authentication.user.value RabbitMQ username. "matcher"
rabbitmq.authentication.password.value RabbitMQ default-user password (unused when definitions are imported). The matcher user’s password is provisioned from matcher.secrets.RABBITMQ_PASSWORD (see Known limitations). ""

ConfigMap Environment Variables

Every key under matcher.configmap reaches the pod as an environment variable; the chart only supplies defaults for the ones listed below (a key left empty falls back to its default). matcher.extraEnvVars entries override both. The following environment variables can be configured via the matcher.configmap section:

Variable Description Default Value
DEPLOYMENT_MODE Deployment posture: saas (Lerian-hosted multi-tenant), byoc (client-hosted) or local (development). The render fails when it is unset. required, no default
ENV_NAME Environment name. "production"
LOG_LEVEL Log level. "info"
SERVER_ADDRESS Server address. ":8080"
HTTP_BODY_LIMIT_BYTES HTTP body limit in bytes. "104857600"
POSTGRES_HOST PostgreSQL host. Derived collapse-aware from the subchart name; shown for release matcher. "matcher-postgresql-primary.matcher.svc.cluster.local."
POSTGRES_PORT PostgreSQL port. "5432"
POSTGRES_USER PostgreSQL username. "matcher"
POSTGRES_DB PostgreSQL database. "matcher"
REDIS_HOST Redis/Valkey host. Derived collapse-aware from the subchart name; shown for release matcher. "matcher-valkey-primary.matcher.svc.cluster.local.:6379"
RABBITMQ_HOST RabbitMQ host. Derived collapse-aware from the subchart name; shown for release matcher. "matcher-rabbitmq.matcher.svc.cluster.local."
RABBITMQ_PORT RabbitMQ port. "5672"
PLUGIN_AUTH_ENABLED Enable authentication (delegated to plugin-auth). Legacy AUTH_ENABLED still honored as a fallback. "false"
IDP_DECLARATION_ENABLED Publish the RI permission manifest to the Access Manager at boot (lib-auth declaration.WireFromEnv). Off unless "true"; with it on, IDP_HOST, the IDP_M2M_* secret pair and PLUGIN_AUTH_ENABLED: "true" are required. Not rendered unless set. unset
IDP_HOST Access Manager identity base URL for the RI declaration. Not rendered unless set. unset
PUBLIC_BASE_HOST Externally advertised host used to build inbound webhook and callback URLs (not the bind address). ""
PUBLIC_BASE_SCHEMES Scheme preference for those URLs. "https"
ENABLE_TELEMETRY Enable OpenTelemetry. "false"
OBJECT_STORAGE_ENDPOINT Object storage endpoint. Namespace-aware default; shown for namespace matcher. "http://matcher-seaweedfs.matcher.svc.cluster.local.:8333"
EXPORT_WORKER_ENABLED Enable export worker. "true"

For a complete list of environment variables, see the values.yaml file.


Secrets

The following secrets can be configured via the matcher.secrets section:

Secret Description Default Value
POSTGRES_PASSWORD PostgreSQL password. Single-sourced from <release>-postgresql (key password) for internal PostgreSQL. Set only for external PostgreSQL without an existingSecret. ""
POSTGRES_REPLICA_PASSWORD PostgreSQL replica password. Single-sourced from <release>-postgresql (key password, the matcher user) for internal PostgreSQL. Set only for external PostgreSQL without an existingSecret. ""
REDIS_PASSWORD Redis/Valkey password. Single-sourced from <release>-valkey (key valkey-password) for internal Valkey. Set only for external Valkey without an existingSecret. ""
RABBITMQ_PASSWORD RabbitMQ password. Operator-provided; for the bundled broker it is also injected into the imported load definitions as the matcher user’s password (see Known limitations). ""
OBJECT_STORAGE_ACCESS_KEY_ID Object storage access key. ""
OBJECT_STORAGE_SECRET_ACCESS_KEY Object storage secret key. ""
APP_ENC_KEY Engine credential master key (base64 32-byte). Required in production. Emitted only when set (opt-in). Generate: openssl rand -base64 32 \| tr -d '\n'. ""
ACTOR_PII_ENCRYPTION_KEY Actor PII encryption key (optional, base64 32-byte). Emitted only when set. ""
LICENSE_KEY Licence key. With useExistingSecret: true, put it in the existing Secret. ""
IDP_M2M_CLIENT_ID RI declaration M2M client ID. Required when IDP_DECLARATION_ENABLED is "true". Emitted only when set; with useExistingSecret: true, put it in the existing Secret. ""
IDP_M2M_CLIENT_SECRET RI declaration M2M client secret. Same rules as IDP_M2M_CLIENT_ID. ""

Licence file (offline alternative to LICENSE_KEY)

Value Description Default
matcher.licenseFile.existingSecret Operator-created Secret holding the signed licence file under the key license.lic. Mounted read-only as a directory (never a subPath) at /etc/lerian/license on the app and the migration Job. File mode needs an image on lib-license-go v5. ""

The migration Job reads LICENSE_KEY (optional: true) from matcher.existingSecretName when useExistingSecret is true, else from the <fullname>-license-hook PreSync Secret the chart renders when the key comes from values (secrets, extraEnvVars or configmap). In file mode the licence Secret must exist before the sync: the PreSync Job mounts it.


External Dependencies

To use external dependencies instead of the bundled ones, disable the internal dependencies and configure the external connection settings:

# Disable internal PostgreSQL
postgresql:
  enabled: false
  external: true

# Configure external PostgreSQL via configmap
matcher:
  configmap:
    POSTGRES_HOST: "external-postgres.example.com"
    POSTGRES_PORT: "5432"

Support & Community