Automation · Kubernetes Automation
Jobs
Cheat sheet · https://pcornel.dk/topic.php?topic=5799
Answer
Kubernetes Jobs run pods until a task completes successfully, such as a database migration, with retries via backoffLimit and parallelism settings.
Remember
- A Job runs pods until they succeed.
- backoffLimit controls retries.
- Clean up finished Jobs with ttlSecondsAfterFinished.
First checks
kubectl get jobs -n <ns>— jobskubectl logs job/<n>— output- backoffLimit/activeDeadlineSeconds/ttlSecondsAfterFinished — limits
Verify in this order
Job → pods → completion
Where it usually breaks
Trigger → queue accepted → worker lease/pickup → task running → terminal result → target mutation/read-back → effective runtime state → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5799