life-dashboard

by owen282000

Helm chartv1.2.3App 1.2.3MITVerified publisher

Your phone's health data and screen time in your own cluster: the backend for the Life Dashboard Companion apps for Android (Health Connect) and iPhone (Apple Health). A receiver, Postgres (CloudNativePG, a bundled StatefulSet or your own), Grafana with six dashboards, and an optional read-only MCP server for the AI you choose.

About this chart

life-dashboard

Your phone's health data and screen time in your own cluster. The Life Dashboard Companion app on your phone sends them, signed, to this stack: a receiver, Postgres, Grafana with six dashboards, and an optional read-only MCP server and JSON API. No cloud account in between.

Start with the app

The stack only stores what a phone sends, so install the app first:

Then pair it with the receiver, see Pair a phone. Already on Home Assistant? The integration takes the same app.

Prerequisites

  • Kubernetes 1.29 or later
  • Helm 3 or Helm 4
  • For the default Postgres mode: the CloudNativePG operator, and its Barman Cloud plugin for backups

Install

helm install lifedash oci://ghcr.io/owen282000/charts/life-dashboard \
  -n life-dashboard --create-namespace --version <version> \
  --set receiver.publicUrl=https://lifedash.example.com \
  --set timezone=Europe/Amsterdam \
  --wait --timeout 10m
helm test lifedash -n life-dashboard --logs

From a clone of the repository, use charts/life-dashboard instead of the oci:// address. The chart's version is the version of the stack, and the images default to it.

Postgres

postgres.modeWhat you get
cnpg (default)A CloudNativePG Cluster: replicas and failover with postgres.cnpg.instances, backups to object storage and restores, grafana_ro and dash_ro as managed roles.
bundledOne Postgres pod in a StatefulSet with a volume. No replicas and no backups of its own.
externalYour own Postgres 18: the owner's URL from a Secret (postgres.external.existingSecret) and postgres.external.host for Grafana and the MCP server.

Main values

ValueDefaultWhat it does
timezoneUTCYour time zone as an IANA name; days and nights in the dashboards follow it.
receiver.publicUrl""The address your phone reaches the receiver on, for the pairing code.
receiver.api.enabledfalseThe read-only JSON API under /api/.
mcp.enabledfalseThe read-only MCP server on port 8090.
receiver.expose.webhook, .api, .pairtrue, false, falseThe paths the Ingress and the HTTPRoute send to the receiver.
receiver.ingress, receiver.httpRouteoffAn Ingress or a Gateway API route for the receiver; the same for grafana.
postgres.modecnpgSee above.
postgres.cnpg.instances1Postgres instances; 2 or more gives failover.
postgres.cnpg.backup.enabledfalseBackups through the Barman Cloud plugin.
secrets.existingSecret""Your own Secret with the stack's secrets. Empty: generated once and kept on upgrades.
networkPolicy.enabledfalseNetworkPolicies for every pod of the release.
demo.enabledfalsePosts 60 days of sample data. Not for a real install.

helm show values oci://ghcr.io/owen282000/charts/life-dashboard lists them all with a comment, and values.schema.json refuses a value with a typo.

Pair a phone

The pairing code holds the webhook secret, so the chart keeps it out of the log and switches the /pair page off. Print it on your own terminal, with one label per phone:

kubectl -n life-dashboard exec deploy/lifedash-life-dashboard-receiver -- python pairing.py phone

Or set receiver.pairing.page: true while you pair, and open /pair through kubectl port-forward.

Security

Every pod runs as a non-root user with a read-only root file system, no capabilities, RuntimeDefault seccomp, so the chart installs under the restricted Pod Security level. The chart's own pods get no service account token; only CloudNativePG's instance pods talk to the Kubernetes API. Grafana and the MCP server read through read-only database roles, never as the owner. The Ingress and HTTPRoute send only /webhook to the receiver unless you open more.

Upgrade and uninstall

helm upgrade with the same values file; the receiver migrates the database at its start, and generated secrets stay. helm uninstall keeps the database, Grafana's volume and the generated Secrets, so a reinstall under the same name finds the data.

Documentation

Deploy life-dashboard with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has life-dashboard on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlife-dashboard is pinned at v1.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply