Skip to content

2026-11-17: platform-docs v1.136.9 could not pull while the Harbor gate held Harbor down

Kind: reference (incident report)

Severity: warning · Status: resolved · Resolved by: the kubelet's image pull retry, checked by the operator agent · Duration: 0:07 from detection to resolution, 05:12–05:19 UTC (pull errors from 05:07:36) · Taskbase task: #3311

Summary

The docs image bump d735603d (platform-docs v1.136.9) reached the cluster at 05:07:35 UTC. At that time the Harbor pre-upgrade gate had Harbor's core, jobservice and registry at 0 (#3310, its report 2026-11-17-harbor-gate-work-volume-full.md in pull request #1518). The new pod's pull got 502 Bad Gateway from Harbor, so the Kustomization platform-docs failed its health check twice. The kubelet pulled the image on a later retry once Harbor was back, the rollout finished at 05:18:34, and platform-docs was Ready at 05:19:37. Nothing was rolled back or changed in the cluster.

Impact

  • Services: none user-visible. docs.prod.skatzi.com kept serving v1.136.8 from the old pod: the Deployment rolls with RollingUpdate (maxUnavailable: 25%, one replica), so the old pod stayed until the new one was Ready. The Flux Kustomization flux-system/platform-docs was not Ready from 05:12:05 to 05:19:37.
  • Users: none noticed. The docs site showed v1.136.8 for about 18 more minutes.
  • Data: none.
  • Duration: 7 min 32 s from detection (05:12:05) to resolution (05:19:37); pull errors from 05:07:36.

Timeline

All times UTC.

Time Event Source
05:01:02 d735603d on main: platform-docs image v1.136.8 → v1.136.9 (components/docs/deployment.yaml) commit
05:02:45 The Harbor gate scaled harbor-core, harbor-jobservice, harbor-registry to 0 (#3310) harbor-preupgrade gate log
05:05:52 platform-docs stopped waiting on its dependencies (cert-manager, shared-gateway) reaching the new revision Kustomization events (DependencyNotReady)
05:07:35 Flux applied the Deployment; ReplicaSet platform-docs-69d45468b5 created pod platform-docs-69d45468b5-7m8qp on worker-3 ReplicaSet events
05:07:36–05:10:29 Five pulls failed: unexpected status from HEAD request to https://harbor.prod.skatzi.com/v2/skatzi/platform-docs/manifests/v1.136.9: 502 Bad Gateway; then ImagePullBackOff until 05:17:38 pod events
05:12:05 Detected: HealthCheckFailed, timeout waiting for: [Deployment/docs/platform-docs status: 'InProgress']; Taskbase raised #3311 Kustomization event, task #3311
05:13:36 The operator run of #3310 deleted the gate's dump pod, and the gate's trap scaled Harbor back #3310's report (pull request #1518)
05:14:13 harbor-core, harbor-jobservice, harbor-registry pods created again; Harbor healthy at 05:15:28 harbor events, #3310's report
05:17:36 HealthCheckFailed, failed early due to stalled resources: [Deployment/docs/platform-docs status: 'Failed']: the Deployment's progressDeadlineSeconds: 600 ran out at 05:17:35 Kustomization event
05:18:34 The kubelet's next retry pulled v1.136.9; pod Ready; old ReplicaSet platform-docs-bbbf57c6d scaled to 0 pod conditions, Deployment events
05:19:37 Resolved: Health check passed, Applied revision: main@sha1:d735603d Kustomization events

Root cause

The image was fine. Harbor was offline. A Renovate image bump in the Harbor gate Job (#1511) started a full pre-upgrade gate at 05:02. The gate scales Harbor's writers to 0 while it dumps, and image pulls from Harbor fail until it resumes them. That dump ran until 05:13:36, longer than usual, because the registry bucket had outgrown the gate's work volume (#3310).

The docs image publish workflow commits the new tag to main on its own (chore: update platform-docs image to … [skip ci]), so its rollout landed inside the gate's window. The pod pulls with imagePullPolicy: Always, so the cached v1.136.8 did not help, but the old pod kept serving. Kubelet image pull back-off doubles up to 5 minutes. The first retry after Harbor came back (05:14:13) was at 05:18:34, after both the Kustomization's 4m30s health-check wait and the Deployment's 600 s progress deadline had run out.

What the agent did

Read-only only. No write command was run on any cluster, and nothing was suspended, annotated or silenced.

  1. kubectl --context admin@mgmt-cluster -n flux-system get kustomization platform-docs showed Ready=True, Applied revision: main@sha1:d735603d…, Health check passed. The failure had already cleared when the run started (05:41).
  2. kubectl --context admin@mgmt-cluster -n docs get deploy,rs,pods -o wide and the pod's conditions showed v1.136.9 1/1, pod created 05:07:35, Ready 05:18:34, no restarts. The old v1.136.8 ReplicaSet was at 0.
  3. kubectl --context admin@mgmt-cluster -n docs get events showed the 502 Bad Gateway pull errors from Harbor and ImagePullBackOff until 05:17:38.
  4. kubectl --context admin@mgmt-cluster -n harbor get pods,events,jobs and kubectl … logs harbor-preupgrade-b4rg9 -c gate: the gate scaled Harbor to 0 at 05:02:45 and back at 05:14:13. Harbor's pods were recreated at 05:14:13.
  5. flux --context admin@mgmt-cluster get kustomizations -A, flux … get helmreleases -A: only harbor-preupgrade, harbor and harbor-postupgrade are not Ready, all from the failed gate that #3312, #3313 and #3314 own. All HelmReleases are Ready.
  6. Read Taskbase #3310, #3312, #3313, #3314, #3316, #3317 and #3310's pull request #1518, which already reports the Harbor outage and its fix.
  7. Rollback considered and not done. v1.136.9 pulled and serves, so a revert would only roll the docs site back. The missing-image procedure does not apply: the tag exists, and Harbor answered 502, not not found.
  8. Pull request (this report's) adds this report and its index row, and adds a note to that runbook procedure: a 5xx from Harbor means Harbor is down, not that the image is gone.

Resolution and verification

  • kubectl --context admin@mgmt-cluster -n flux-system get kustomization platform-docs: Ready=True, Healthy=True, last applied main@sha1:d735603d; five reconciles succeeded from 05:19:37 to 05:39.
  • kubectl --context admin@mgmt-cluster -n docs get deploy platform-docs: 1/1 available, image harbor.prod.skatzi.com/skatzi/platform-docs:v1.136.9, Progressing=True NewReplicaSetAvailable at 05:18:34.

Follow-ups

  • none for this object. The Harbor gate's downtime and its fix are tracked by #3310 (pull request #1518), #3314 (re-run the gate), #3315 (bucket size alert) and #3316 (the owner's decision on bounding the downtime). When #3314 re-runs the gate, Harbor pulls fail again for the dump. A docs image bump or any other rollout that pulls from Harbor in that window fails the same way and recovers the same way.

References

  • Alert: none (Flux HealthCheckFailed event, raised as a post-merge failure task)
  • Taskbase incident task: #3311; the Harbor gate incident #3310
  • Runs: the operator run of #3311
  • Pull requests: #1511 (the image bump that started the gate); #1518 (#3310's fix and report); this report's pull request
  • Runbook sections: Harbor upgrade gate, HelmRelease stalled on an image missing from Harbor

Open questions

  • Which other pods or CI jobs failed to pull from Harbor between 05:02 and 05:15 (#3310's open question). This report answers it only for platform-docs.