CronJob
Default version: batch/v1beta1
Example
Job Template Retrieval
CronJobs rely on jobs, so you can get the pod template as K8sJob
class:
To retrieve the pod template as an array, pass false
to the retrieval method:
CronJob Status
The Status API is available to be accessed for fresh instances:
Active Jobs
You can access the active jobs for any cronjob. The active jobs return an \Illuminate\Support\Collection
instance, on which you can chain various methods as described here: https://laravel.com/docs/master/collections
The $job
variable is a K8sJob
instance class that is already synced with the existing job. Check Job documentation for the K8sJob instance.
Last updated