Deploy by Digest
REAL
Production is changed by patching one container's image, by
digest, in one workload at a time. A digest (image@sha256:…) names
exact bytes; a tag can be moved, a digest cannot. This is the
procedure the public playbooks write down and have executed (ai-meta
playbooks/257-worker-5115-noop-roll/README.md, 2026-08-11;
playbooks/516-ehdb-426-rollout/README.md, 2026-11-04).
The steps
- Record the rollback first. Read the digest each workload runs
now and write it down.
noetl/opskeeps an append-only ledger per component (ci/manifests/noetl/ledger/*.tsv: version, digest, released, git sha, note); "the rollback target is the row above the one currently running". - Dry-run against the server, and diff the whole object. Render
the patch with
--dry-run=serverand compare it with the live object. Proceed only if the diff is exactly the change you meant.playbooks/517-floor-exact/roll2.shmechanizes this: it "refuses unless the diff is exactly the one intended change". - Patch the named container only.
kubectl set image <workload> <container>=<image>@sha256:<digest>. A wildcard (*=) also replaces init containers; that broke a start-up check on kind (516 README). Container names differ between kind and production, and a wrong name makesset imagea silent no-op (playbooks/210-t5-readiness/ROLLBACK.md). - Verify from the process, by the
versionon its*_build_infoseries, not from the Deployment spec. - Rollback is the same command with the recorded digest.
Why not apply the manifest
Reworked production manifests were applied after a server-side dry-run that checked one field: that the running image would not change. It did not. But the same manifest declared a volume for a claim that had never existed. The writer pod could not schedule, and because it hosts both buses, dispatch stopped for about 55 minutes. Three of five workloads also rolled, because removing pod-template annotations changes the template hash. A whole-object diff would have shown the volume at once (ai-meta wiki Sessions-Log, 2026-09-08).
The lesson is in step 2: a dry-run answers only the question you ask
it. Diff everything, and know before you patch whether the change
touches spec.template, because then the workload restarts.