<p>Where can I find an official template which describes how to create your <code>.yaml</code> file to setup services/pods in Kubernetes?</p>

<p>You can find the specification for a pod here <a href="http://kubernetes.io/docs/api-reference/v1/definitions/#_v1_pod" rel="nofollow noreferrer">http://kubernetes.io/docs/api-reference/v1/definitions/#_v1_pod</a></p>

<p>A good starting point is also the examples <a href="https://github.com/kubernetes/kubernetes/tree/master/examples" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/tree/master/examples</a></p>

<p>Additional you can create the ressource via kubectl and export the resource to yaml</p>

<p>e.g. for a pod you can run this command:</p>

<p><code>kubectl run nginx --image=nginx 
 kubectl get pods ngnix -o yaml &gt; pod.yaml</code></p>
