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: {}
abhishek puranam:
awk ‘!/f:|k:|{}/’ service.yaml > service2.yaml