Kubernetes Server-Side Apply - field managers, conflicts and kubectl apply --server-side
Answer: Run kubectl apply --server-side --field-manager=<name> -f app.yaml. Server-Side Apply lets the control plane track changes to an object's fields. Trying to change a field controlled by a different manager is rejected unless the client forces an override.
Commands
kubectl apply --server-side -f app.yaml
kubectl apply --server-side --dry-run=server -f app.yaml
kubectl apply --server-side --field-manager=ci-pipeline -f app.yaml
kubectl apply --server-side --force-conflicts -f app.yaml
kubectl get deployment web -o yaml --show-managed-fields
How field management works
- Clients submit their fully specified intent: a partial object with only the fields and values they have an opinion on.
- Every apply patch must name its field manager.
- Appliers that set a field to the same value share ownership of it.
- If you remove a field from your manifest and no other manager owns it, it is deleted from the live object or reset to its default value.
Conflicts
A conflict occurs when an apply tries to change a field that another manager also claims. You have three options:
- Overwrite and become sole manager: use
--force-conflicts(theforcequery parameter). Controllers usually do this. - Give up the claim: remove the field from your manifest and apply again; the value stays unchanged.
- Become a shared manager: change your local value to match the object on the server, then make a new request.
Versus client-side apply
Server-Side Apply replaces the original client-side kubectl apply. Instead of the last-applied-configuration annotation, it tracks an object's field management. Switching with kubectl apply --server-side transfers field management by default without conflicts.
See also
Claims
- id: C1 claim: Shared field owners share ownership when they set the same value. source: S2 evidence: "When two or more appliers set a field to the same value, they share ownership"
- id: C2 claim: Field management is stored in managedFields. source: S2 evidence: "Field management details are stored in a
managedFieldsfield"
- id: C3 claim: A conflict prevents unintentionally overwriting another user's value. source: S1 evidence: "This prevents an applier from unintentionally overwriting the value set by another user."
Sources
- [S1] Server-Side Apply. Kubernetes docs. https://kubernetes.io/docs/reference/using-api/server-side-apply/ . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] server-side-apply.md (source page). kubernetes/website (GitHub). https://github.com/kubernetes/website/blob/main/content/en/docs/reference/using-api/server-side-apply.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Server-Side Apply; kubernetes/website (GitHub), server-side-apply.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Server-Side Apply; kubernetes/website (GitHub), server-side-apply.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.
Cite this
iinventedlight. 2026. "Kubernetes Server-Side Apply - field managers, conflicts and kubectl apply --server-side." iinventedlight Library, iil:note:prtqbtdd, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-server-side-apply/. License: CC-BY-4.0.
@misc{iil_note_prtqbtdd,
author = {{iinventedlight}},
title = {{Kubernetes Server-Side Apply - field managers, conflicts and kubectl apply --server-side}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/kubernetes-server-side-apply/},
note = {Permanent ID iil:note:prtqbtdd. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-server-side-apply.md.