Helm chart settings
The settings of the Reeve Helm chart that need an explanation beyond the value's name. The install steps are in the chart README, and every value with its default is in the Helm chart values reference.
The chart sets REPLICA_ID from each pod name at every replica count, and the migration Job uses reeve-migrate. The
backend refuses to start without one. Entries you add under backend.extraEnv must not assign duplicate ids, because
membership records and exclusive ownership use the id of each live replica.
Resource names
Object names in this page use <fullname>: the release name, or <release>-reeve when the release name does not
contain reeve. fullnameOverride replaces it. The backend Service of a release called home is
home-reeve-backend.
Images
image:
backend:
repository: ghcr.io/reeve-iot/reeve-backend
tag: ""
pullPolicy: IfNotPresent
frontend:
repository: ghcr.io/reeve-iot/reeve-frontend
tag: ""
pullPolicy: IfNotPresent
adapters:
matterBridge:
image:
repository: ghcr.io/reeve-iot/reeve-matter-bridge
An empty tag runs the release the chart belongs to (the chart's appVersion). Do not run latest: it is the newest
release, which can move past the chart. image.backend.digest, image.frontend.digest and
adapters.matterBridge.image.digest (sha256:<64 hex>) name an image by digest instead of by tag. The pod image, and
the migration Job's, is then repository@digest, and a digest wins over a tag that is also set. A malformed digest
fails the render.
Installing or upgrading the chart does not roll anything you did not ask for. You move to a release by moving your
pin to its chart version (helm upgrade --version, or the chart version in your GitOps application). With
cluster.fullStopUpgrade off, the new release then rolls replica by replica.
Database
The CloudNativePG cluster (default)
The defaults read everything from the CloudNativePG application Secret, so nothing needs setting when the cluster is
named reeve-db in the release namespace. For another cluster name:
postgresql:
external:
host: "my-db-rw"
existingSecret: "my-db-app"
useCnpgSecret: true
postgresql.external.port must equal the port in that Secret, because the NetworkPolicy egress rule opens it.
Using another PostgreSQL
Turn useCnpgSecret off and name the server. The password comes from a Secret of your own:
postgresql:
external:
useCnpgSecret: false
host: postgres.example.com
port: 5432
username: reeve
database: reeve
existingSecret: ""
database:
password:
existingSecret: { name: reeve-db-password, key: password }
A superuser must create the TimescaleDB extension before the first start.
Read-replica routing
Off by default. With postgresql.external.readReplica.enabled, the backend also receives a
ConnectionStrings__ReplicaDatabase variable. Services that tolerate replica lag (analytics, history, listings) read
from the CloudNativePG -ro Service, while all writes and reads that need the latest state (authentication, tokens,
second factors, permissions) stay on the primary. The replica differs from the primary by host only: port, database,
user and password are reused.
postgresql:
external:
existingSecret: "reeve-db-app"
useCnpgSecret: true
readReplica:
enabled: true
host: "reeve-db-ro"
The CloudNativePG Cluster needs spec.instances of 2 or more. Otherwise the -ro Service has no standby and falls
back to the primary. The postgresql-replica health check, tagged degraded, confirms with pg_is_in_recovery()
that the endpoint is a standby and never fails the pod. See Data and persistence
for which reads may use the standby.
Redis
Configure exactly one Redis mode. The render fails if neither redis.builtin.enabled nor redis.external.enabled is
true, and if both are.
Built-in Redis
redis:
builtin:
enabled: true
persistence:
size: 2Gi
The built-in Redis accepts unauthenticated connections unless you give it a password. It holds the session store, and
plugin workloads run in the release namespace by default, so set a password together with networkPolicy.enabled:
redis:
builtin:
enabled: true
passwordSource:
existingSecret:
name: redis-credentials
key: password
passwordSource also takes value or externalSecret. file and ref are refused, because the Redis pod mounts
the same Secret. The server reads the password as requirepass once at start and its probes use that copy. The
backend's wait-for-redis authenticates with it, and the backend reads it as Redis__Password_FILE. An empty value
stops Redis from starting.
Turning the password on or off over a running release causes a short Redis outage until the backend has rolled. A
changed value rolls Redis and the backend together. Rotating an existingSecret or externalSecret needs a restart
of Redis and then of the backend, as Configuration describes.
External Redis
An external Redis must be 8.4 or newer. The backend refuses to start against an older server.
redis:
external:
enabled: true
host: redis.example.com
port: 6379
password: "your-password"
To read the password from a Kubernetes Secret, leave password empty and name the Secret:
redis:
external:
enabled: true
host: redis.example.com
port: 6379
existingSecret: redis-credentials
existingSecretPasswordKey: auth-token # defaults to "password"
The Secret must exist in the release namespace and contain the key. Set either existingSecret or the inline
password, not both.
Start-up ordering
The backend pod starts only once Redis answers. A wait-for-redis init container, beside wait-for-postgres, repeats
PING against the configured Redis until it gets PONG and logs each failed reply. With a password it authenticates
from the same Secret or file as the backend (a file source reaches it through backend.extraVolumeMounts). A wrong
password keeps the pod in its init phase with WRONGPASS in that container's log. The init container uses
redis.waitImage (it needs redis-cli). The chart has no Redis TLS setting, so the PING is plain TCP like the
backend's connection.
The init container runs only when the pod is created, not when the backend container restarts inside it. For those
restarts, and for a Redis that restarts during an upgrade, the backend retries the PING itself for
Redis:StartupWaitSeconds (90 s by default) before it fails the boot, waiting 2 s after each failed PING, which
takes up to its 5 s timeout. The start-up watchdog (Bootstrap__MaxStartupSeconds) does not count that wait. This
relies on the abortConnect=false that the chart adds to the connection string.
PostgreSQL is waited for in the same way: by wait-for-postgres when the pod is created, and by the backend on every
start before anything else touches the database. The wait is backend.postgresStartupWaitSeconds (90 s by default,
0 to 600), rendered as Database__StartupWaitSeconds on the backend and the migration Job. backend.extraEnv cannot
override it. A start that runs out of the wait exits with code 75 and does not count toward safe mode.
Starting and stopping the backend
The backend bounds its own start with Hosting__StartupTimeoutSeconds (300; it accepts 30 to 3600). Past it the
process exits with code 75. The Redis wait and the cluster join both run inside that bound. The Kubernetes probe counts
from the container's start and the timeout from the host's, so the probe must also cover what runs before the host
starts: the PostgreSQL wait (up to backend.postgresStartupWaitSeconds plus one connect timeout, about 107 s by
default), and with the migration Job a few seconds more. The enabled startupProbe (10 s plus 41 x 10 s, about 420 s)
covers that and the 300 s together, so the kubelet and the process agree on when a start has failed. A backend that
migrates on start can wait up to 2 minutes for the migration lock as well, so raise the probe for it. Raising only one
of the two leaves the lower in force. Set the timeout with backend.extraEnv.
backend.shutdown holds the two deadlines that bound a stopping replica:
| Value | Default | Meaning |
|---|---|---|
timeoutSeconds |
199 |
Reaches the backend as Hosting__ShutdownTimeoutSeconds (it accepts 5 to 600). One budget for the whole stop |
gracePeriodSeconds |
214 |
The pod's terminationGracePeriodSeconds (15 to 3600). The kubelet kills what is left when it runs out |
preStopSleepSeconds |
5 |
A native preStop sleep before anything else (0 to 60; 0 renders no preStop) |
The timeout is one budget, not one per service. The host stops its hosted services one after another under it, so what the earlier ones spend is gone. The services that spend it include the trigger-run dispatcher draining its workers, plugin shutdown stopping every running instance in turn, the blocked-egress writer draining its buffer, and the workflow library's durable-sleep waker saving the runs it resumed. Several reach third-party code, so size the window against the plugins and triggers you actually run.
A service that honours the shutdown token is cut off when the budget runs out, but stopping and disposing a trigger
plugin does not, and a unit stop can run past its own budget. The stop can therefore outlast timeoutSeconds, and the
grace period is what bounds it. A save that begins at the host's deadline would otherwise land on the kill.
The preStop sleep gives the gateway time to learn that the endpoint was removed. Endpoint removal and SIGTERM
start together, so without the sleep new requests can reach a pod that has already stopped accepting. The kubelet
counts the sleep inside the grace period.
The render fails unless:
- The three values are whole numbers inside their ranges.
- The grace period less the
preStopsleep exceeds the timeout by at least 10 s. - The grace period exceeds, and the timeout reaches, the cluster library's drain. That drain starts after the
member-request drain (5/16 of
timeoutSeconds, rounded up) and takescluster.stopBudgetSeconds+cluster.proxyReadTimeoutSeconds+ 2 xcluster.renewTimeoutSeconds. With the defaults that is 63 s + 131 s, 194 s in all.
A pod that finishes stopping exits at once, so a longer grace period costs a rollout nothing. backend.extraEnv
renders after these values and wins: a Hosting__ShutdownTimeoutSeconds set there is not checked against the grace
period.
automations.durableSleep.parkWhenAtLeastSeconds (1 to 86400, default 30) makes a wait at least that long park its run
as a database row instead of holding it in memory. Set it on every replica in one rollout, because a replica without
parking support admits fires blind to parked runs. To turn parking off, set the value to null or "" (the chart then
sends an empty value). To do that safely, first set 86400, wait until no parked sleep is left, then set null; see
automation and workflows.
Cluster timings and upgrades
The cluster block carries the cluster library's timings as Cluster__* variables on every replica (seconds in the
values, hh:mm:ss on the wire). The defaults are sized for a Raspberry Pi 4 and work unchanged on faster nodes.
cluster.checkSynchronousReplication (default true) warns in the log and in the replication status section when a
standby's settings do not make a commit wait for it, because an acknowledged write could then be lost on a failover.
The check never changes readiness and needs no extra database role.
cluster.proxyReadTimeoutSeconds (default 120) is the single source of the read timeout. It is sent to the cluster
library and rendered as the /api Ingress proxy-read-timeout. The render fails above 120, the fixed read timeout of
the frontend nginx and the Compose balancer, and when ingress.annotations sets a proxy-read-timeout below it.
cluster.fullStopUpgrade (default false) controls how a release rolls. Off, the backend Deployment uses
strategy: RollingUpdate with maxSurge: 0 and maxUnavailable: 1 (a clustered backend only, a single replica
always renders Recreate), and the backend StatefulSet (persistence.plugins.mode: perReplica) uses
updateStrategy: RollingUpdate. A release inside the running build's window then rolls replica by replica with no
full stop, see
Upgrading. The controller
replaces the next StatefulSet pod only after the new one is ready, and readiness is the cluster library's serving
state. cluster.rollingUpdate.partition (default 0) becomes the StatefulSet's rollingUpdate.partition, so only
pods with an ordinal at or above it take the new template. It is ignored under the full stop.
podDisruptionBudget renders by default above one replica.
Set cluster.fullStopUpgrade: true for a release that needs the full stop, or a jump from a build below the new
build's window. The Deployment then renders Recreate and the StatefulSet OnDelete. Under OnDelete, a new chart or
image changes no pod, and neither does kubectl rollout restart: a pod takes the new template whenever it is
re-created. The full stop scales the StatefulSet to 0, waits until every backend pod has terminated, applies the chart,
then scales back (Upgrading):
kubectl scale statefulset/<fullname>-backend --replicas=0
kubectl wait --for=delete pod -l app.kubernetes.io/instance=<release>,app.kubernetes.io/component=backend --timeout=240s
# upgrade the chart or sync, then restore the replica count
kubectl scale statefulset/<fullname>-backend --replicas=<replicaCount>
With the migration Job on (databaseMigration.enabled, the default), the Job is a hook that runs before any pod is
replaced. It meets the old pods and is refused (exit 76) unless they are already gone or inside its window. Wait
LeaseTtl (30 s) after they are gone, and repeat the upgrade if a lease still refused the Job. With the Job off
(databaseMigration.enabled: false, databaseMigration.runMigrationsOnStartup: true), apply the chart first and then
delete every backend pod at once: a new pod refuses to start while an old one still drains, and is restarted until it
has gone.
Flipping cluster.fullStopUpgrade needs no manual patch, under a client-side apply (Helm 3) or a server-side apply
(Argo CD with ServerSideApply=true, Helm 4). A GitOps controller has to compare the chart with the live StatefulSet
on the API server, because the API server may drop a field the chart renders. In Argo CD that is server-side diff: the
annotation argocd.argoproj.io/compare-options: ServerSideDiff=true on the Application (Argo CD 2.10 and later), or
ServerSideApply=true on Argo CD 3.6 and later. Below 3.6, ServerSideApply=true alone compares locally, and the
StatefulSet stays OutOfSync on an API server that drops maxUnavailable.
One server-side apply is refused with only allowed for updateStrategy 'RollingUpdate': the first one that turns the
full stop on over a StatefulSet whose rollingUpdate fields no server-side apply of this chart owns yet. Sync once
server-side with the full stop off, then turn it on in a later sync. Where the release itself needs the full stop,
pause automated sync first, as
Upgrading shows for an Application and an
ApplicationSet, and run once before the sync:
kubectl patch statefulset/<fullname>-backend --type=json \
-p '[{"op":"remove","path":"/spec/updateStrategy/rollingUpdate"}]'
A deployment whose values set cluster.fullStopUpgrade: true keeps the full stop until it sets false.
Workload gateway address
Adapter pods the Kubernetes provider deploys connect back to the backend at
ws://<backend Service>.<namespace>.svc.cluster.local, unless the Gateway URL under Integrations, Workloads says
otherwise. The chart passes its own backend Service name (<fullname>-backend, so custom-backend under
fullnameOverride: custom) as Workloads__GatewayEndpoint__BackendServiceName. The namespace is the backend pod's
own. Any release name works without setting the Gateway URL by hand.
The derived URL carries no port. If you change service.backend.port from 80, set the Gateway URL by hand, with the
port in it. backend.extraEnv renders after the chart's value and can override the Service name.
Default StorageClass for workloads
On a cluster with no default StorageClass, a workload volume (the demo simulator's included) stays Pending unless
the workload settings name a class. workloads.defaultStorageClassName seeds that setting (Integrations, Workloads,
default StorageClass) on a fresh install: the backend writes it once, and only while the workload settings have never
been saved. From the first save on, the UI is the source of truth, and a later change to this value has no effect.
While Managed:WorkloadProviders is declared the value is ignored and reported as configuration.invalid; set
DefaultStorageClassName in the Kubernetes entry instead (see Workload settings).
The chart's default namespaced Role cannot read StorageClasses. Demo content therefore needs a class named here or in
the UI, or workloads.kubernetes.clusterRole.enabled: true so Reeve can check that the cluster has a default class.
workloads:
defaultStorageClassName: longhorn
Observation replication
workloads.observationReplication configures the budgets and reader timing of the observation streams. The chart
renders each knob as Workloads__ObservationReplication__<Key> on the backend, and a knob set to null is not
rendered. Every number is a default you may override, not a fixed limit. The defaults match the backend's.
| Value | Default | Meaning |
|---|---|---|
enabled |
null |
Follows Coordination__Clustered. Set true or false to override, including on one replica |
perStreamBudgetBytes |
8388608 (8 MiB) |
Most history one adapter stream keeps |
totalBudgetBytes |
null |
All streams together. null derives it from Redis maxmemory (capped at 64 MiB) |
totalBudgetPercentOfMaxmemory |
20 |
Share of Redis maxmemory the derived total may use |
handoverGraceMilliseconds |
5000 |
How long a new owner waits for the previous session to close |
pollIntervalMilliseconds |
250 |
How often a non-owning replica polls Redis (50 to 10000) |
readerMode |
null (Adaptive) |
Polling, Interrupt or Adaptive, spelled exactly like that. How a non-owning replica decides when to read |
idlePollIntervalMilliseconds |
5000 |
Full-round interval of Interrupt, and of Adaptive while quiet (250 to 30000) |
checkpointIntervalSeconds |
60 |
How often the owner writes a checkpoint |
dormantAfterHours |
24 |
How long a closed stream is kept before the sweep removes it |
redisMaxmemoryBytes |
null |
Redis maxmemory in bytes, from which the derived total is computed |
With redis.builtin.enabled, the chart passes redis.builtin.maxmemory through as RedisMaxmemoryBytes, converted
to bytes the way Redis reads it (k, m and g are powers of 1000, kb, mb and gb powers of 1024, so the
default 256mb is 268435456). A value Redis would reject fails the render. A size string reaches redis.conf as
written, and a bare number reaches it as a whole number of bytes, so Redis and the backend always get the same size.
The render also refuses a knob outside the range the backend accepts at start-up, instead of leaving the backend to
crash-loop. A built-in maxmemory above 1 TiB is refused, and so is an idlePollIntervalMilliseconds below
pollIntervalMilliseconds, but only when readerMode is Interrupt or Adaptive (the backend never compares the
two while Polling). For an external Redis the chart cannot see the server's configuration and leaves
redisMaxmemoryBytes unset, so the derived total falls back to its ceiling. Set redisMaxmemoryBytes to that Redis's
maxmemory. An explicit redisMaxmemoryBytes always wins. Options the chart does not surface can be set through
backend.extraEnv.
Plugin roll target
On a clustered host the chart emits Workloads__PluginRoll__FleetSize from replicaCount. A roll needs a fixed fleet
size, so the chart supports no autoscaling. Membership below the target
delays the roll, while every current census member is processed. Set workloads.pluginRoll.fleetSize when the fleet
is not replicaCount.
MQTT integrations
The chart deploys no MQTT broker and the backend needs none. An MQTT integration (Zigbee2MQTT, Home Assistant
discovery, Frigate events and the like) connects to the broker named in its plugin instance's configuration. Any
MQTT 3.1.1 or 5 broker works. With networkPolicy.enabled, plugin egress reaches a broker on TCP 1883 or 8883 inside
networkPolicy.egressExternalServicesCidr. A broker on another port, or one inside the cluster on a CNI whose
ipBlock rules do not match pod traffic (Cilium, for example), needs a NetworkPolicy of your own that allows the
backend pods to reach it.
Ingress
The chart renders two Ingress objects. The first carries / and /api with proxy-next-upstream: error http_503,
proxy-next-upstream-tries: "3" and a proxy-read-timeout of cluster.proxyReadTimeoutSeconds. The controller's
default also retries on a timeout, which breaks the cluster library's rule, and ingress-nginx never retries a POST
or PATCH. The second object, <fullname>-long, carries /hubs and /ws/workloads with the same retry settings and
a 3600 s read and send timeout. A key set in ingress.annotations wins on both objects.
Paths whose prefix is /api, /hubs or /ws/workloads go to the backend Service, and every other path goes to the
frontend. /ws/workloads/{instanceId} is the raw-WebSocket workload gateway: sidecars connect to
wss://<host>/ws/workloads/{instanceId} on the same origin as the API. nginx-ingress performs the WebSocket upgrade
without extra configuration, and the gateway pings every 25 s or so, far inside the 3600 s read timeout.
A request that reaches the frontend Service directly is proxied by the frontend's nginx to the backend Service by its
fully qualified name, <fullname>-backend.<namespace>.svc.<clusterDomain>, re-resolved every 5 seconds. Set
clusterDomain (default cluster.local) when the cluster's DNS domain differs.
Client addresses behind the ingress
forwardedHeaders:
enabled: true
trustedNetworks: [] # empty: loopback, 10/8, 172.16/12, 192.168/16, fc00::/7
forwardLimit: 1 # count the entry the ingress controller appended
forwardedForHeader: X-Forwarded-For # or a CDN's single-value header such as CF-Connecting-IP
The ingress sends /api straight to the backend, so every request's peer is the ingress controller. The chart
therefore turns forwarded headers on by default, and the backend counts the client named in X-Forwarded-For. That
keeps the per-address rate limits and the failed-sign-in lock from counting every user as one address, where one
attacker's wrong passwords would block sign-in for everyone.
The consequence is that anything on a trusted network that reaches the backend without the ingress can name the
address it is counted as. If the backend is reachable other than through your ingress (a LoadBalancer or NodePort
backend Service, pods of other tenants on the same cluster network), set forwardedHeaders.trustedNetworks to the
ingress controller's pod CIDR or addresses. The list replaces the default. enabled: false turns the feature off.
The backend counts the X-Forwarded-For entry forwardLimit hops from the right, stopping early at an untrusted hop.
With the default of 1 that is the address the ingress controller saw, which is the client only when the ingress
controller is the first hop to see it. So:
- Add one to
forwardLimitfor each HTTP proxy in front of the ingress, and make each one trusted. - A TCP (layer 4) proxy or load balancer in front of the ingress hides the client unless it speaks PROXY protocol to
the ingress controller. So does a cloud load balancer with
externalTrafficPolicy: Cluster, which replaces the client with a node's address. Every client is then counted as that one address with no warning in the log, and a few wrong passwords from anyone block every password sign-in. - Behind a CDN, set
forwardLimitto reach the entry the CDN's edge appended, and let only the CDN's published address ranges reach the origin. Whatever reaches it directly writes that entry and chooses its own address. - Behind a CDN that sets a single-value client header, you can read that header instead:
forwardedForHeader: CF-Connecting-IPwithforwardLimit: 1. The same rules hold: the hop in front of the backend must be trusted, and the origin must accept only the CDN's ranges, or anyone reaching it directly forges the header.X-Forwarded-Foris then not read at all, so a request that reached the origin without the CDN and without the header is counted as the backend's own peer (the ingress controller).
To check, read the blocked address in the auth.login.blocked audit entry or in the backend's "Password sign-ins from
{address} are blocked" log line. If it is a proxy or a node, a hop is uncounted, untrusted or hiding the client. See
Configuration for the
backend options.
Secrets
The chart validates secrets at render time (helm template, helm install, helm upgrade). The render fails when a
required secret is missing, empty or a known placeholder, so a release cannot go out with an insecure default.
The JWT signing key, the bootstrap administrator password, the OIDC state signing key and the database password each take exactly one source:
| Source | Meaning |
|---|---|
value |
The secret inline. Use at least 32 random bytes for the signing keys, for example openssl rand -base64 64 |
existingSecret |
A Secret you created, as { name: ..., key: ... } |
externalSecret |
An External Secrets Operator resource: storeRef and remoteRef, for example {storeRef: {name: vault, kind: ClusterSecretStore}, remoteRef: {key: reeve/jwt-signing-key, property: value}} |
file |
A path already mounted into the backend container through backend.extraVolumes and backend.extraVolumeMounts, such as a CSI secret volume. Reeve waits for the file at start and reloads it when it changes |
ref |
A reference to a secret provider, see Secrets from a provider |
secrets:
jwtSigningKey:
externalSecret:
storeRef: { name: vault-backend, kind: ClusterSecretStore }
remoteRef: { key: reeve/jwt-signing-key, property: value }
database:
password:
existingSecret: { name: reeve-db-password, key: password }
Secret-backed sources are mounted read-only and passed to Reeve as <NAME>_FILE. The chart never puts these values in
container environment variables. Two configured sources for one setting fail the render.
The auxiliary secrets take the same four non-reference sources (value, existingSecret, externalSecret, file):
adapters.matterBridge.workloadTokenSource, adapters.matterBridge.dacKeySource,
cameras.mediaPlane.auth.passwordSource and cameras.mediaPlane.ingest.secretSource. A file source for the Matter
bridge or the media plane must also be mounted into that pod through its extraVolumes and extraVolumeMounts, and
the backend needs it too where it reads the same value (backend.extraVolumes, backend.extraVolumeMounts).
- The Matter bridge and the backend receive the workload token as
REEVE_WORKLOAD_TOKEN_FILEandMatterBridge__WorkloadToken_FILE. - The bridge's DAC key is delivered as
MATTER_DAC_KEY_FILE.dacKeySource.filenames a path already mounted into the sidecar. - MediaMTX's password is read from a mounted file by an init container that writes the runtime configuration into an
emptyDir. It is never set in the MediaMTX environment. - The media plane's ingest secret is read only by the backend. MediaMTX receives a per-camera credential derived from it.
ref is refused for redis.external.password, metrics.bearerToken, the Matter bridge workload token and DAC key,
and the media plane's password and ingest secret. The Matter bridge and MediaMTX do not resolve provider references,
and the other values have no consumer that does. With the ServiceMonitor enabled, Prometheus reads the metrics bearer
token from a Kubernetes Secret, so the chart rejects a file source there.
Placeholders the chart rejects
An inline secrets.jwtSigningKey.value is rejected when it is one of changeme, your-secret-here,
your-jwt-signing-key, your-jwt-signing-key-min-32-chars, your-secure-password, placeholder, replace-me,
todo, <changeme> or <placeholder>, compared case-insensitively. An inline secrets.bootstrapAdminPassword.value
is rejected for the same strings except the two your-jwt-signing-key ones, and also for admin, admin123,
admin123!, password, devpassword and devpassword123. An inline database.password.value is rejected for changeme,
your-secret-here, your-secure-password, placeholder, replace-me, todo, <changeme> and <placeholder>. The
other secrets are not compared with these lists, so generate every value.
To check that the gate is active, render with a placeholder. The command must exit non-zero with
SECURITY: secrets.jwtSigningKey.value is set to a known placeholder value.:
helm template reeve deploy/helm/reeve \
--values deploy/helm/reeve/values.example.yaml \
--set secrets.jwtSigningKey.existingSecret= \
--set secrets.jwtSigningKey.value=CHANGEME
Data Protection key-encryption keys
dataProtection.kek and dataProtection.kekPrevious take the same source shapes, limited to an operator-created
existingSecret, a mounted file or a provider ref. The chart supplies them to the backend and to the pre-upgrade
migration Job. It rejects value and externalSecret there, because those resources are created during the normal
sync, after the migration hook has to start.
dataProtection:
kek:
ref: vault:reeve/dataprotection#kek
kekPrevious:
existingSecret: reeve-dataprotection-kek-previous
To rotate a provider-backed key, write a new provider version and restart Reeve with the same unpinned reference. Keep older versions until no key-ring row refers to them.
Secrets from a provider
The database password, the JWT signing key, the bootstrap administrator password, the OIDC state signing key and the
optional plugin index token accept provider references. Configure the providers with secretProviders. The chart
mounts authentication material as files and passes the index token through backend.extraEnv:
secretProviders:
- id: vault
type: vault
parameters:
address: https://bao.example.net:8200
kvMount: kv
auth:
method: token
token:
existingSecret: { name: vault-token, key: token }
allowedPrefixes: [reeve/]
secrets:
jwtSigningKey:
ref: vault:reeve/jwt#signing_key
bootstrapAdminPassword:
ref: vault:reeve/bootstrap#password
oidcStateSigningKey:
ref: vault:reeve/oidc-state#signing_key
database:
password:
ref: vault:reeve/db#password
Plugins:OfficialIndexToken is an optional GitHub token for the official plugin index. It lifts GitHub's anonymous
rate limit, also goes with requests to the plugin repositories and image registries the index lists, and has no chart value. Supply it through backend.extraEnv as
Plugins__OfficialIndexToken_REF or Plugins__OfficialIndexToken_FILE, for example
Plugins__OfficialIndexToken_REF=vault:plugins/index#token.
Mount provider authentication files with backend.extraVolumes and backend.extraVolumeMounts. The backend resolves
references before it starts listening. It retries transient outages for at most
backend.secretReferenceTimeoutSeconds (240 s by default) and logs the retries to the console logger before the host
logging pipeline starts. When the timeout expires the process exits, and Kubernetes restarts the pod into
CrashLoopBackOff until the provider returns. Invalid references, access denials and TLS validation failures stop at
once with a diagnostic naming the setting, the provider and the failure kind. When any backend or migration Job
environment name ending in _REF is configured, backend.extraEnv included, the render requires that
backend.secretReferenceTimeoutSeconds plus backend.postgresStartupWaitSeconds plus a 60 s margin fits into the
enabled startupProbe.
External Secrets
An externalSecret source ({storeRef: {name, kind}, remoteRef: {key, property}}) renders an
External Secrets Operator ExternalSecret for that setting. The operator syncs it every
externalSecrets.refreshInterval (default 1h) into a Secret that the chart wires to the setting. The optional
targetName names that Secret. The operator must be installed.
TLS trust for a private CA
tls:
trustedCaCertificates: "" # one or more inline PEM certificates
trustedCaCertificatesFrom: # or a ConfigMap key; set only one of the two
configMap: ""
key: ""
The list is rendered as Tls__TrustedCaCertificates on the backend. After the system roots, the backend trusts it for
its own outbound TLS, and a workload that declares bootstrap:trustedCaCertificates receives it as
REEVE_TRUSTED_CA_CERTIFICATES. A block that does not parse stops the backend at start. The chart fails to render
when both forms are set.
An inline change rolls a backend Deployment by itself, and a StatefulSet unless cluster.fullStopUpgrade is on. A
ConfigMap change rolls neither, so restart the backend workload: kubectl rollout restart deployment/<fullname>-backend, or with persistence.plugins.mode=perReplica delete the backend pods one at a time.
Either way, the change never reaches a running workload: redeploy each workload that should see the new list (on the
Manual provider, render the artifacts again and deploy them). Npgsql, Redis, Kubernetes, Docker and the Loki sink are
not covered; see
Network egress.
OIDC
The chart has no oidc values for providers. Identity providers (authority, client ID, scopes, role claim and client
secret) are configured through the administration UI or API and stored in the database. A deployment can instead
declare them as the Managed:Oidc
managed configuration through managed.files or
managed.existingConfigMap. A client secret is then the ClientSecret, ClientSecret_FILE or ClientSecret_REF of
a declared provider, and a file or reference is resolved when the backend starts.
authentication.oidc.callbackBaseUrl is the public address of the frontend (the callback is built from it), and
authentication.oidc.allowInsecureMetadata and allowPrivateMetadata relax the checks on provider metadata
addresses. Both default to false.
Workload settings
The chart has no workload-settings values. The deployment declares the provider entries and the selection as the
Managed:WorkloadProviders and Managed:WorkloadOrchestrator
managed configuration through managed.files or
managed.existingConfigMap. They apply only when every backend replica declares the same content. Without these
sections the settings stay the administration panel's.
managed:
files:
workloads.json:
Managed:
WorkloadProviders:
Kubernetes:
Namespace: reeve-workloads
WorkloadOrchestrator:
Provider: kubernetes
A kubeconfig or registry token is given as Kubeconfig_FILE or Token_FILE, with the file mounted through
backend.extraVolumes and backend.extraVolumeMounts, or as Kubeconfig_REF or Token_REF for a secret provider. A
change to the ConfigMap does not roll the pods; see Updating.
Enabling the Kubernetes workload provider with workloads.kubernetes.enabled renders a Role and RoleBinding for the
backend's ServiceAccount. That Role can read and delete every Secret in its namespace, because RBAC cannot scope
create and list to names. The namespace is the release namespace unless workloads.kubernetes.namespace names another.
If you share the release namespace with other applications, name a dedicated namespace there and set the same
namespace under Integrations, Workloads: the chart value moves only the RBAC, and if the two disagree every API call
returns 403. The workload pods are not covered by this chart's NetworkPolicy. In a default-deny cluster, give each one
an egress rule to the backend Service.
Pod security
The pods run at the Pod Security Standards restricted level by default:
podSecurityContext:
runAsNonRoot: true
runAsUser: 65532
fsGroup: 65532
securityContext:
runAsNonRoot: true
runAsUser: 65532
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
The root filesystem is read-only. The chart mounts emptyDir volumes at the paths that must be writable: /tmp on
the backend (ASP.NET Core temporary files and the WebAssembly plugin compile cache, XDG_CACHE_HOME=/tmp/.cache), and
/tmp, /var/cache/nginx (the cache and the server configuration the image renders at start) and /var/run (the PID
file) on the frontend.
Network policy
networkPolicy:
enabled: false
ingressNamespaceSelector:
matchLabels:
name: ingress-nginx
ingressPodSelector:
matchLabels:
app.kubernetes.io/name: ingress-nginx
egressAllowOidc: false
egressExternalServicesCidr: "0.0.0.0/0"
egressSecretProviders:
- cidr: 192.0.2.10/32
port: 8200
With networkPolicy.enabled, the backend and migration pods accept ingress only from pods matching
ingressPodSelector in namespaces matching ingressNamespaceSelector (both must match). Their egress is limited to:
- PostgreSQL (
postgresql.external.port): anipBlockonegressExternalServicesCidr(a CloudNativePG cluster included). - Redis: the built-in Redis pod, or an
ipBlockfor an external Redis. - An operator-run MQTT broker (TCP 1883 and 8883): an
ipBlockonegressExternalServicesCidr. - DNS (53, TCP and UDP) in the
kube-systemnamespace. If lookups fail, check that your DNS pods run there. - The error-reporting backend's port, when
errorReporting.backend.enabled. - An external OIDC authority (TCP 443), when
egressAllowOidc: true. - The Kubernetes API server (TCP 443 and 6443), when
workloads.kubernetes.enabled. A remote API server on another port needs a rule of your own. - The media plane's control, signalling and remux ports, when it is enabled.
- Secret providers at literal IP addresses (the port from the address, default 443 for HTTPS and 80 for HTTP).
Providers addressed by DNS name need an entry in
egressSecretProviders.
A NetworkPolicy cannot select a destination by DNS name. Add a CIDR and port for each provider host name that resolves
outside the cluster. The backend and the migration pods share the rule, and Helm prints a reminder whenever providers
and NetworkPolicy are both enabled, because DNS changes can make an old CIDR stale. The provider rules accept ipBlock
CIDRs only, so an in-cluster Service ClusterIP cannot be targeted. A pod-CIDR rule may work with CNIs that apply
ipBlock to pod traffic.
The default egressExternalServicesCidr of 0.0.0.0/0 allows any IP, including private ones. External services on
corporate private networks must be reachable, so this is the default. Restrict it to a subnet (for example
203.0.113.0/24) if your network isolates external services some other way.
The built-in Redis gets its own policy, <fullname>-redis: only the backend pods may connect to it, on its port. A
host-network pod on the Redis node is not covered by a pod selector, so also set redis.builtin.passwordSource. Anything
else you point at the Redis needs a NetworkPolicy of your own. With the media plane enabled, it gets an ingress-only
policy as well.
The cluster needs a CNI that enforces NetworkPolicy (Cilium and Calico do, Flannel does not). External OIDC needs the
cluster to reach the provider's address on port 443 through an ipBlock.
Scaling
replicaCount: 3
The chart renders no HorizontalPodAutoscaler: a plugin roll waits for a fixed fleet size, so you scale by changing
replicaCount. coordination.clustered is on above one replica; set it only to override that.
workloads.pluginRoll.fleetSize defaults to replicaCount; set it if the fleet is a different size. Rate-limit
counters live in Redis, so a per-user limit holds across replicas with no setting.
replicaCount controls the backend and is also the frontend default. Set frontend.replicaCount to scale the
stateless frontend independently. Frontend pods have a preferred hostname anti-affinity by default: frontend.affinity
replaces it, and {} disables it. The top-level affinity applies to backend pods only.
podDisruptionBudget:
enabled: null # null: rendered when replicaCount is above 1; true or false overrides
minAvailable: 1
The budget limits evictions such as a node drain. Scaling the StatefulSet to 0 and deleting pods, which is how the full stop works, are not evictions and ignore it.
Default resources:
resources:
backend:
limits: { cpu: 1000m, memory: 1Gi }
requests: { cpu: 250m, memory: 512Mi }
frontend:
limits: { cpu: 500m, memory: 256Mi }
requests: { cpu: 100m, memory: 128Mi }
Plugin storage across replicas
Built-in plugins ship in the image. Only installed (marketplace) plugins need a writable volume, and each replica owns
its plugin root. With persistence.plugins.enabled: true, choose a mode:
persistence.plugins.mode: perReplicarenders the backend as a StatefulSet in which every replica gets its ownReadWriteOncePVC (size,storageClassName). Installed plugins survive a restart. More than one replica needscoordination.clustered=true.persistence.plugins.mode: ephemeralgives each replica its ownemptyDir. On boot the backend restores the installed plugin set recorded in the database from the cluster's copy in object storage, and from each plugin's source for any artifact that copy cannot supply. An unreachable source never blocks the boot: the plugin is restored on the next install broadcast or restart.
Database migration
A Kubernetes Job runs the database migration as a pre-install and pre-upgrade hook, before the backend starts:
databaseMigration:
enabled: true
serviceAccountName: ""
createServiceAccount: true
backoffLimit: 3
restartPolicy: Never
runMigrationsOnStartup: false
| Value | Meaning |
|---|---|
enabled |
Run the migration Job |
serviceAccountName |
An operator-created ServiceAccount for the Job. Empty uses the chart-created hook account, <fullname>-db-migrate |
createServiceAccount |
Create that hook account when serviceAccountName is empty. Set it to false only when you pre-create <fullname>-db-migrate |
backoffLimit |
Retries of the Job |
runMigrationsOnStartup |
Also migrate during pod start. With false, only the Job migrates. With enabled: false, set it to true, or nothing migrates and the serving replica exits with code 75 |
The Job runs --migrate-only, which reads the database password, the bootstrap administrator password and the Data
Protection key-encryption keys when they are set. It mounts neither the JWT nor the
OIDC state key, but the render still requires secrets.oidcStateSigningKey to have a source. The backend keeps its
regular release ServiceAccount, and the Job uses the separate hook account. For Vault Kubernetes auth, bind the role to
system:serviceaccount:<namespace>:<fullname> and system:serviceaccount:<namespace>:<fullname>-db-migrate. For
OpenBao JWT auth, use type: jwt, user_claim: sub, bound_claims.sub containing both subjects, and
bound_audiences matching the configured audience. With a shared identity, set
databaseMigration.serviceAccountName to the name from serviceAccount.name. The hook account is needed only while
the Job runs.
Helm removes the generated migration Secret and ExternalSecret hook resources after a successful run. A failed upgrade
can leave them until the next upgrade's before-hook-creation cleanup. Argo CD keeps these hook resources and their
owned ExternalSecret targets until the next sync, because deleting a PreSync Secret on its own success could race the
migration Job. The migration ServiceAccount also remains until the next install or upgrade. After a failed or
uninstalled release, remove the leftover <fullname>-db-migrate ServiceAccount, the *-db-migrate-database and
*-db-migrate-bootstrap Secrets and the *-db-migrate-*-source ExternalSecrets, once you have confirmed that no
migration Job uses them.
Health checks
- The liveness probe (
/health/live) checks that the pod is alive. - The readiness probe (
/health/ready) covers the primary database and the cluster library's check, which passes while the replica serves (it has joined and applied what was acknowledged). The synchronous-replication check only warns and never takes a pod out. A replica that is loading, fenced or running in safe mode is out of rotation, and a lone safe-mode replica leaves the Service without an endpoint, see Troubleshooting. Redis and the read replica never take a pod out.