Reeve Docs

Docs / Operations

Deployment

Reeve runs on Docker Compose on a single machine, or on Kubernetes through its Helm chart. Both read the same settings; Configuration names every one of them, and Requirements lists what the host must provide.

Reeve is published as three container images and one Helm chart:

Artifact Location
Backend image ghcr.io/reeve-iot/reeve-backend
Frontend image ghcr.io/reeve-iot/reeve-frontend
Matter bridge image ghcr.io/reeve-iot/reeve-matter-bridge
Helm chart oci://ghcr.io/reeve-iot/charts/reeve

A release is tagged with its full version, its minor and major (1.0.0, 1.0, 1) and latest. The chart version equals the application version, and the chart's default image tags are the images of that release, so pinning the chart version pins the images. Pin a full version in production, never latest.

What a minimal working install needs

These must be set before the backend starts for the first time. The backend checks the signing key for presence and a length of at least 32 characters, and the initial password for presence only, so choose strong values.

Must be set Why
Authentication:Jwt:SigningKey Signs the internal access-token envelope. At least 32 characters; openssl rand -base64 64 gives a good one. Identical on every replica
BootstrapAdmin:InitialPassword The first administrator. Flagged must-change, so the first sign-in issues a password-change token rather than a session
The database connection and its password The only persistent store. PostgreSQL 18 or newer with TimescaleDB, with transaction_timeout and statement_timeout at 0 for the role, the database and the session (see below)
REPLICA_ID (or Workflow:Engine:ReplicaId) Names this process in the cluster library's membership, recovery and the workflow store. Required on every start, a single replica and --migrate-only included; a host without one exits before it is built. The chart sets it from the pod name and the migration Job uses reeve-migrate; Compose sets it already
An MQTT broker, if an integration needs one Reeve ships none. Run your own (any MQTT 3.1.1 or 5 broker) and name it in each MQTT plugin instance's settings. Sidecar workloads need none and must not be given broker credentials

The cluster library checks every database connection it opens and refuses a non-zero transaction_timeout or statement_timeout with TransactionTimeoutNotZero or StatementTimeoutNotZero. That fails the boot migration, and a replica that does not migrate never joins. A server-level value counts too, and the application role is held to statement_timeout as well: its fenced and claim transactions refuse at begin.

Everything else has a working default, but Redis must be reachable on every deployment, one replica included: the backend opens the connection eagerly and every authenticated request reads its session from it. The chart holds the backend pod in an init container until Redis answers PING, and Compose starts the backend after Redis's healthcheck passes. After a host reboot the Docker daemon restarts containers in no particular order, so the backend also retries Redis for Redis:StartupWaitSeconds (90 s by default) before it counts a failed boot, and PostgreSQL for Database:StartupWaitSeconds (90 s by default) before it exits without counting one. Once the database has answered, an error during start, such as losing the connection while the migration advisory lock is held, ends the process; the container restart policy or the pod brings it back.

Above one replica Redis is also the coordination transport; see Running multiple replicas. Tracing is off until a collector endpoint is configured. The Kubernetes workload provider, the Matter bridge, the camera media plane, external secret providers and GitOps annotations are all off.

Leave the frontend's API base address empty so the single-page application calls the API on its own origin.

The frontend container's nginx proxies /api/ and /hubs/ to REEVE_BACKEND_UPSTREAM (host:port, backend:8080 by default) and re-resolves that name every 5 seconds through the nameservers in the container's own /etc/resolv.conf, so a backend recreated on another address is reached again without restarting the frontend. The name is looked up through DNS only, never /etc/hosts: a backend known only from extra_hosts, --add-host, Kubernetes hostAliases or a --link on Docker's default bridge must be given as an address. nginx's resolver applies no search domains, so the name must be fully qualified unless the nameserver answers the short name, as Docker's embedded DNS and Podman's aardvark-dns do; the chart sets the backend Service's full name. To use your own nginx configuration, see the frontend container.

Docker Compose

The Compose stack runs the application and its dependencies and nothing else: no identity provider, no TLS terminator, no metrics stack, no tracing backend. Federate to your own provider, terminate TLS at your own edge, and point the trace endpoint at any collector. Optional services sit behind profiles.

Quick start

Compose builds the backend and frontend images from a checkout of the repository, so the first start takes a few minutes. From a fresh checkout:

git clone https://github.com/reeve-iot/reeve.git
cd reeve/deploy
cp .env.example .env
./scripts/bootstrap-secrets.sh
docker compose up -d

