Skip to main content
Version: Next

Helm Chart

The official chart installs the ArkFlow engine from the images CI publishes to ghcr.io. It renders the raw manifests described in Kubernetes with the safety defaults baked in: single replica, Recreate updates, wired probes, and pass-through configuration.

Install​

helm install my-arkflow oci://ghcr.io/arkflow-rs/charts/arkflow \
--values my-values.yaml

The chart version bumps independently; appVersion tracks the engine release tag, so helm upgrade picks the engine version through the image tag.

Modes​

modeRendersUse for
standalone (default)1-replica Deployment (Recreate), ClusterIP Service (HTTP)a self-contained pipeline
agentsame workload + data-plane port, headless Servicejoining a control-plane Hub
control-planeHub + Console + shared credential (+ optional in-chart agent)the distributed runtime in one release

Pass-through configuration​

The whole engine configuration document is supplied as the config value and rendered byte-for-byte into a ConfigMap mounted at /app/etc/config.yaml. Engine schema evolution never requires chart changes; arkflow --validate stays the authority on validity.

mode: standalone

config: |
health_check:
address: "0.0.0.0:8080"
streams:
# ... full engine configuration document
Bind a reachable address

The engine's health_check.address defaults to 127.0.0.1:8080, which kubelet probes cannot reach. Always bind a pod-reachable address such as 0.0.0.0:8080 in the chart-supplied config.

Secrets​

The chart never receives secret values. Reference them inside config with the engine's ${env:VAR} expansion and feed the variables from Kubernetes Secrets:

config: |
health_check:
address: "0.0.0.0:8080"
outputs:
- type: kafka
brokers: ["${env:KAFKA_BROKERS}"]

env:
- name: KAFKA_BROKERS
valueFrom:
secretKeyRef:
name: my-release-secrets
key: brokers

Single-replica semantics​

Standalone mode runs exactly one replica and updates with the Recreate strategy: the engine is stateful, and two instances would consume the same sources twice. helm upgrade therefore never runs old and new pods concurrently. Scaling out is a control-plane concern, not a standalone-release concern. An unsafe.allowMultipleReplicas opt-in exists for operators who know their sources are partition-assigned; it is unsupported for partition-unaware sources.

Agent mode​

mode: agent joins the engine to a control-plane Hub:

mode: agent

agent:
dataPort: 9090
tls:
existingSecret: arkflow-agent-tls

persistence:
enabled: true

config: |
health_check:
address: "0.0.0.0:8080"
hub_urls: ["https://arkflow-hub:8080"]
# node_id omitted: defaults to the pod name (ARKFLOW_NODE_ID)

env:
- name: ARKFLOW_NODE_TOKEN
valueFrom:
secretKeyRef:
name: arkflow-fleet
key: node_token
  • Node identity defaults to the pod name via the downward API when config sets no node_id and agent.nodeId is empty, or set agent.nodeId to pin a fixed ARKFLOW_NODE_ID.
  • Supply the bootstrap credential via ARKFLOW_NODE_TOKEN from a Secret, and enable persistence.enabled: true so the chart wires ARKFLOW_NODE_CREDENTIAL_FILE (/app/data/node_credential) and retains the Hub-enrolled arkn_ credential across restarts. Because enrolled arkn_ credentials stay bound to their original node_id, pairing persistence with a mutable Deployment Pod name across Pod replacements causes node_identity_mismatch; use agent.nodeId (for a single fixed node), deploy as a StatefulSet for stable Pod names, or delete the stale node_credential file before starting a new node_id (while bootstrap is enabled).
  • Set agent.tls.existingSecret (ca.crt, tls.crt, tls.key) to mount CA and client/data-plane certificates for Hub mTLS (ARKFLOW_AGENT_TLS_*) and cross-node shuffle (ARKFLOW_DATA_PLANE_TLS_*). Without TLS or a data-plane secret, the engine refuses split shuffle — see the TLS matrix.

Control-plane mode​

mode: control-plane renders the full distributed runtime in one release: the Hub (arkflow-server image), the Console (static UI behind a same-origin nginx proxy), a bootstrap node-credential Secret, Fleet CA + Hub/Agent mTLS certificates, and an optional in-chart agent joining the in-chart Hub.

