kubectl-fields is a kubectl plugin that annotates Kubernetes YAML object
outputs with the manager of each field.
This helps you understand which controller is managing which part of your Kubernetes objects, and understand effects of server-side apply.
Pipe the output of kubectl get -o yaml --show-managed-fields to kubectl-fields:
kubectl get deploy/my-app -o yaml --show-managed-fields | kubectl fieldsFor now, get this tool via:
go install github.com/ahmetb/kubectl-fields/cmd/kubectl-fields@latest
and ensure your GOBIN directory (typically ~/go/bin) is in your $PATH.
- Display separate color for each field manager.
- Can handle multiple YAML documents or
Listresults from kubectl output. - Use
--aboveto add annotations above the fields instead of inline - Vertical alignment of YAML comments (the tool still generates valid YAML output)
- Use
--mtime=relative|absolute|hideto show when the field was edited - Use
--show-operationto also display if it was aPatchorApplyoperation.
Use GSD to develop this project and have it reuse existing context/design docs checked into the repo.

