Workshop wiki · German and English

06 Jobs CronJobs

Dieses Lab zeigt einen einmaligen Job und einen regelmäßig geplanten CronJob.

Workshop examples as ZIP files
Learning progress in the web app

Mark chapters as read, view reading progress and check off practice modules after enabling the optional web app. Workshop progress is calculated from chapters across all document pages. Your choices stay on this device; there is no account or server sync. Installation is not required. Withdrawing your choice in Privacy settings deletes the progress.

Reading progress0%
0%
0 / 5 chapters read
Other language versionGreek ↗

06 Jobs CronJobs

Dieses Lab zeigt einen einmaligen Job und einen regelmäßig geplanten CronJob.

Prüfen

bash
kubectl apply --dry-run=client -f manifests/
01 / 05

Ausführung

bash
kubectl apply -f manifests/
kubectl wait --for=condition=complete job/checksum-once -n batch-lab --timeout=60s
kubectl logs -n batch-lab job/checksum-once
kubectl get cronjob,job,pod -n batch-lab

Optional kann der CronJob sofort getestet werden:

bash
kubectl create job manual-cleanup-report \
  --from=cronjob/cleanup-report \
  -n batch-lab
kubectl wait --for=condition=complete job/manual-cleanup-report -n batch-lab --timeout=60s
kubectl logs -n batch-lab job/manual-cleanup-report
02 / 05

Lernpunkte

  • Job eignet sich für einmalige, abschließbare Arbeit.
  • CronJob erzeugt Jobs nach Zeitplan.
  • concurrencyPolicy: Forbid verhindert überlappende Läufe.
  • ttlSecondsAfterFinished räumt abgeschlossene Jobs später automatisch auf.
03 / 05

Cleanup

bash
kubectl delete namespace batch-lab
04 / 05

Quelle

Orientiert an der offiziellen Kubernetes-Dokumentation zu CronJobs: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/

05 / 05

K8S · Orthevs Academy

31 modules as one continuous learning path.

The sequence remains unchanged: from the lab skeleton through technical foundations and operating models to final troubleshooting. The technical directory names are deliberately preserved.

Orthevs – Engineering the foundation for what comes next.

Orthevs as an app

Install Orthevs

The Orthevs web app can be installed on supported mobile devices and desktop browsers.

iPhone and iPad

Open Orthevs in Safari. Tap Share, then Add to Home Screen. Enable Open as Web App if offered, then tap Add.

Android

For the web app, open the browser menu and choose Install app or Add to Home screen. Confirm the installation.

Desktop browser

Open the browser menu or the install icon in the address bar, then choose Install app or Add to Dock.

Web app installation depends on your browser. If no install prompt appears, follow the browser steps shown above.