API Deployment (2 replicas, startup/liveness/readiness probes), Service, PDB, optional Ingress (host from publicURL, TLS secret).
Database: database.url or existingSecret. Optional database.bundled.enabled: one TimescaleDB StatefulSet (PVC, generated password via lookup, resource-policy: keep — a reinstall under the same name adopts it and the password still matches the volume). Meant for trying out; the NOTES say so.
Redis: redis.url, existingSecret, or Sentinel (master, addrs, user, password). Not bundled.
Migrations: api migrate up as pre-install,pre-upgrade hook Job with its own hook Secret (deleted after success, so the release's Secret stays a normal resource). With the bundled DB, as an API init container instead; concurrent runs serialize on the goose lock.
Checker / status page servers (optional; tokens from api agent create, shown in values.yaml) using the multi-arch agent images; checker with the safe net.ipv4.ping_group_range sysctl; status page Service, PDB, Ingress for its hosts, cache in an emptyDir.
Security: runAsNonRoot 65532, read-only root FS (/tmp as memory emptyDir), drop ALL, no privilege escalation, RuntimeDefault seccomp, no service account token. API + migration job default to kubernetes.io/arch: amd64 (the API image is amd64-only).
Secrets from values or existingSecret everywhere; pods roll when the chart secret changes. Missing publicURL, database, Redis or secretKeys fail rendering with a clear message.
CI: helm lint --strict and rendering of the minimal, the full (bundled DB, ingress, checker, status page, Sentinel) and a broken configuration. Release: helm package with the release version as chart and app version, included in the signed SHA256SUMS, attached to the release and pushed to the Gitea Helm registry (helm repo add uptimesebi https://git.zb-server.de/api/packages/zb-server/helm).
Tested on a throwaway k3s (in Docker, own kubeconfig; nothing touched the configured clusters), with the public edge images:
bundled DB install: both API pods' init containers migrated (one applied 45, the other waited on the lock and found the schema up to date), /readyz 200, api region add / api agent create via kubectl exec;
upgrade with checker + 2 status page servers: all ready, checker connected to the API;
second release with an external DB: hook Job ran before the install, Job and hook Secret removed afterwards, 46 goose rows; upgrade ran the hook again;
uninstall keeps the DB volume and password; reinstall adopted them, schema up to date.
**Chart** `deploy/helm/uptimesebi`
- **API** Deployment (2 replicas, startup/liveness/readiness probes), Service, PDB, optional Ingress (host from `publicURL`, TLS secret).
- **Database**: `database.url` or `existingSecret`. Optional `database.bundled.enabled`: one TimescaleDB StatefulSet (PVC, generated password via `lookup`, `resource-policy: keep` — a reinstall under the same name adopts it and the password still matches the volume). Meant for trying out; the NOTES say so.
- **Redis**: `redis.url`, `existingSecret`, or Sentinel (`master`, `addrs`, user, password). **Not bundled.**
- **Migrations**: `api migrate up` as `pre-install,pre-upgrade` hook Job with its own hook Secret (deleted after success, so the release's Secret stays a normal resource). With the bundled DB, as an API init container instead; concurrent runs serialize on the goose lock.
- **Checker** / **status page servers** (optional; tokens from `api agent create`, shown in values.yaml) using the multi-arch agent images; checker with the safe `net.ipv4.ping_group_range` sysctl; status page Service, PDB, Ingress for its hosts, cache in an emptyDir.
- **Security**: runAsNonRoot 65532, read-only root FS (`/tmp` as memory emptyDir), drop ALL, no privilege escalation, RuntimeDefault seccomp, no service account token. API + migration job default to `kubernetes.io/arch: amd64` (the API image is amd64-only).
- Secrets from values or `existingSecret` everywhere; pods roll when the chart secret changes. Missing `publicURL`, database, Redis or `secretKeys` fail rendering with a clear message.
**CI**: `helm lint --strict` and rendering of the minimal, the full (bundled DB, ingress, checker, status page, Sentinel) and a broken configuration. **Release**: `helm package` with the release version as chart and app version, included in the signed `SHA256SUMS`, attached to the release and pushed to the Gitea Helm registry (`helm repo add uptimesebi https://git.zb-server.de/api/packages/zb-server/helm`).
**Tested on a throwaway k3s** (in Docker, own kubeconfig; nothing touched the configured clusters), with the public `edge` images:
- bundled DB install: both API pods' init containers migrated (one applied 45, the other waited on the lock and found the schema up to date), `/readyz` 200, `api region add` / `api agent create` via `kubectl exec`;
- upgrade with checker + 2 status page servers: all ready, checker connected to the API;
- second release with an external DB: hook Job ran before the install, Job and hook Secret removed afterwards, 46 goose rows; upgrade ran the hook again;
- uninstall keeps the DB volume and password; reinstall adopted them, schema up to date.
README gains a Kubernetes section.
Closes #35
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
deploy/helm/uptimesebi runs the console and API (Deployment, Service,
PodDisruptionBudget, Ingress) and optionally an in-cluster checker and
status page servers. PostgreSQL and Redis are your own: by URL, from an
existing secret, or Redis through Sentinel; Redis is not bundled. For
trying it out, a single TimescaleDB can be bundled; its volume and
password survive an uninstall and are picked up again by a reinstall.
Migrations run as a pre-install/pre-upgrade hook with its own short-lived
copy of the secrets; with the bundled database, which does not exist
before the install, as an init container (runs serialize on the
migration lock). Pods run as 65532 with a read-only root filesystem, no
capabilities and RuntimeDefault seccomp; checkers get the safe ping
sysctl. Missing settings fail rendering with a message.
CI lints and renders the chart in several configurations; releases
package it with the release version, sign it with the checksums and push
it to the Gitea Helm registry.
Closes#35
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Added an optional bundled Redis (redis.bundled.enabled, off by default), like the bundled TimescaleDB: generated password kept in a secret, AOF on a 1Gi volume (or emptyDir with persistence.enabled=false), unprivileged with a read-only root FS, kept with its volume on uninstall. Tested on a throwaway k3s with both bundled: API ready, wrong password refused, a key survived a pod restart and an uninstall/reinstall. CI renders the both-bundled configuration too.
Added an optional bundled Redis (`redis.bundled.enabled`, off by default), like the bundled TimescaleDB: generated password kept in a secret, AOF on a 1Gi volume (or emptyDir with `persistence.enabled=false`), unprivileged with a read-only root FS, kept with its volume on uninstall. Tested on a throwaway k3s with both bundled: API ready, wrong password refused, a key survived a pod restart and an uninstall/reinstall. CI renders the both-bundled configuration too.
redis.bundled.enabled adds a single Redis for trying UptimeSebi out, like
the bundled TimescaleDB: password generated and kept, append-only file on
a volume so sessions and schedules survive restarts, read-only root
filesystem, kept with its volume on uninstall and adopted by a reinstall.
Your own Redis, directly or through Sentinel, stays the way for
production.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi
merged commit b05afc8c79 into main2026-11-23 20:38:22 +00:00
Sebi
deleted branch feat/helm2026-11-23 20:38:25 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Chart
deploy/helm/uptimesebipublicURL, TLS secret).database.urlorexistingSecret. Optionaldatabase.bundled.enabled: one TimescaleDB StatefulSet (PVC, generated password vialookup,resource-policy: keep— a reinstall under the same name adopts it and the password still matches the volume). Meant for trying out; the NOTES say so.redis.url,existingSecret, or Sentinel (master,addrs, user, password). Not bundled.api migrate upaspre-install,pre-upgradehook Job with its own hook Secret (deleted after success, so the release's Secret stays a normal resource). With the bundled DB, as an API init container instead; concurrent runs serialize on the goose lock.api agent create, shown in values.yaml) using the multi-arch agent images; checker with the safenet.ipv4.ping_group_rangesysctl; status page Service, PDB, Ingress for its hosts, cache in an emptyDir./tmpas memory emptyDir), drop ALL, no privilege escalation, RuntimeDefault seccomp, no service account token. API + migration job default tokubernetes.io/arch: amd64(the API image is amd64-only).existingSecreteverywhere; pods roll when the chart secret changes. MissingpublicURL, database, Redis orsecretKeysfail rendering with a clear message.CI:
helm lint --strictand rendering of the minimal, the full (bundled DB, ingress, checker, status page, Sentinel) and a broken configuration. Release:helm packagewith the release version as chart and app version, included in the signedSHA256SUMS, attached to the release and pushed to the Gitea Helm registry (helm repo add uptimesebi https://git.zb-server.de/api/packages/zb-server/helm).Tested on a throwaway k3s (in Docker, own kubeconfig; nothing touched the configured clusters), with the public
edgeimages:/readyz200,api region add/api agent createviakubectl exec;README gains a Kubernetes section.
Closes #35
🤖 Generated with Claude Code
https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Added an optional bundled Redis (
redis.bundled.enabled, off by default), like the bundled TimescaleDB: generated password kept in a secret, AOF on a 1Gi volume (or emptyDir withpersistence.enabled=false), unprivileged with a read-only root FS, kept with its volume on uninstall. Tested on a throwaway k3s with both bundled: API ready, wrong password refused, a key survived a pod restart and an uninstall/reinstall. CI renders the both-bundled configuration too.