title: How to generate yaml template with kubectl command?
body: <p>Is it possible to generate yaml with kubernetes kubectl command ? to clarify - I'm not talking about generating yaml from existing deployments like kubectl get XXXX -o yaml, but merely about generating yamls for the very first time for pod, service, ingress, etc. </p>
  
  <p>PS There is a way to get yaml files from kubernetes.io site ( <a href="https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/application/simple_deployment.yaml" rel="noreferrer">1</a> , <a href="https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/application/update_deployment.yaml" rel="noreferrer">2</a> ) but I am looking if there is a way to generate yamls templates with kubectl only.</p>