mode: control-plane

controlPlane:
# nodeToken unset => the chart generates and KEEPS a Secret across
# upgrades and uninstalls (delete it manually when certain).
# tls.enabled defaults to true (mTLS for Hub, Agent, and data plane).
hub:
storage:
# Default: SQLite on the persistence PVC. A postgres:// URL switches
# the Hub to Postgres (HA prerequisite) and skips the PVC.
sqlitePath: /var/lib/arkflow/hub.sqlite
console:
service:
type: ClusterIP
agent:
enabled: true
replicas: 1

config: |
health_check:
address: "0.0.0.0:8080"
hub_urls: ["https://<release-name>-hub:8080"]

Storage, mTLS, and availability contract:

  • Default storage: SQLite at controlPlane.hub.storage.sqlitePath on the persistence PVC; the Hub Deployment is single-replica with Recreate updates (never two Hubs against one store).
  • Postgres: set controlPlane.hub.storage.postgresURL (env ${env:...} references allowed) to skip the PVC; Hub HA lease election additionally needs controlPlane.hub.ha.enabled and Postgres storage.
  • Migration between backends stays a manual arkflow-server migrate operation (stop the Hub first) — see the control-plane deployment page.
  • mTLS enabled by default (controlPlane.tls.enabled: true): on first install the chart generates and keeps (helm.sh/resource-policy: keep) a Fleet CA (10-year lifetime), Hub server cert, and Agent client/data-plane cert (365-day leaf lifetime, reused while the Secret exists) in <release>-tls (or point controlPlane.tls.existingSecret at your own), configures Hub ARKFLOW_HUB_TLS_{CA,CERT,KEY} + ARKFLOW_HUB_TLS_CLIENT_AUTH=agent_required with HTTPS probes (note: clientAuth=required is rejected during chart rendering because kubelet HTTPS probes and the Console proxy do not present client certificates), switches ARKFLOW_HUB_UPSTREAM on the Console to https:// with proxy_ssl_verify on against the mounted Fleet CA, and mounts only CA + Agent client/data-plane keys (hub.key excluded) onto the in-chart Agent. For long-lived clusters, supply rotating certificates (e.g. cert-manager) via controlPlane.tls.existingSecret or, before the 365-day leaf expiry, delete <release>-tls, run helm upgrade to regenerate the Secret (certificates are generated during Helm rendering, not at pod startup), and then restart the Hub, Console, and Agent pods. Set controlPlane.tls.enabled=false (and use http:// in hub_urls) to opt out to plaintext HTTP.

The shared bootstrap credential feeds ARKFLOW_NODE_TOKEN on both the Hub and the in-chart agent; the chart generates one into a Secret on first install (helm.sh/resource-policy: keep) unless controlPlane.nodeToken.existingSecret points at your own.

The Console resolves its proxy target at container start from ARKFLOW_HUB_UPSTREAM — the chart sets it to https://<release>-hub:8080 (with ARKFLOW_HUB_PROXY_SSL enabling CA verification) or http:// when TLS is disabled, and the image defaults (http://arkflow-hub:8080, empty ARKFLOW_HUB_PROXY_SSL) preserve standalone-console behavior outside the chart.

Values reference​

Every key with its type and default. Engine fields are not decomposed into values — they live in the pass-through config document.

Chart-level​

KeyTypeDefaultDescription
modestringstandaloneInstall mode: standalone, agent, or control-plane.
image.repositorystringghcr.io/arkflow-rs/arkflowEngine image.
image.pullPolicystringIfNotPresentImage pull policy.
image.tagstringchart appVersionEngine image tag.
imagePullSecretslist[]Pull secrets for private registries.
nameOverride / fullnameOverridestring""Release name overrides.
configstring (YAML doc)minimal health listenerThe full engine configuration, rendered byte-for-byte into a ConfigMap at /app/etc/config.yaml. Never inline secrets — use ${env:VAR} + env.
envlist[]Extra workload env vars; secretKeyRef entries feed ${env:...} references. ARKFLOW_NODE_ID/ARKFLOW_NODE_TOKEN are chart-managed in agent mode.
service.typestringClusterIPObservability Service type.
service.portnumber8080HTTP port; keep consistent with health_check.address.
probes.liveness.path / probes.readiness.pathstring/health / /readinessProbe paths on the health listener.
resourcesobject{}Pod resource requests/limits.
podAnnotations, podSecurityContext, securityContext, nodeSelector, tolerations, affinityobject{} / []Standard pod scheduling/security knobs.
serviceAccount.create / .annotations / .namebool/list/stringtrue / {} / ""ServiceAccount creation.

