<p>Hi I used to generate kubernetes .yaml file from deployed applications, but recently I am getting a messy .yaml file. For instance:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: &quot;1&quot;
  creationTimestamp: &quot;2022-01-16T16:02:21Z&quot;
  generation: 1
  labels:
    name: webapp
  managedFields:
  - apiVersion: apps/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .: {}
          f:name: {}
      f:spec:
        f:progressDeadlineSeconds: {}
        f:replicas: {}
        f:revisionHistoryLimit: {}
        f:selector: {}
</code></pre>
<p>Can you see all the <code>f: etc..</code> ? What does that mean?</p>
<p>Is there a way to generate a simplified version of the deployed applications, pods and so on?</p>
<p>Without all the things not specified?</p>
<p>Used command was:</p>
<pre><code>kubectl get deployments.apps webapp -o yaml &gt; webapp.yaml
</code></pre>

pedro_bb7
<p>Upgrade your kubectl to v1.21 and above which does not include managed field by default. To see managed field again, append <code>--show-managed-fields</code> to your command.</p>
