This is article 9 of 10 in Beyond Kubernetes Defaults. Read article 8: NetworkPolicy Is Not Workload Identity first, or start with article 1.
Kubernetes makes it easy to deploy:
registry.example/service:candidate
That is convenient.
It is not strong evidence that the bytes running tomorrow are the bytes you tested today.
Tags are names, not immutable artifacts
A registry tag can move.
If candidate points to digest A during testing and digest B later, the YAML can remain identical while the artifact changes.
That is fine for many development workflows.
For a release we intend to stand behind, we want stronger provenance.
Bind the chain
A useful evidence chain is:
source revision
-> image build
-> registry digest
-> deployment uses repo@sha256:...
-> runtime imageID matches the expected digest
Each link answers a different question.
- Source revision: what code did you intend to build?
- Registry digest: what immutable artifact did the registry store?
- Deployment reference: what artifact did you ask Kubernetes to run?
- Runtime imageID: what did the node actually start?
If those identities match, the claim that this is the artifact you tested has much less ambiguity.
Why preloaded image shortcuts are dangerous
Local clusters encourage shortcuts: build an image on the host and import it directly into cluster nodes.
That can be useful for fast development.
It is weaker as release evidence because it bypasses the same registry pull path the real deployment will exercise.
A cluster can therefore pass while:
- registry credentials are wrong;
- mirror configuration is wrong;
- the expected digest is absent;
- image pull policy behaves differently;
- the node already has a stale local image.
For release testing, we prefer the normal path: build, push, obtain the immutable digest, deploy by digest, and check the runtime image identity.
Kubernetes is not the missing piece
Kubernetes supports digest references perfectly well.
The gap is process discipline.
The platform does not know which artifact your organization tested, or which source revision it should correspond to. That release evidence belongs in your build and release process.
Configuration equality is not artifact equality
Identical YAML can run different bytes.
If a release claim matters, bind it to immutable identities wherever possible.
The same principle applies beyond images. A release also depends on its chart or manifest version, its configuration, its policy files and its dependencies. If an input can change behavior, your release evidence should know which version of it you tested.
A tag is a useful pointer.
A digest is a much better answer to “what exactly did we test?”
Digest pinning also improves debugging
Immutable provenance is not only a security control. It makes incidents easier to reason about.
When a Pod is unhealthy, operators can ask:
Which source revision produced this image?
Which registry digest was tested?
Which digest did the Deployment request?
Which imageID is the runtime actually using?
If those answers are exact, “works on my machine” and stale-node-cache problems become much easier to isolate.
Release testing should include the pull path
A release is not fully exercised if the test environment bypasses the artifact distribution path.
The cluster should be able to:
- reach the registry or mirror;
- authenticate if required;
- resolve the exact digest;
- pull it after local cache removal;
- start the container;
- report the matching runtime image identity.
Catching this class of deployment defect in a test cluster is much cheaper than catching it during a real rollout.
Tags still have a place
Human-friendly tags remain useful for browsing and promotion workflows.
A release process can publish both:
service:v1.2.3
service@sha256:...
The tag tells humans what the artifact represents. The digest tells automation exactly what it is.
Treating those as complementary gives you convenience without sacrificing provenance.