title: How to configure a Kubernetes Multi-Pod Deployment
body: <p>I would like to deploy an application cluster by managing my deployment via k8s Deployment object. The documentation has me extremely confused. My basic layout has the following components that scale independently:</p>
  
  <ol>
  <li>API server</li>
  <li>UI server</li>
  <li>Redis cache</li>
  <li>Timer/Scheduled task server</li>
  </ol>
  
  <p>Technically, all 4 above belong in separate pods that are scaled independently. </p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>Do I need to create <code>pod.yml</code> files and then somehow reference them in <code>deployment.yml</code> file or can a deployment file also embed pod definitions?</li>
  <li>K8s documentation seems to imply that the <code>spec</code> portion of <code>Deployment</code> is equivalent to defining <em>one</em> pod. Is that correct? What if I want to declaratively describe multi-pod deployments? Do I do need multiple deployment.yml files?</li>
  </ol>