Interview Prep/Kubernetes/Architecture & Control Plane

What is `resourceVersion` and how does optimistic concurrency work?

IntermediateConceptArchitecture & Control Plane
Answer

Every object carries a resourceVersion derived from etcd's revision. An update must include the version it was based on; if the object changed in between, the API server returns 409 Conflict ("the object has been modified; please apply your changes to the latest version"). Clients then re-read and retry instead of overwriting blindly.

All Kubernetes questions Roadmap: Kubernetes core

More on Architecture & Control Plane