Hello All, when i run the command to get yaml format of an existing pod i get lo . . .

kiran reddy:
Hello All, when i run the command to get yaml format of an existing pod i get lot of extra fields compared to the solutions of a practice test video on Kodecloud? why is that? i am using the same exact command. kubectl get pod blue -o yaml > blue.yaml
for example following fields:
fieldsV1:
f:spec:
f:containers:
k:{“name”:“red-container”}:
.: {}
f:command: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:resources: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}

Tanumoy Ghosh:
<Slack conversation>

Tej_Singh_Rana:
Hello, @kiran reddy
In v1.21, you won’t see these fields.

abhishek puranam:
awk ‘!/f:|k:|{}/’ service.yaml > service2.yaml