CKAD Prep Part 14 – Jobs & Cronjobs

Jobs & Cronjobs Jobs A Job is a Kubernetes object that executes a workload and then terminates once the workload is complete. When a Job finishes, the containers involved are terminated and the Pod transitions to the Completed state. Jobs and Pods are similar in that they're both used to run containers. However, Pods typically run containers continuously, whereas Jobs run containers to do a discrete piece of work and then terminate. The sample Job below is taken from the Kubernetes documentation and uses Perl to compute π to 2000 decimal places. apiVersion: batch/v1 kind: Job metadata: name: pi spec: template: spec: containers: - name: [...]