Backups and store checks on a schedule (K-C11) #28

Merged
jcoffey-dev merged 1 commits from feat/scheduled-jobs into main 2026-11-19 21:08:46 +00:00
Owner

K-C11, closes #11. On top of #27 (merge that first). Needs server 27.1-rc.34 (inbuxa/inbuxa-server#491): hold until it ships.

  • server.backup: a nightly CronJob, inbuxa --export s3://..., streamed while the server runs. Keys from existingSecret as files, or the pod's role (serviceAccountName). Old exports are left to a bucket lifecycle rule.
  • server.storeCheck: quick nightly, full weekly. A check is never retried: exit 3 is an answer.
  • With the metrics rules and kube-state-metrics: InbuxaBackupMissing (no finished export for backupHours) and InbuxaStoreCheckFailed.
  • The jobs NetworkPolicy covers both.

Tested: tools/check.sh (93 unit tests). On kind: inbuxa/inbuxa-k8s-lab backup-test.sh runs the backup CronJob, restores into fresh stores, and runs both check CronJobs: all pass. The two alerts weren't run (no kube-state-metrics in the lab).

K-C11, closes #11. On top of #27 (merge that first). Needs server 27.1-rc.34 (inbuxa/inbuxa-server#491): hold until it ships. - `server.backup`: a nightly CronJob, `inbuxa --export s3://...`, streamed while the server runs. Keys from `existingSecret` as files, or the pod's role (`serviceAccountName`). Old exports are left to a bucket lifecycle rule. - `server.storeCheck`: quick nightly, full weekly. A check is never retried: exit 3 is an answer. - With the metrics rules and kube-state-metrics: InbuxaBackupMissing (no finished export for `backupHours`) and InbuxaStoreCheckFailed. - The jobs NetworkPolicy covers both. **Tested**: `tools/check.sh` (93 unit tests). On kind: inbuxa/inbuxa-k8s-lab `backup-test.sh` runs the backup CronJob, restores into fresh stores, and runs both check CronJobs: all pass. The two alerts weren't run (no kube-state-metrics in the lab).
jcoffey-dev added 1 commit 2026-11-19 21:07:42 +00:00
Backups and store checks on a schedule (K-C11)
ci / chart (pull_request) Successful in 43s
1fce1c4e7b
jcoffey-dev force-pushed feat/scheduled-jobs from 432208a7fc to 1fce1c4e7b 2026-11-19 21:07:42 +00:00 Compare
jcoffey-dev merged commit 5ad799d957 into main 2026-11-19 21:08:46 +00:00
jcoffey-dev deleted branch feat/scheduled-jobs 2026-11-19 21:08:46 +00:00
Sign in to join this conversation.