<mohammadrony>

Neat

Clean up kubectl get -o yaml output by removing managed fields, status noise, and default values.

Installation

kubectl krew install neat

Usage

kubectl neat -h

Clean up a deployment manifest

kubectl get deployment DEPLOYMENT -n NAMESPACE -o yaml | kubectl neat

Clean up any resource

kubectl get RESOURCE NAME -o yaml | kubectl neat

Save a clean manifest to file

kubectl get deployment DEPLOYMENT -o yaml | kubectl neat > deployment.yaml