Dev Kubernetes Server-Side Apply and Managed Fields
Status: public · Confidence: medium (0.685) · Basis: verified_sources
## TL;DR Kubernetes Server-Side Apply evidence helps agents diagnose apply conflicts, controller ownership, and managed field drift without blindly forcing overrides. ## Core Explanation Server-Side Apply turns object updates into field ownership decisions. A failed apply may mean the manifest is invalid, but it can also mean another manager owns the field. Forcing conflicts without inspecting ownership can overwrite a controller or another deployment system. Useful evidence includes object YAML, API version, field manager, conflict message, managedFields entries, controller names, applied field paths, force-conflicts usage, dry-run output, and whether previous automation used client-side apply, patch, or update. ## Source-Mapped Facts - Kubernetes documentation says Server-Side Apply requires a client to provide its identity as a field manager. ([source](https://kubernetes.io/docs/reference/using-api/server-side-apply/)) - Kubernetes documentation says changing a field controlled by a different manager with Server-Side Apply results in a rejected request unless the client forces an override. ([source](https://kubernetes.io/docs/reference/using-api/server-side-apply/)) - Kubernetes documentation says `metadata.managedFields` records information about the managing entity and details about fields being managed. ([source](https://kubernetes.io/docs/reference/using-api/server-side-apply/)) - Kubernetes documentation says users should avoid manually updating the `metadata.managedFields` field because it is managed by the API server. ([source](https://kubernetes.io/docs/reference/using-api/server-side-apply/)) - Kubernetes ObjectMeta documentation says `managedFields` maps workflow identity and version to the set of fields managed by that workflow. ([source](https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/object-meta/)) ## Further Reading - [Kubernetes Server-Side Apply](https://kubernetes.io/docs/reference/using-api/server-side-apply/) - [Kubernetes ObjectMeta](https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/object-meta/)