bootstrap-secrets.sh creates the missing files under deploy/secrets/, in a directory only its owner can enter, and never replaces an existing file. The stack brings up TimescaleDB, Redis, the backend and the frontend on http://localhost:5173, which proxies the API to the backend. The Swagger UI is served only by a backend in the Development environment, not by this stack. The default services bind their ports to loopback. The optional media-plane profile publishes port 8189 on all interfaces, and the matter-bridge profile runs on the host network, so its ports (5540, 5541 and 8090) are on every interface. Set FRONTEND_BIND in .env to publish the frontend on another interface for your reverse proxy. Publish the frontend, never the backend: embedded pages need one shared origin. Behind that proxy set FORWARDEDHEADERS__FORWARDLIMIT=2 in .env (3 with the multi-replica overlay), or the per-address sign-in lock counts every client as the proxy, and narrow TRUST_SUBNETS to the frontend's network and your proxy; see forwarded headers. For passkeys on your host name, set AUTHENTICATION__WEBAUTHN__RPID and AUTHENTICATION__WEBAUTHN__ORIGIN in .env as well; see Authentication. The loopback ports (POSTGRES_PORT, REDIS_PORT, BACKEND_PORT, FRONTEND_PORT) can be moved in .env when another stack holds them, and the containers take Compose's own names, so a second stack under another project name (docker compose -p <name>) runs beside this one.

For a seeded demo installation (rooms, virtual devices, scenes and workflows on first start) copy demo.env.example to .env instead, and add the Docker workloads overlay: the demo's simulator runs as a Docker workload.

./scripts/smoke-quickstart.sh boots the default stack as its own Compose project, reeve-smoke, and checks the URLs an operator reaches after the first docker compose up -d, exiting non-zero if a service does not become healthy or any check fails. On exit it removes that project with docker compose down -v, deleting its volumes, unless --keep is passed. It never touches a stack started with a plain docker compose up -d, but that stack's ports must be free while it runs.

Request Expected
GET http://localhost:5173 200 with the Reeve page title
GET http://localhost:5173/healthz 200 (nginx liveness)
GET http://localhost:5173/api/devices 401: the proxy reaches the backend, which requires sign-in
GET http://localhost:5173/settings/tokens 200 with the application shell (deep links resolve)

It uses deploy/.env, creating it from demo.env.example when missing; --no-build skips the image build and --keep leaves the stack running.

Two traps on Compose

  • Point the database data directory at a subdirectory of the mount, not at the mount root. The PostgreSQL 18 image refuses to initialise at the root and exits non-zero, while a long-lived volume created under another layout keeps working, so the failure appears only on a from-nothing boot. The shipped file sets PGDATA=/var/lib/postgresql/data/pgdata.
  • Raise max_connections together with the pools. The shipped database runs with max_connections=100. Database:Pool:MaxSize and Database:ObjectStoragePool:MaxSize both draw on that one budget; raise all three together.

The Docker socket

The default file does not give the backend the Docker socket, and with the provider left on Automatic, workloads run on the Manual provider: Reeve renders their artifacts and you run them. To let the Docker workload provider run plugin sidecars on this machine, add the docker-compose.docker-workloads.yml overlay. It mounts /var/run/docker.sock, adds the socket's group to the backend and joins the backend to the reeve-workloads network. The socket gives the backend control of the host daemon, which is root on the host, and every native plugin and workflow script runs in that process; see the Docker socket for what that means and the hardening options.

echo "DOCKER_GID=$(stat -c '%g' /var/run/docker.sock)" >> .env
echo "COMPOSE_FILE=docker-compose.yml:docker-compose.docker-workloads.yml" >> .env
docker compose up -d
  • DOCKER_GID is the group that owns the socket on the host. The image does not run as root, and the overlay refuses to start without the variable.
  • COMPOSE_FILE in .env makes every later docker compose command in deploy/ include the overlay. A single docker compose -f docker-compose.yml up -d without it recreates the backend without the socket, and Docker workloads stop being managed until the overlay is back. Passing both files with -f on every command works too. With either, Compose no longer merges a docker-compose.override.yml on its own; list it too if you keep one.
  • The backend reaches workloads by container name on the reeve-workloads bridge, and workloads reach the backend as reeve-backend, its alias on that bridge. If Compose reports that the network already exists with other properties, remove it once with docker network rm reeve-workloads and start the stack again.
  • One stack per host can use the overlay. The reeve-workloads network has a fixed name, so a second stack with the overlay joins the same network and both backends answer to reeve-backend there.
  • The Docker provider runs on a single backend instance only. Do not combine the overlay with the multi-replica overlay: a clustered backend refuses Docker; see Workload providers.
  • The demo's simulator is itself a Docker workload, so a demo install needs the overlay as well.

