I would like to deploy an application cluster by managing my deployment via Kubernetes Deployment object. The documentation has me extremely confused. My basic layout has the following components that scale independently:
- API server
- UI server
- Redis cache
- Timer/Scheduled task server
Technically, all 4 above belong in separate pods that are scaled independently.
My questions are:
- Do I need to create
pod.ymlfiles and then somehow reference them in thedeployment.ymlfile or can a deployment file also embed pod definitions? - Kubernetes documentation seems to imply that the
specportion ofDeploymentis equivalent to defining one pod. Is that correct? What if I want to declaratively describe multi-pod deployments? Do I need multiple deployment.yml files?