Which part needs to be edited if I do kubectl get pod <podname> -o yaml &g . . .

I Malla:
Which part needs to be edited if I do kubectl get pod <podname> -o yaml > test.yaml

Samir:
What do you want to do?

I Malla:

I Malla:
I want a manifest file without managedfield and f: as seen in image of the created resources

I Malla:
If we cannot get a clean yaml then I would like to know what are these and can I make change and reapply the yaml?

Hinodeya:
@I Malla follow the course of json provided by @Mumshad Mannambeth it’s a free :wink:

Hinodeya:
https://kodekloud.com/p/json-path-quiz

Fernando Jimenez:
managedFields are created on new object to help the control plane know about the object and manage it via a feature named server side apply
If you notice, it is declared in the yaml file under the metadata. You may ignore it completely and even remove it all the way, if your cluster is not using server side apply.

I Malla:
@Hinodeya @Fernando Jimenez thank you for the response and all the info .
These responses keep me motivated to go on .
Otherwise I wouldn’t have been able to continue as I get stuck frequently

Fernando Jimenez:
@I Malla Keep it up!