kubectl apply --server-side -f deploy.yaml

Category: Kubernetes & Containers

kubectl apply --server-side -f deploy.yaml

Apply manifests with server-side apply

Lets the API server compute the patch instead of the kubectl client, avoiding conflicts when multiple controllers manage the same field. The server tracks each field's owning manager, so ownership shows up in kubectl describe output. Fall back to plain kubectl apply -f deploy.yaml if your cluster predates server-side apply.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.