Configuration
Helm values configure workloads and select the API’s complete runtime hub/OIDC document. Installation-specific API and web settings can change without rebuilding the images.
| Source | Purpose |
|---|---|
helm/values.yaml | Chart defaults |
helm/values-production.yaml | Example operator overrides |
.generated/values-generated.yaml | Setup-generated endpoint settings and Secret references |
.generated/values-images.yaml | Image digests resolved from the published packages or recorded by a local build |
.generated/secrets.yaml | Private credentials, applied separately |
FLOW_LIKE_CONFIG_FILE | Host-side JSON file read by setup into a generated Kubernetes Secret |
Paths above are relative to apps/backend/kubernetes/. Setup reads exported
environment variables as data; it does not source a .env file.
Images
Section titled “Images”Each first-party *.image map has repository, tag, digest and
pullPolicy. Defaults point at the public ghcr.io/rheosoph packages at the
dev tag; a digest pins one manifest and wins over the tag. Run
scripts/resolve-images.py --tag <release> to pin all images, or
scripts/build-images.sh to build them, and let deploy.sh apply the
resulting file. global.imageRegistry prefixes every repository for mirrors;
global.imagePullSecrets lists the docker-registry Secrets for private
packages and reaches the API-created execution Jobs and sink CronJobs as well.
See Helm chart images.
Runtime API and web configuration
Section titled “Runtime API and web configuration”setup-config.sh stores the selected JSON in a separate hub-config Secret
inside its private output and points generated Helm values at it. The API mounts
the Secret read-only at /etc/flow-like/flow-like.config.json. Setup also accepts
FLOW_LIKE_RUNTIME_CONFIG_FILE, the older repository-relative
FLOW_LIKE_CONFIG, or raw FLOW_LIKE_CONFIG_JSON. With no input it uses the
self-hosting example; replace its OIDC placeholders before deployment.
Select at most one source under api.runtimeConfig:
| Value | Source |
|---|---|
existingSecret | Read-only Secret volume |
existingConfigMap | Read-only ConfigMap volume for public settings |
secretKeyRef.name and .key | JSON from an existing Secret key in FLOW_LIKE_CONFIG_JSON |
secretRef | Reference resolved by the API’s configured SecretStore |
Volume sources use api.runtimeConfig.key, which defaults to
flow-like.config.json. Create and maintain external Secrets/ConfigMaps through
the installation’s normal configuration process. Do not put credential-bearing
JSON in values files or duplicate FLOW_LIKE_CONFIG_* through api.env or
api.envFrom. Setup accepts FLOW_LIKE_CONFIG_SECRET_REF and stores only the
reference; its target must be available to the API separately.
The API reads the whole document once. After changing an external Secret, ConfigMap or SecretStore value, restart the API Deployment. Updating the resource alone does not roll out Pods. Changing the selected reference through Helm does. Empty source values leave the embedded fallback available; conflicting nonempty sources stop startup. See the runtime API contract for validation, limits and secret handling.
For an explicit custom fallback build, build-images.sh accepts the
repository-relative FLOW_LIKE_BUILD_CONFIG. Use only public settings because
the document is embedded in the executable. The audit worker is built from the
same document and takes its audit section as its
audit policy. The runtime config
above does not reach the worker, so audit policy changes need this build input
and a rebuilt worker image.
The web image reads web.runtimeConfig.apiUrl, falling back to api.publicUrl,
and optional redirectUrl/logoutUrl at container startup. Omitted redirect and
logout settings use the browser origin with /callback and /. Helm changes
roll out the same web image. Supply public HTTP(S) URLs without credentials,
queries or fragments. See Runtime web configuration
for the separate static-metadata and third-party OAuth relay limits.
api.frontendBaseUrl points hosted App links (/a/<app-id>/<route>) to the
same web deployment. Setup derives it from PUBLIC_WEB_URL, defaulting to
http://localhost:3001. When API and web share an origin, route /a to web and
/frontend to API. See Hosted frontends
for the static rewrites and existing login callback.
Run reply channels
Section titled “Run reply channels”The generated deployment uses NATS for interactive run replies. The API issues short-lived credentials scoped to each run. Browser clients publish over WebSockets, and the executor acknowledges delivery after accepting the reply. Per-run executors connect through their execution gateway, so they retain their network isolation.
Setup requires OpenSSL with Ed25519 support and generates two Secrets:
<release>-nats-issuer contains the account signing
seed for the API, and <release>-nats-server contains nats.conf with public
operator/account tokens and the allowed HTTP(S) browser origins. The broker
never receives the signing seed.
channels: transport: nats nats: enabled: true publicWebsocketUrl: wss://api.example.com/nats issuerSecret: flow-like-nats-issuer serverSecret: flow-like-nats-serverWhen the chart’s ingress is enabled, it adds /nats on each configured host and
routes it to the broker’s WebSocket Service port. Use TLS at the ingress. With
an external ingress, route the same path to <release>-nats:8080. The native
port 4222 is available only inside the cluster. For local port forwarding, use
the broker Service and set publicWebsocketUrl to that forwarded address.
The broker’s origin list comes from PUBLIC_WEB_URL at setup time. Update the
nats.conf Secret and restart NATS when changing it. Desktop clients using a
tauri:// origin use the API’s HTTP forwarding fallback because NATS accepts
only HTTP(S) browser origins. Collaboration signaling remains independent.
The bundled broker deliberately runs one replica with a recreate strategy.
Increasing replicaCount without NATS cluster routes would split subscriptions
between independent brokers, so the chart rejects it. For broker high
availability, use an existing NATS cluster:
channels: nats: enabled: false url: nats://nats.internal.example.com:4222 publicWebsocketUrl: wss://nats.example.com issuerSecret: existing-nats-accountThat Secret must contain CHANNEL_NATS_ACCOUNT_SEED for an account trusted by
the external cluster. Use a stable Service or load-balancer DNS name; channel
clients reconnect through the configured endpoint instead of broker-discovered
addresses. The isolated execution gateway currently accepts nats:// inside
the trusted private network. Native tls:// endpoints are supported in
trusted_shared mode, where executors connect directly. Permit the native endpoint in
networkPolicy.controlPlaneExtraEgress and
networkPolicy.executionGatewayExtraEgress; the bundled broker’s automatic
rules do not authorize arbitrary private endpoints.
Core NATS does not persist replies while the receiver is disconnected.
Acknowledgements and retries detect failed delivery; HTTP forwarding also
depends on the broker. Use channels.transport: http to select the
database-backed polling transport. No NATS workload is rendered in that mode.
The channel end-to-end suite can also target a forwarded Kubernetes NATS Service. It runs the browser sender against the Rust executor adapter with real broker authentication.
Execution capacity
Section titled “Execution capacity”The default mode prepares clean, single-use Pod pairs:
execution: isolationMode: per_run backend: http asyncBackend: redis queueName: exec:jobs:v3 queueMaxWaitSeconds: 300 credentialMarginSeconds: 120
executionManager: replicaCount: 2 workerThreads: 2 maxConcurrentExecutions: 20 warmPoolSize: 4 warmPoolCreationConcurrency: 2 warmPoolMaxAgeSeconds: 600 sandbox: memoryMb: 1024 cpus: 1 tmpMb: 256 nodeSelector: flow-like.io/execution: "true" queueBridge: replicaCount: 2 concurrency: 20This example configures up to 40 active executions and eight additional clean slots across the two managers, subject to resources and slot availability. Each slot also has a separate gateway Pod. Provision execution nodes before raising these values.
workerThreads sets each manager’s Tokio worker count; it does not set workflow
concurrency. queueBridge.concurrency limits jobs a bridge can hold while waiting
or executing. A large queue-consumer count does not create runner capacity.
Time budgets
Section titled “Time budgets”| Helm value | Default | Runtime variable |
|---|---|---|
executor.timeout | 3600 s | EXECUTION_TIMEOUT_SECONDS |
executionManager.startupGraceSeconds | 30 s | EXECUTION_STARTUP_GRACE_SECONDS |
executionManager.terminalGraceSeconds | 60 s | EXECUTION_TERMINAL_GRACE_SECONDS |
executionManager.cleanupTimeoutSeconds | 30 s | EXECUTION_CLEANUP_TIMEOUT_SECONDS |
execution.queueMaxWaitSeconds | 300 s | EXECUTION_QUEUE_MAX_WAIT_SECONDS |
execution.credentialMarginSeconds | 120 s | EXECUTION_CREDENTIAL_MARGIN_SECONDS |
storage.s3.stsSessionTtlSeconds | 7200 s | STS_SESSION_TTL_SECONDS |
The API checks actual remaining credential lifetime against the execution, queue, supervisor and safety budgets. The defaults require 4,140 seconds at checkout. Requesting a longer STS session does not help if the provider returns a shorter one. Adjust ingress and load-balancer timeouts when changing execution duration.
Storage and Secrets
Section titled “Storage and Secrets”storage.provider=s3 and rustfs.enabled=true select the bundled RustFS setup.
Public, internal and STS origins are distinct settings:
storage.s3.publicEndpoint: signed object URLs used by browsers and runtimes.storage.s3.internalEndpoint: API LanceDB access; ordinary signed object requests use the public origin.storage.s3.stsEndpoint: private temporary-credential issuance.
Setup generates separate root, API and STS identities. Keep Secret values out of
ordinary values files and command-line --set arguments. See
Storage and
Secret contracts.
Bundled Redis requires both REDIS_PASSWORD and a complete, URL-encoded
REDIS_URL in redis.auth.existingSecret. External Redis uses
redis.enabled=false with redis.externalExistingSecret; that Secret contains
REDIS_URL. Use rediss:// and a trusted certificate chain for TLS.
API, database and integrations
Section titled “API, database and integrations”Configure API replicas with api.replicaCount, or enable api.autoscaling and
let the HPA own the count. Size database.pool.maxConnections and
database.pool.minConnections per API process; include maximum replicas and
rollout surge in the database’s total connection budget.
Add extra configuration through api.env and api.envFrom. Avoid duplicating
chart-owned names such as DATABASE_URL, REDIS_URL or BACKEND_KEY.
Hosted-model provider credentials belong to the API’s authenticated model proxy.
The chart’s llm.* Secret references configure that proxy. Speech uses
llm.openrouter, llm.openai, llm.groq, llm.mistral, llm.together,
llm.xai or llm.gemini; hosted images use llm.openrouter or
llm.cloudflare. Set enabled: true and existingSecret for each provider
you use. The setup script creates these Secrets and references when the
corresponding provider variables are present in its environment. See the
required Secret keys
and speech and image catalog setup.
Runner Pods receive execution capabilities for the model proxy. Grant direct
HTTPS integrations with exact hostnames in
executionManager.allowedHttpsHosts. Integration destinations that resolve to
private or reserved addresses are rejected even if a NetworkPolicy permits them.
Use networkPolicy.executionGatewayExtraEgress for required private object-store
endpoints.
For multiple signaling replicas, set signaling.fanoutMode=redis, exact browser
origins in signaling.allowedOrigins, and the deployment’s WSS endpoint in the
runtime hub configuration. See Realtime signaling
for authentication, fanout and client/server rollout compatibility.
Review effective configuration
Section titled “Review effective configuration”helm get values flow-like -n flow-likekubectl describe deployment flow-like-api -n flow-likekubectl describe deployment flow-like-execution-manager -n flow-likeUse the deploy helper to validate the
same ordered values files before applying an update. For trusted-only local
workflows, execution.isolationMode=trusted_shared and
execution.asyncBackend=http select the reusable executor pool. That mode does
not provide per-execution tenant isolation.