Skip to content

HarborBucketNearUpgradeGateBound

Severity: warning. Fires when the Harbor registry bucket skatzi-harbor-registry has held more than 80 GiB for 30 minutes (sum by (bucket) (hetzner_object_storage_version_bytes{bucket="skatzi-harbor-registry"})). That is about 80 % of the 100 GiB that the Harbor upgrade gate can back up. The gate copies the whole blob store to its 110 GiB work volume harbor-preupgrade-work, and the restore check extracts it onto the 100 Gi scratch volume harbor-registry-pvc. Once the bucket outgrows them, the next Harbor upgrade fails closed with no space left, as it did on 2026-11-17 at the old 30 GiB volume. Nothing is broken while this alert fires. It warns you so you can act before the next Harbor chart bump.

The bucket is unversioned, so its size is its current objects. It grew by about 2 GiB a day in November 2026, mostly from webshop release tags that are immutable, so tag retention never deletes them.

The gate's downtime also grows with the bucket. Harbor's writers stay at 0 while the dump pod copies and tars the bucket. The copy ran at about 62 MiB/s on 2026-11-17, and the tar took about as long again (18m50s of downtime for 32 GiB). At 80 GiB that is roughly 45 minutes without pushes or pulls (Harbor backups, step 5).

Read-only checks

PROM=/api/v1/namespaces/monitoring/services/http:monitoring-kube-prometheus-prometheus:9090/proxy

# Size now, by version (non_current should be 0: the bucket is unversioned)
kubectl --context admin@mgmt-cluster get --raw "$PROM/api/v1/query?query=hetzner_object_storage_version_bytes%7Bbucket%3D%22skatzi-harbor-registry%22%7D" \
  | jq -r '.data.result[] | "\(.metric.version) \((.value[1] | tonumber) / 1073741824 | floor) GiB"'

# Growth per day over the last week, in GiB
kubectl --context admin@mgmt-cluster get --raw "$PROM/api/v1/query?query=sum(delta(hetzner_object_storage_version_bytes%7Bbucket%3D%22skatzi-harbor-registry%22%7D%5B7d%5D))%2F7%2F1073741824" \
  | jq -r '.data.result[0].value[1]'

# The bound in the gate today: the work, scratch, restore and rollback volumes
grep -n 'storage:' components/harbor/backup/templates/*.yaml

$PROM is the Service proxy path from Read Alertmanager and Prometheus on a cluster. Check the answer's cluster label before you trust it. The Object Storage panels show the same trend.

From the size and the daily growth, work out how many days are left before 100 GiB. Then check whether a Harbor chart bump is open (a Renovate pull request of the harbor group in Skatzi/platform), because that bump runs the gate.

Roll forward

You have two options. Pick one and land it before the bucket reaches the bound:

  1. Prune the release tags. This is the owner's chosen way to keep the bucket and the gate's downtime bounded (#3316). Check when the last weekly prune (Mondays) ran and whether its list is waiting for approval (Tag retention, steps 1–5; eloro scripts/harbor-prune-list.sh). Approving the list and relaxing the immutability rule are steps for the owner and a Harbor admin. Assign them to a person; do not delete tags yourself. Garbage collection frees the blobs, and the alert resolves once the bucket drops below 80 GiB.
  2. Raise the gate's volumes, in a Skatzi/platform pull request, as step 5 of the upgrade gate says. In components/harbor/backup/templates/, raise work-pvc.yaml, the scratch harbor-registry-pvc in scratch-pvcs.yaml, the restore pod's work volume (restore-pod.yaml) and the rollback pod's (rollback-pod.yaml, twice the bound). Then raise the time limits of the steps, the Job's activeDeadlineSeconds and the harbor-preupgrade Kustomization's timeout above their sum, and the drill's deadline. Then move this alert's threshold in cluster/hetzner-mgmt/prometheus-stack/manifests/prometheus-rule.yaml and its test in components/prometheus-stack/tests/rules-test.yaml to about 80 % of the new bound. Update the bound and the downtime estimate in Harbor backups. These volumes are temporary, so a larger size costs nothing between gates. Only the downtime grows.

Do not run a gate by hand to test the new size. The next chart bump runs it, or the weekly restore drill exercises the restore side.

Roll back

There is no roll back: the alert reports growth, not a change. If a pull request that raised the volumes breaks the gate or the drill, revert it and go back to pruning. Follow the ops runbook triage order for the failed Kustomization.