Supplying secrets from files

Each secret setting accepts the setting itself or its _FILE counterpart. Compose mounts a Docker secret and passes only its path:

services:
  backend:
    secrets: [jwt_signing_key, bootstrap_admin_password]
    environment:
      Authentication__Jwt__SigningKey_FILE: /run/secrets/jwt_signing_key
      BootstrapAdmin__InitialPassword_FILE: /run/secrets/bootstrap_admin_password
secrets:
  jwt_signing_key: { file: ./secrets/jwt-signing-key }
  bootstrap_admin_password: { file: ./secrets/bootstrap-admin-password }
  • The stack reads deploy/secrets/postgres-password, jwt-signing-key, bootstrap-admin-password and oidc-state-signing-key. The database password file is shared by PostgreSQL and the backend; the backend receives a non-secret connection string plus Database__Password_FILE.
  • bootstrap-secrets.sh keeps deploy/secrets/ at mode 0700 and the files at 0644, so the non-root backend user can read the bind-mounted secrets while other host users cannot enter the directory. It corrects the modes of an existing directory without changing contents. deploy/secrets/ is ignored by git.
  • A file source drops one final line break. If a file is rendered after start, the host waits up to 120 seconds for it (REEVE_SECRET_FILE_TIMEOUT_SECONDS changes the limit).
  • Never set both a value and its _FILE source. scripts/compose-config-check.sh renders every supported file combination and refuses a service that has two sources for one secret.
  • Keep the same files available to every backend in the multi-replica overlay.

Key-ring wrapping with a key-encryption key (KEK) is opt-in. Add the secret to every backend service (including each one in docker-compose.multi.yml) and point the setting at it:

services:
  backend:
    secrets: [dataprotection_kek]
    environment:
      DataProtection__Kek_FILE: /run/secrets/dataprotection_kek
secrets:
  dataprotection_kek:
    file: ./secrets/dataprotection-kek

The file holds the base64 encoding of 32 random bytes. Wrapping is one-way for a binary that does not understand the recorded decryptor; read Secrets and Configuration before turning it on.

Vault or OpenBao references, the OpenBao Agent variant and the optional profile credential overlays are in Secrets.

Optional profiles

Profile Service What else it needs
matter-bridge The Matter bridge sidecar docker-compose.matter-bridge-secrets.yml for its workload token, and the client feature flag; see Matter bridge
media-plane MediaMTX and the go2rtc remux docker-compose.media-plane-secrets.yml, CAMERAS_MEDIA_PLANE_PASSWORD, and the backend flag; see the camera media plane

--profile '*' enables both.

Stopping the stack

The backend's stop_grace_period is 214 s, 10 s past Hosting:ShutdownTimeoutSeconds (204 s, set beside it). Docker's default of 10 s is shorter than the host's stop window, so a stack without it is killed part-way through stopping. A backend you add or a compose file you write keeps the pair together: a walk that starts saving at the host's deadline has to land before the container is killed.

Single-node coordination costs

A single-node installation leaves Coordination:Clustered unset or false, which keeps off the coordination only a fleet needs (the Matter bridge's live-state relay, the plugin roll's census). The cluster library's lease, its unit kinds and its held mutexes run at every replica count: a single node starts its unit kinds one placement pass after it serves, grants no mutex before it serves or while it is fenced, and a PostgreSQL outage long enough to fence it stops its unit kinds. A plugin connection lease is therefore refused while the replica is not serving, and plugins retry; the MQTT status topic reads offline for the takeover window after a leader ends. Read Running multiple replicas before enabling coordination or scaling out.

Kubernetes and Helm

Installing the chart

helm install reeve oci://ghcr.io/reeve-iot/charts/reeve --version 1.0.0 \
  --namespace <namespace> --create-namespace \
  -f values.yaml

helm show values oci://ghcr.io/reeve-iot/charts/reeve --version 1.0.0 prints every value with its default, and deploy/helm/reeve/values.example.yaml in the repository is a starting point for your own values.yaml. Every value is described in Helm chart values. The chart bundles no PostgreSQL: it points at a database you run. To install from a checkout instead, pass ./deploy/helm/reeve in place of the OCI reference.