Unsafe and persistence​

KeyTypeDefaultDescription
unsafe.allowMultipleReplicasboolfalseAcknowledge duplicate consumption; unsupported for partition-unaware sources.
unsafe.replicasnumber1Only honored when allowMultipleReplicas is true.
persistence.enabledboolfalse (standalone/agent); true for the Hub unless PostgresPVC for WAL/state (engine) or the Hub SQLite store.
persistence.storageClass / .accessModes / .sizestring/list/size"" / ReadWriteOnce / 1GiPVC properties.
persistence.mountPathstring/app/dataMount path (the Hub always uses /var/lib/arkflow).

Agent mode (agent.*)​

KeyTypeDefaultDescription
agent.nodeIdstring"" (pod name)Fixed ARKFLOW_NODE_ID; keep stable when persisting an enrolled arkn_ credential.
agent.dataPortnumber9090Data-plane listen port for cross-node shuffle.
agent.tls.existingSecretstring""Secret with ca.crt/tls.crt/tls.key for Hub mTLS + data-plane mTLS.
agent.tls.caKey / .certKey / .keyKeystringca.crt / tls.crt / tls.keyKeys inside the TLS Secret.

Control-plane mode (controlPlane.*)​

KeyTypeDefaultDescription
controlPlane.nodeToken.existingSecret / .existingSecretKeystring"" / node_tokenExisting Secret for the shared node token; unset = chart generates and keeps one.
controlPlane.tls.enabledbooltrueFleet CA + Hub/Agent mTLS; false reverts to plaintext HTTP.
controlPlane.tls.existingSecretstring""Bring-your-own TLS Secret (e.g. cert-manager).
controlPlane.tls.caKey / .hubCertKey / .hubKeyKey / .agentCertKey / .agentKeyKeystringca.crt / hub.crt / hub.key / agent.crt / agent.keyKeys in the TLS Secret.
controlPlane.tls.clientAuthstringagent_requiredHub client verification (agent_required or none; required is rejected at render time — probes/console do not send client certs).
controlPlane.hub.image.*objectarkflow-server imageHub image repository/policy/tag.
controlPlane.hub.storage.postgresURLstring""Postgres URL (${env:...} allowed); switches off the Hub PVC and is the HA prerequisite.
controlPlane.hub.storage.sqlitePathstring/var/lib/arkflow/hub.sqliteSQLite path on the Hub PVC.
controlPlane.hub.storage.persistenceEnabledbooltrueHub PVC switch; forced off by postgresURL.
controlPlane.hub.operatorToken.existingSecret / .existingSecretKeystring"" / operator_tokenOperator token Secret — required in practice: the startup guard refuses an unauthenticated non-loopback bind.
controlPlane.hub.ha.enabledboolfalseLease election (requires Postgres storage).
controlPlane.hub.resourcesobject{}Hub pod resources.
controlPlane.console.image.*objectarkflow-console imageConsole image.
controlPlane.console.replicaCountnumber1Console replicas.
controlPlane.console.service.type / .portstring/numberClusterIP / 80Console Service.
controlPlane.console.resourcesobject{}Console pod resources.
controlPlane.agent.enabledboolfalseIn-chart agent joining the in-chart Hub.
controlPlane.agent.replicasnumber1Multiple agents are legitimate (each pod is a distinct node); keep local streams: out of config or pin to 1.
controlPlane.agent.persistence.*objectdisabledStorage for ARKFLOW_NODE_CREDENTIAL_FILE when pinning agent.nodeId (replicas must stay 1).

Roadmap​

The chart is the Kubernetes delivery surface: standalone/agent engine installs, and the control-plane umbrella above. A CRD/operator is explicitly deferred until a real GitOps demand signal exists — and when built, it will only translate CRs into Hub API calls, never make scheduling decisions.