Tous les labs

Create resilient batch workloads

Intermediate ~22 mink8s

Create Job checksum with three completions and two-way parallelism, then CronJob cleanup every 15 minutes with concurrency forbidden.

Simulateur déterministe — tape une commande (kubectl get pods -A) pour commencer.
student@kubelab:~$
Objectifs
  • Job checksum: completions 3, parallelism 2
  • CronJob cleanup: */15 * * * *
  • Set concurrencyPolicy Forbid and successfulJobsHistoryLimit 2
Étapes suggérées
  1. Generate skeletons imperatively, then edit.
  2. Job fields are spec.completions and spec.parallelism.
  3. CronJob jobTemplate contains a Job spec.
Indices
Voir la solution
# Generate both manifests, add the requested fields, then apply in namespace batch.