Upgrading Karakuri¶
Karakuri is pre-1.0. Releases follow semantic versioning:
while on 0.x, a minor bump may carry a breaking change — always skim the
CHANGELOG before upgrading. Config changes are additive (new
optional fields with safe defaults) unless the CHANGELOG says otherwise.
Helm upgrade¶
- Pin a chart version with
--version X.Y.Zfor reproducible rollouts. - The chart's
appVersiontracks the image tag; bumping the chart upgrades the image. To run a specific image, setimage.tag(orimage.digest). - The Deployment uses the Recreate strategy (single replica, in-memory watcher state) — expect a brief gap during the rollout. The post-boot baseline window suppresses the re-alert storm that would otherwise follow a restart.
Verify the image first (recommended)¶
Release images are Cosign-signed with an SBOM + provenance attestation. Verify before rolling out — see SECURITY.md.
State across upgrades¶
- SQLite backend — alert state, outcomes, and learning history live on the
karakuri-dataPVC and survive upgrades. The schema is created/migrated automatically on boot (additive); no manual migration. - Postgres backend — same tables on your Postgres; schema is ensured on boot.
Keep the same
POSTGRES_DSNacross upgrades to retain state. - Active alert cards are restored on restart, so in-flight incidents stay live through an upgrade.
Config / values changes¶
New config.* keys arrive with defaults that preserve prior behavior — e.g.
llm.budget (unlimited), guardrails.protected_namespaces, rbac.impersonate
(off), alertmanager.enabled (off), sinks (empty). You only set what you want
to change. Removed or renamed keys, if any, are called out in the CHANGELOG with a
migration note.
Upgrading to 0.1.36¶
0.1.36 changes how Jobs and CronJobs alert and adds a way to mute one CronJob. It also carries the 0.1.35 image security fixes. No values change is required: the new setting is on by default. These steps cover any version from 0.1.28 on.
What changes for your team¶
| Before | From 0.1.36 |
|---|---|
| A card for every failed attempt of a Job, even when the Job retried and succeeded | Nothing until Kubernetes marks the Job itself Failed (BackoffLimitExceeded, DeadlineExceeded) |
| A card for container restarts and Unschedulable pods inside a Job | Nothing, the Job may still succeed |
| One card per failed pod | One card per CronJob (or per standalone Job), closed by the next successful run |
| A bad image or missing Secret in a Job's pod alerts | Unchanged, still alerts (the Job would hang, not fail) |
| Muting batch work meant muting the whole namespace | Mute one CronJob or Job with an annotation (below) |
The failure card's diagnosis now reads the failed run's exit codes, events and
last log lines, so it names a cause (for example "connection refused") instead of
only BackoffLimitExceeded.
1. Back up your current values¶
helm get values karakuri -n karakuri -o yaml > karakuri-values-backup.yaml
helm history karakuri -n karakuri | tail -3 # note the current REVISION
2. Values change (optional)¶
Nothing to add: check_jobs defaults to true. Add it only to make the choice
visible in your values file, or to opt out:
config:
watcher:
# Jobs/CronJobs: one card when the Job itself fails, one card per CronJob,
# closed by its next successful run. false = the old per-pod alerts.
check_jobs: true
Keep imagePullSecrets (and image.repository, if you mirror the image) from
your backup. Chart 0.1.36 and earlier default the repository to a placeholder, so
on those versions a fresh values file with no repository fails to pull; later
charts default to ghcr.io/clouddrove/karakuri. Check with
grep -A3 "^image:" karakuri-values-backup.yaml.
If your values pin the image (image.tag or image.digest), update or remove
them, otherwise the chart upgrade keeps running the old image:
The chart's ClusterRole already allows reading Jobs and CronJobs. If you run
with kubeconfig.fromSecret (the chart then creates no ClusterRole), the identity
in that kubeconfig needs get, list and watch on jobs and cronjobs in
the batch API group on every watched cluster.
3. Upgrade¶
helm repo update
helm search repo karakuri/karakuri # should list 0.1.36
helm upgrade karakuri karakuri/karakuri -n karakuri \
--version 0.1.36 -f karakuri-values.yaml --wait --timeout 5m
4. Verify¶
kubectl -n karakuri get pods # 1/1 Running, 0 restarts
kubectl -n karakuri logs deploy/karakuri-karakuri | grep "native analyzers enabled"
# the list ends with: ..., podcond, job
For the first 5 minutes after the restart, issues that already existed are collected into one "pre-existing issues" summary instead of a card each. That is expected, see Flood of alerts right after every deploy. Cards posted before 0.1.29 may answer "invalid signature" from their overflow menu; cards posted by the new version work normally.
5. Mute a CronJob your team does not want to hear about¶
The team that owns the CronJob adds one annotation to it. No Karakuri change or restart is needed:
kubectl -n <namespace> annotate cronjob <name> karakuri.clouddrove.com/ignore=true
# undo
kubectl -n <namespace> annotate cronjob <name> karakuri.clouddrove.com/ignore-
Or in the CronJob's manifest, on its own metadata (not only the job template):
apiVersion: batch/v1
kind: CronJob
metadata:
name: nightly-report
annotations:
karakuri.clouddrove.com/ignore: "true"
It takes effect within about a minute and closes any open card for that CronJob.
The same annotation works on a standalone Job. To mute a whole namespace instead,
use watcher.ignore_namespaces. Details: Jobs and CronJobs.
Rollback¶
State on the PVC/Postgres is forward-compatible within a minor series; if you roll back across a schema change noted in the CHANGELOG, follow its migration note.
Reviewed: 2026-09-28.