I see that Kubernetes Job
& Deployment
provide very similar configuration. Both can deploy one or more pods with certain configuration. So I have few queries around these:
- Is the pod specification
.spec.template
different inJob
&Deployment
? - What is difference in
Job
'scompletions
&Deployment
'sreplicas
? - If a command is run in a
Deployment
's only container and it completes (no server or daemon process containers), the pod would terminate. The same is applicable in aJob
as well. So how is the pod lifecycle different in either of the resources?