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
mode | Renders | Use for |
|---|---|---|
standalone (default) | 1-replica Deployment (Recreate), ClusterIP Service (HTTP) | a self-contained pipeline |
agent | same workload + data-plane port, headless Service | joining a control-plane Hub |
control-plane | Hub + 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
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
configsets nonode_idandagent.nodeIdis empty, or setagent.nodeIdto pin a fixedARKFLOW_NODE_ID. - Supply the bootstrap credential via
ARKFLOW_NODE_TOKENfrom a Secret, and enablepersistence.enabled: trueso the chart wiresARKFLOW_NODE_CREDENTIAL_FILE(/app/data/node_credential) and retains the Hub-enrolledarkn_credential across restarts. Because enrolledarkn_credentials stay bound to their originalnode_id, pairing persistence with a mutable Deployment Pod name across Pod replacements causesnode_identity_mismatch; useagent.nodeId(for a single fixed node), deploy as aStatefulSetfor stable Pod names, or delete the stalenode_credentialfile before starting a newnode_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.sqlitePathon the persistence PVC; the Hub Deployment is single-replica withRecreateupdates (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 needscontrolPlane.hub.ha.enabledand Postgres storage. - Migration between backends stays a manual
arkflow-server migrateoperation (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 pointcontrolPlane.tls.existingSecretat your own), configures HubARKFLOW_HUB_TLS_{CA,CERT,KEY}+ARKFLOW_HUB_TLS_CLIENT_AUTH=agent_requiredwithHTTPSprobes (note:clientAuth=requiredis rejected during chart rendering because kubelet HTTPS probes and the Console proxy do not present client certificates), switchesARKFLOW_HUB_UPSTREAMon the Console tohttps://withproxy_ssl_verify onagainst the mounted Fleet CA, and mounts only CA + Agent client/data-plane keys (hub.keyexcluded) onto the in-chart Agent. For long-lived clusters, supply rotating certificates (e.g.cert-manager) viacontrolPlane.tls.existingSecretor, before the 365-day leaf expiry, delete<release>-tls, runhelm upgradeto regenerate the Secret (certificates are generated during Helm rendering, not at pod startup), and then restart the Hub, Console, and Agent pods. SetcontrolPlane.tls.enabled=false(and usehttp://inhub_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
| Key | Type | Default | Description |
|---|---|---|---|
mode | string | standalone | Install mode: standalone, agent, or control-plane. |
image.repository | string | ghcr.io/arkflow-rs/arkflow | Engine image. |
image.pullPolicy | string | IfNotPresent | Image pull policy. |
image.tag | string | chart appVersion | Engine image tag. |
imagePullSecrets | list | [] | Pull secrets for private registries. |
nameOverride / fullnameOverride | string | "" | Release name overrides. |
config | string (YAML doc) | minimal health listener | The full engine configuration, rendered byte-for-byte into a ConfigMap at /app/etc/config.yaml. Never inline secrets — use ${env:VAR} + env. |
env | list | [] | Extra workload env vars; secretKeyRef entries feed ${env:...} references. ARKFLOW_NODE_ID/ARKFLOW_NODE_TOKEN are chart-managed in agent mode. |
service.type | string | ClusterIP | Observability Service type. |
service.port | number | 8080 | HTTP port; keep consistent with health_check.address. |
probes.liveness.path / probes.readiness.path | string | /health / /readiness | Probe paths on the health listener. |
resources | object | {} | Pod resource requests/limits. |
podAnnotations, podSecurityContext, securityContext, nodeSelector, tolerations, affinity | object | {} / [] | Standard pod scheduling/security knobs. |
serviceAccount.create / .annotations / .name | bool/list/string | true / {} / "" | ServiceAccount creation. |
Unsafe and persistence
| Key | Type | Default | Description |
|---|---|---|---|
unsafe.allowMultipleReplicas | bool | false | Acknowledge duplicate consumption; unsupported for partition-unaware sources. |
unsafe.replicas | number | 1 | Only honored when allowMultipleReplicas is true. |
persistence.enabled | bool | false (standalone/agent); true for the Hub unless Postgres | PVC for WAL/state (engine) or the Hub SQLite store. |
persistence.storageClass / .accessModes / .size | string/list/size | "" / ReadWriteOnce / 1Gi | PVC properties. |
persistence.mountPath | string | /app/data | Mount path (the Hub always uses /var/lib/arkflow). |
Agent mode (agent.*)
| Key | Type | Default | Description |
|---|---|---|---|
agent.nodeId | string | "" (pod name) | Fixed ARKFLOW_NODE_ID; keep stable when persisting an enrolled arkn_ credential. |
agent.dataPort | number | 9090 | Data-plane listen port for cross-node shuffle. |
agent.tls.existingSecret | string | "" | Secret with ca.crt/tls.crt/tls.key for Hub mTLS + data-plane mTLS. |
agent.tls.caKey / .certKey / .keyKey | string | ca.crt / tls.crt / tls.key | Keys inside the TLS Secret. |
Control-plane mode (controlPlane.*)
| Key | Type | Default | Description |
|---|---|---|---|
controlPlane.nodeToken.existingSecret / .existingSecretKey | string | "" / node_token | Existing Secret for the shared node token; unset = chart generates and keeps one. |
controlPlane.tls.enabled | bool | true | Fleet CA + Hub/Agent mTLS; false reverts to plaintext HTTP. |
controlPlane.tls.existingSecret | string | "" | Bring-your-own TLS Secret (e.g. cert-manager). |
controlPlane.tls.caKey / .hubCertKey / .hubKeyKey / .agentCertKey / .agentKeyKey | string | ca.crt / hub.crt / hub.key / agent.crt / agent.key | Keys in the TLS Secret. |
controlPlane.tls.clientAuth | string | agent_required | Hub client verification (agent_required or none; required is rejected at render time — probes/console do not send client certs). |
controlPlane.hub.image.* | object | arkflow-server image | Hub image repository/policy/tag. |
controlPlane.hub.storage.postgresURL | string | "" | Postgres URL (${env:...} allowed); switches off the Hub PVC and is the HA prerequisite. |
controlPlane.hub.storage.sqlitePath | string | /var/lib/arkflow/hub.sqlite | SQLite path on the Hub PVC. |
controlPlane.hub.storage.persistenceEnabled | bool | true | Hub PVC switch; forced off by postgresURL. |
controlPlane.hub.operatorToken.existingSecret / .existingSecretKey | string | "" / operator_token | Operator token Secret — required in practice: the startup guard refuses an unauthenticated non-loopback bind. |
controlPlane.hub.ha.enabled | bool | false | Lease election (requires Postgres storage). |
controlPlane.hub.resources | object | {} | Hub pod resources. |
controlPlane.console.image.* | object | arkflow-console image | Console image. |
controlPlane.console.replicaCount | number | 1 | Console replicas. |
controlPlane.console.service.type / .port | string/number | ClusterIP / 80 | Console Service. |
controlPlane.console.resources | object | {} | Console pod resources. |
controlPlane.agent.enabled | bool | false | In-chart agent joining the in-chart Hub. |
controlPlane.agent.replicas | number | 1 | Multiple agents are legitimate (each pod is a distinct node); keep local streams: out of config or pin to 1. |
controlPlane.agent.persistence.* | object | disabled | Storage 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.