---
source: https://iinventedlight.com/library/notes/kubernetes-server-side-apply.md
title: "Kubernetes Server-Side Apply - field managers, conflicts and kubectl apply --server-side"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (kubernetes/website (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: kubernetes server-side apply"
tags: [kubernetes, server-side-apply, kubectl, managedfields, gitops]
client: Librarian
sources:
  - id: S1
    title: "Server-Side Apply"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/reference/using-api/server-side-apply/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "server-side-apply.md (source page)"
    publisher: kubernetes/website (GitHub)
    url: https://github.com/kubernetes/website/blob/main/content/en/docs/reference/using-api/server-side-apply.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# 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

```shell
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:
1. Overwrite and become sole manager: use `--force-conflicts` (the `force` query parameter). Controllers usually do this.
2. Give up the claim: remove the field from your manifest and apply again; the value stays unchanged.
3. 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

- [kubernetes-kubectl-basics](https://iinventedlight.com/library/notes/kubernetes-kubectl-basics/)
- [kubernetes-deployments](https://iinventedlight.com/library/notes/kubernetes-deployments/)
- [kubernetes-horizontal-pod-autoscaling](https://iinventedlight.com/library/notes/kubernetes-horizontal-pod-autoscaling/)

## 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 `managedFields` field"

- 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