The chart fails the render when a production-critical secret is missing or still holds a shipped placeholder. Render the chart with the real values before every upgrade; the render catches that before anything changes. A database migration Job runs as a pre-install and pre-upgrade hook before the backend starts.

kubectl get pods -n <namespace>
kubectl logs -n <namespace> deployment/reeve-backend

Secrets in the chart

For the JWT signing key, the bootstrap administrator password, the OIDC state signing key and the database password, set exactly one source under the setting: value, existingSecret, externalSecret, file or a provider ref.

secrets:
  jwtSigningKey:
    externalSecret:
      storeRef: { name: vault-backend, kind: ClusterSecretStore }
      remoteRef: { key: reeve/jwt-signing-key, property: value }
database:
  password:
    externalSecret:
      storeRef: { name: vault-backend, kind: ClusterSecretStore }
      remoteRef: { key: reeve/database, property: password }

The chart mounts the source and hands the backend the _FILE form. A file path must be available through backend.extraVolumes and backend.extraVolumeMounts, for example a Secrets Store CSI volume. Two configured sources fail helm template with the setting and the conflicting source names. OIDC provider credentials, client secrets included, are configured in the administration UI and stored in the database, or declared as Managed:Oidc managed configuration; the chart has no OIDC provider values.

The Data Protection current and previous KEKs use the same source shapes under dataProtection.kek and dataProtection.kekPrevious, 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; Helm refuses value and externalSecret there, because those resources are created during the normal sync, after the hook has to start.

dataProtection:
  kek:
    ref: vault:reeve/dataprotection#kek
  kekPrevious:
    existingSecret: reeve-dataprotection-kek-previous

Enabling the workload provider

The Kubernetes workload provider is off by default, because it is a real expansion of what the backend may do in the cluster. Enabling it (workloads.kubernetes.enabled) renders a Role and RoleBinding for the backend's ServiceAccount, in the release namespace unless workloads.kubernetes.namespace names another, and adds the backend's egress rule to the API server on ports 443 and 6443. Without that rule a default-deny cluster fails every provider call with "cannot reach API server"; a remote API server on another port needs the rule added by hand.

The Role grants exactly what the provider uses:

Resource Verbs Used for
Deployments, DaemonSets create, patch, get, list, delete One controller per plugin workload, written by server-side apply
Pods, pods/log get, list, watch Status, health, log tailing, event-driven reconcile on the workload-instance label
Jobs create, patch, get, list, delete One per Ready node for per-node scans; leftovers are reaped
Services create, patch, get, list, delete The metrics port and the gateway and adapter endpoints
Secrets create, patch, get, list, delete The workload token and adapter configuration. Create, list and delete cannot be scoped by name, so this is read and delete over every Secret in the namespace
PersistentVolumeClaims get, create, patch, delete Existence, hand-over, online resize (grow only) and ownership metadata
Events list Shown in the workload detail pane
ConfigMaps get Reading an operator-created ConfigMap for a curated mount
ResourceQuotas list Deciding whether a workload must declare requests and limits
NetworkAttachmentDefinitions get, list The network-attachment picker reads every one in the namespace

