Menu

1 / 2

Desired State Is Not Enough: Authority, Generations, and Drift

DEV Community: kubernetes·Zen Mesh Inc.·12 days ago
#F3Ot4F46
#devtokubernetes#devto#dev#state#desired
Long article (785 words) — no AI summary yet.
Reading 0:00
15s threshold

This is article 7 of 10 in Beyond Kubernetes Defaults . Read article 6: Process-Local Deduplication Breaks the Moment You Add a Second Replica first, or start with article 1 .

Kubernetes taught an entire generation of systems engineers to think declaratively:

Describe the state you want and reconcile toward it.

That model is powerful.

The difficulty begins when a distributed system has several actors reporting and applying state across network boundaries.

Three states, not one

A useful separation is:

Desired

What the authoritative control plane wants.

Observed

What the runtime reports is actually true.

Last applied

What the authorized reconciler knows it successfully applied.

Those are not interchangeable copies of one record.

Why ownership matters

Suppose a desired object says generation 8.

The remote workload reports generation 7.

The controller remembers successfully applying generation 6.

That difference contains information:

desired = 8 observed = 7 last-applied = 6

Enter fullscreen…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.