Hello, I used
kubectl get pod app --namespace elastic-stack -o yaml > app.yaml to create a yaml file but when I open it there are way too many fields. I even compared with solution video it has very less but mine is filled with loads of
fields Why is that?
Hello @Sidd Please refer this https://kodekloud.slack.com/archives/CDR4R9Z7E/p1618679258362000
Thanks @rakesh gorai no option to remove it? Also can I just modify and create this file?
You can use
grep -v command.
kubectl get po nginx -oyaml | grep -v 'f:' > pod.yaml
hi you can add below to the comamnd then take out out in yaml file