In declarative approach , what is the best way to get a default/sample yaml file . . .

Abdul:
In declarative approach , what is the best way to get a default/sample yaml file which we can edit on vi as per our requirement , do we need to copy it everytime from k8 doc ?

unnivkn:
its up to you, how you want to do. Either from doc or you can create yourself using imperative commands & update as per your need. eg: k run mypod --image=nginx --dry-run=client -o yaml>1.yaml