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
- Generate skeletons imperatively, then edit.
- Job fields are spec.completions and spec.parallelism.
- CronJob jobTemplate contains a Job spec.
Indices
Voir la solution
# Generate both manifests, add the requested fields, then apply in namespace batch.