A ClusterRole that grants get and list on nodes always renders with the provider, because per-node scans enumerate Ready nodes. The optional read-only ClusterRole behind workloads.kubernetes.clusterRole.enabled adds get on namespaces (the pod-security preflight reads their enforcement labels) and on PersistentVolumes (relocate reads a bound volume's node affinity); the connection test needs it. The backend ServiceAccount stays in the release namespace even when the Role lives in a dedicated workloads namespace.

Name the workloads namespace in Integrations, Workloads before moving Reeve's own release to another namespace. Left empty, it follows the release, and Reeve then recreates every workload in the new namespace while the old objects keep running.

For an out-of-cluster backend use the remote-connection mode with a self-contained kubeconfig: embedded certificate and token data, no file references, no exec or auth-provider plugins, and no skip-verify even alongside a certificate authority. Anything else is a named validation error at save time. Save first, then test the connection: the test builds from the stored settings. Apply the workloads Role and binding on the remote cluster, bound to the kubeconfig identity.

Installed plugin artifacts

Built-in plugins ship inside the image at /app/plugins. Marketplace installs need a writable directory (persistence.plugins), in one of two shapes:

Shape Trade
Per-replica scratch directory (mode: ephemeral) Self-heals at boot from the recorded installed set, reading the cluster's copy in object storage before the plugin's source. It depends on a source being reachable at start only for artifacts that copy cannot supply, and a missing source never blocks boot
Per-replica persistent volume (mode: perReplica) Needs a dynamic provisioner. Renders a StatefulSet, so switching an existing install to it swaps the workload kind with brief downtime

Node preparation

Label the nodes that carry hardware, then pin the workloads that need it: reeve-iot.dev/ble, reeve-iot.dev/has-thread-radio, reeve-iot.dev/has-zwave-radio, reeve-iot.dev/lan-reachable.

  • A privileged adapter needs the namespace's pod-security level to permit privileged pods. Keep the stricter warn and audit levels.
  • Host prerequisites are the node's job: the Bluetooth daemon running, the tun module loaded and persisted, a stable serial link for a USB radio, unfiltered multicast on the LAN. An adapter that comes up degraded names the requirement it is missing.
  • A declared image platform is hard node affinity. An architecture mismatch is an install error rather than a crash loop.
  • A topology-bound storage class pins a radio volume to the node it first landed on, and it can never move. Back critical volumes with a class that survives node loss, or expect to move that data yourself after a node dies: relocate warns about such a volume but never moves or deletes it.
  • Device paths are discovered on demand: a per-node discovery workload on Kubernetes, a one-shot helper you approve under Docker. Manual entry is the fallback.

Network policy and ingress

With networkPolicy.enabled the chart renders its own policies. Every pod it ships wears the same name and instance labels, and a label selector matches any superset of the labels it lists, so each policy selects by app.kubernetes.io/component. The backend policy covers the backend and db-migration components only; a component you add needs its own policy. The backend policy allows PostgreSQL and Redis on the ports the backend connects to, an MQTT broker on TCP 1883 and 8883 inside networkPolicy.egressExternalServicesCidr, DNS, error reporting to the DSN host, the media plane and its remux when enabled, and the API server when the workload provider is on. The migration hook needs only the PostgreSQL and DNS egress the policy already grants. With the built-in Redis, a <fullname>-redis policy admits ingress to the Redis pod from the backend pods only, on 6379, which keeps other pods of the namespace, plugin workloads included, away from the session store. A host-network pod on the Redis node is not covered by a pod selector; redis.builtin.passwordSource covers it. Anything else you point at the built-in Redis needs a policy of your own.

Under a default-deny policy of your own, sidecar pods need exactly one application egress, the backend Service, plus name resolution. Select them by the installation or workload-instance label. Host-network adapters egress from the node's own namespace and pod-selector rules do not cover them, so the node itself must reach the backend. Never open broker egress for a sidecar: its control plane is a backend-terminated WebSocket session, not a broker topic.

The chart renders two Ingress objects, because ingress-nginx reads timeouts per Ingress: one for the application and /api, one for /hubs and /ws/workloads, which stay open for hours. A path without a service sends the backend-owned prefixes (/api, /hubs, /ws/workloads) to the backend and everything else to the frontend. Your ingress.annotations win on both.

  • No session affinity is needed, but WebSocket upgrades are. Clients open the hub WebSocket without a negotiate call, so plain round-robin across replicas works and nothing falls back to long polling; see Running multiple replicas.
  • Raise the reverse proxy's read and idle timeout above the heartbeat interval. The workload gateway pings about every 25 seconds, inside a stock 60-second default, but a shorter proxy timeout drops sessions at a fixed interval.
  • Retry a 503 on another replica, never a timeout, and read for cluster.proxyReadTimeoutSeconds on /api. A 503 of an idempotent method may be resent to another replica. The chart sets this on its ingress-nginx objects (proxy-next-upstream: "error http_503", proxy-next-upstream-tries: "3", proxy-read-timeout equal to cluster.proxyReadTimeoutSeconds, at most 120 seconds; the hub object gets 3600 seconds), and the Compose balancer and frontend proxy do the same. ingress-nginx's default, error timeout, retries on a timeout and must be replaced. A proxy you supply yourself needs the same rules, and its read timeout must not be shorter than cluster.proxyReadTimeoutSeconds.
  • Camera streams need the application's origin, response buffering off and long read timeouts: a motion-JPEG response never ends.
  • Do not enable compression on the API or hub paths (use-gzip, enable-brotli, or a proxy's own gzip). The backend compresses JSON itself and leaves secret-bearing responses uncompressed; see Secrets and audit.
  • Count the proxies in front of the backend. Client addresses come from X-Forwarded-For only through trusted hops; with the wrong trust every client appears as one address and rate limits and the sign-in lock hit everyone. See Forwarded headers.

PostgreSQL with a standby (CloudNativePG)

The chart ships no Cluster manifest; point it at a database you run, such as a CloudNativePG cluster. With a standby, the cluster library waits for synchronous replication before it acknowledges a write, so the database has to offer it:

spec:
  instances: 2
  postgresql:
    synchronous:
      method: any
      number: 1
      dataDurability: required
    parameters:
      wal_receiver_status_interval: "1s"
  • wal_receiver_status_interval: "1s". With PostgreSQL's default of 10 seconds a synchronous commit stalls for about that long, and every write waits behind it.
  • No extra role for the application. The library's synchronous-replication check reads only what every role may read; the application role needs no pg_read_all_stats and should not hold it.
  • cluster.checkSynchronousReplication stays on. It only warns: with a standby and synchronous_standby_names empty or synchronous_commit local or off, every replica logs a warning and shows it in its replication status section. A single instance has no standby to check. Readiness never depends on it.
  • Two instances stall writes while the standby is down. With dataDurability: required and instances: 2 every write blocks while the only standby is unavailable, including CloudNativePG's own restart of it during an operator upgrade or a node drain. Use instances: 3 where that matters.
  • A failover is a short pause. The library detects the promotion within about the renewal interval plus its timeout, 6 s with the defaults, then fences and rejoins with a full load; the pause lasts until that load ends.

A read replica for the read context is optional (ConnectionStrings:ReplicaDatabase, the -ro Service); see Database.

MQTT integrations

The chart deploys no MQTT broker. An MQTT integration connects to the broker named in its plugin instance's settings. The backend policy admits TCP 1883 and 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, needs a NetworkPolicy of your own that lets the backend pods reach it.

Argo CD

Argo CD installs the chart straight from the OCI registry. Save the following as an Application, replace the <...> placeholders and apply it to the cluster that runs Argo CD:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: reeve
  namespace: argocd
  annotations:
    argocd.argoproj.io/compare-options: ServerSideDiff=true
spec:
  project: default
  source:
    repoURL: ghcr.io/reeve-iot/charts
    chart: reeve
    targetRevision: 1.0.0
    helm:
      valuesObject:
        argocd:
          enabled: true
        # Add your database, secrets, ingress and the rest of your values here.
        # Every value is described under "Helm chart values" in the configuration reference.
  destination:
    server: https://kubernetes.default.svc
    namespace: <namespace>
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
      - ServerSideApply=true

The repository URL has no oci:// prefix in an Application. If the registry needs credentials, register ghcr.io/reeve-iot/charts in Argo CD as a repository of type Helm with enableOCI set; the public images and chart need none. To keep your values in a Git repository instead of inline, use a multi-source Application: the chart as one source, your repository as a second source with ref: values, and valueFiles: [$values/<path>/values.yaml] on the chart source.

Set argocd.enabled: true in the values, as above. The chart then carries sync-wave and hook annotations: the migration Job runs as a PreSync hook ahead of the secrets, then the backend and frontend, then the ingress. Without it the migration Job still runs as a Helm hook, which Argo CD translates itself, but the ordering of the other objects is left to Argo CD's defaults.

Four details matter for a Reeve Application:

  • Server-side apply and diff. The Application syncs with ServerSideApply=true and compares with argocd.argoproj.io/compare-options: ServerSideDiff=true. Where the API server's MaxUnavailableStatefulSet feature is off it drops a field the backend StatefulSet renders, and only a diff on the API server sees that as in sync. Argo CD 3.6 and later does this by itself with ServerSideApply=true.
  • Replica counts. Do not ignore differences on /spec/replicas: a sync then reverts a replica count changed by hand. Pause automated sync while you scale for a full stop.
  • Workload objects. Every object the workload orchestrator creates carries prune-suppressing metadata, so a sync never deletes workload objects it does not know.
  • The Matter bridge token. Supply the bridge's workload token as a named Secret (adapters.matterBridge.workloadTokenSecret). A chart lookup is a no-op without a cluster, so a chart-generated token would be minted fresh on every sync, and the backend only knows the hash of the first one.

To upgrade, change targetRevision to the next release and let the sync roll the backend; see Upgrading.

Passkeys on the Android app

Passkeys in the Android app depend on https://<your-host>/.well-known/assetlinks.json, which the frontend serves. The statement shares the app's sign-in credentials with your host. The published app does not handle https links, so App Links do not apply to it; they matter only for a build that adds its own https intent filter. On Kubernetes the chart builds it from assetlinks.releaseFingerprint (always first) and assetlinks.extraFingerprints (appended), validates every fingerprint at render time (the default included, so a typo fails the render instead of on a phone), mounts it as a single file and rolls the frontend when it changes. On Compose the frontend binds the repository's copy; ASSETLINKS_OVERRIDE_FILE points it at your own.

The file must be served as application/json with status 200 and no redirect. A path swallowed by the application's HTML fallback returns 200 with text/html, which every uptime check reads as healthy while passkeys fail their origin check with nothing logged. A one-line monitor check:

curl -sS -D- -o/dev/null -w '\n--> http_code=%{http_code} content_type=%{content_type}\n' \
  https://<your-host>/.well-known/assetlinks.json

A pass is 200, application/json and no Location: header.

deploy/scripts/verify-assetlinks.sh https://<your-host> [--apk path/to.apk] [--no-google] checks the file the way Android's verifier needs it: no path in the base URL, port 443, https, a TLS chain that validates without -k, 200 fetched without following redirects, the content type, the statement's package, relations and fingerprint form, cache ages that hide a stale answer, robots.txt, and Google's public Digital Asset Links verifier. That last check is the primary one, because it is the only observer that shares Android's vantage point; a same-origin request sits on the privileged side of what can block Android (an access gateway with an operator bypass, a VPN without a public route, split-horizon DNS, bot protection, a stale edge cache). --no-google is for offline runs only. All checks run whatever failed before, and any failure exits non-zero.

With --apk the script also compares the APK's signing certificate with the fingerprints the statement trusts, and checks the host the APK's manifest declares in an https intent filter. That host is fixed at build time: Android fetches the statement from the host the installed build declares, so a build whose declared hosts do not cover the host under test is a failure no change to your server can fix, and a build declaring no https intent filter (the published app) is a warning. Fingerprints are 32 uppercase colon-separated hex pairs. --selftest runs offline known-answer tests.

The server's WebAuthn allowed origins carry the Android signing certificate's SHA-256 as unpadded base64url (43 characters), never as hex. Derive it from the APK with mobile/tools/apk-key-hash.sh, which reads the certificate with apksigner and shape-checks each step; the host refuses to start on a hex value in AllowedOrigins. Passkeys survive a move to a new host only when it serves the same relying-party identifier, the same domain. The settings are in Authentication.

Workload providers

A workload declared in a plugin's deployment manifest runs under one of three providers. One is active per installation, overridable per instance, and all three consume the same typed manifest.

Provider Scope Notes User namespace
kubernetes In-cluster or a remote kubeconfig The only multi-node provider. Server-side apply, never forced outside evidence-verified adoption Yes (hostUsers: false, Kubernetes 1.33+)
docker One local socket, a single backend instance Host-local volumes; a clustered backend refuses it No
manual Reeve renders artifacts, you run them Needs an externally reachable gateway address, preflighted for a WebSocket upgrade No

A manifest feature only one provider can honour fails closed at that provider's preflight with a named error rather than degrading. HTTP health probes, per-node workloads, raw pod patches and ConfigMap mounts are Kubernetes-only. Managed providers pull by immutable digest: a registry mirror that cannot serve the pinned digest fails the apply, and one that does not keep the previous release's digests makes rollback impossible.

The Docker provider manages the one daemon its backend reaches and has no identity for that daemon, so a second backend, or a leader that moves machine, would talk to another daemon and fork the containers and their gateway sessions. A clustered backend (Coordination:Clustered=true) therefore refuses to start while the stored provider is Docker or a live workload is managed on it, and refuses a save that selects Docker; on a clustered backend Automatic resolves to Kubernetes in a cluster and to Manual elsewhere. A remote daemon over the network is not supported; Podman works best-effort through its Docker-compatible socket. Moving off Docker before clustering is in Troubleshooting.

What the workload controls do

Control Effect
Observe-only Reeve stops correcting drift for the instance. The container keeps running. With it off, Reeve also recreates a Kubernetes Deployment or DaemonSet, or a Docker container, deleted outside Reeve on its next pass; with it on, the workload shows Failed and says that Reeve does not recreate it
Pause Scales the workload to zero; the sidecar stops
Re-apply Applies the held specification again without the restart nonce, so an unchanged workload converges in place. On Kubernetes it replaces only an unbound, not adopted claim whose storage class differs
Relocate Kubernetes only (other providers answer 409 RelocateIsKubernetesOnly). Plans first, read-only, then executes. Deletes no volume; a node-bound volume the new selector excludes is warned about, and moving its data is yours
Resize a volume Upward only. A shrink, an unparsable value, a milli-quantity or a class that cannot expand is a 400 with a reason; an equal size changes nothing
Rotate token Mints a credential shown exactly once. A manual-provider artifact rendered before still embeds the old token: render and apply it again
Render (manual) Never cached. Revealing the token in it needs workloads.approve and issues a new live token on every reveal; the ones issued before stay valid until you rotate the token. A 400 names the reason, usually an unset external gateway URL
Device-path discovery (Docker) Runs a host helper only after you acknowledge the danger disclosure

A workload only talks to Reeve, so on Docker it stays on the container network.

Retained data

Critical retained data (Matter and Thread fabric material, Bluetooth bind keys, Z-Wave keys) is never deleted automatically. Volumes carry a criticality label so a backup selector can pick them up. Adoption, drift detection and teardown key on the workload-instance label, never on a reconstructed name. An adopted claim must exist or the operation fails (no path provisions a fresh empty volume in its place), and at most one instance may adopt a given retained name.

Uninstalling a plugin keeps its retained volumes. For each retained volume:

  • Restore is offered per volume when the plugin is installed again.
  • Purge deletes the data. It is destructive and needs workloads.approve.
  • Dismiss leaves the data (the claim stays) but marks the row inactive, which removes it from the Restore step of a reinstall. A dismissed volume cannot be picked there afterwards.

An old detached retained volume is flagged for attention (the workload.volumes_awaiting_decision alert).

Orphans and switching providers

Containers that outlived their rows are found by inspecting the Docker daemon, so only the Docker provider can be asked. The Orphans card is hidden when nothing is stranded but always shows an error, so "could not look" never reads as "all clear"; the server answers 503, never an empty list, when the runtime cannot be inspected, and the card does not retry on its own. Removing a group that belongs to another Reeve installation needs an extra confirmation that shows its installation id, and the server answers 409 until it is acknowledged: reclaiming your own stranded containers and leaving another installation's alone are opposite correct actions.

There is no in-place provider migration. With live instances, uninstall with retention, switch the provider, reinstall and restore. Adoption detects resources across the cluster, not per instance, so it is a settings-level action, and force-adopt needs workloads.approve.

Network posture for a workload

network.mode is cluster, hostNetwork or operatorNetwork, with optional attachments. These are reserved parameters rather than manifest fields, so any published plugin is attachable without a new release.

Reeve never creates or deletes a network. Under an attachment the provider's own network stays beside it, never replaced, because replacing it would cut the workload off from a backend on the same host. Reeve checks that each named attachment exists and, on Kubernetes, that a workload which runs on every node has a node-eligibility selector. What the network contains (driver, IPAM, routes, IPv6, isolation) is yours, and changing it behind the same name parks nothing, refuses nothing and asks for no new consent. Any existing Docker network can be named, Reeve's own network and the shared workload network included; the consent dialog shows the names and the choice is yours. Reeve does not check a published host port against the network, macvlan or ipvlan on a non-Linux Docker host, or IPv6: a setup that cannot work fails when the container starts, and a connect the Docker daemon refuses fails the apply with the daemon's reason. Bind health listeners to all interfaces or to the primary interface, never to the attachment address, which the node cannot reach.

The user-namespace setting is one value per deployment. Host-networked workloads skip it and produce a user-namespaces warning on the install wizard's Preflight step; sibling workloads still use it. Preflight also warns below Kubernetes 1.33 and names schedulable matching nodes whose runtime reports no support. It does not check kernel idmap mounts (tmpfs needs Linux 6.3+), volume filesystems or device permissions. A pod failing with FailedCreatePodSandBox may need the switch turned off for that workload.

The camera media plane

An optional shared media server (MediaMTX) that every camera publishes into and every viewer reads from, so a browser needs one reachable port instead of a route to each camera's workload. It is off by default in both the chart (cameras.mediaPlane.enabled) and Compose (the media-plane profile). Deploying it, reaching it from outside the home and every setting are in Media plane; how it works is in the media plane reference.

The Matter bridge

The Matter bridge exposes Reeve's devices to Apple Home, Google Home, Amazon Alexa and Home Assistant. It ships with the application, its templates and fabric volume stay chart-managed, and it never goes through workload consent. Deploying it on Kubernetes or Compose, its network needs and its settings are in Matter bridge; how it works is in the Matter bridge reference.