You can use Ketch's provider for Crossplane to provide developers with an easy way to deploy jobs across Kubernetes clusters.
apiVersion: ketch.io/v1alpha1 kind: Job metadata: name: crossplane-job spec: forProvider: name: crossplane-job framework: dev backoffLimit: 4 policy: restartPolicy: Never containers: - name: pi image: perl command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
The name of the job to be deployed by Ketch
The framework Ketch should use to deploy the job.
Specifies the number of retries before considering a Job as failed. The back-off limit is set by default to 6
Job restart policy.
By default, a Job will run uninterrupted unless a Pod fails (restartPolicy=Never) or a Container exits in error (restartPolicy=OnFailure), at which point the Job defers to the backoffLimit described above. Once the backoffLimit has been reached the Job will be marked as failed and any running Pods will be terminated.
The Job container image and command details.
Updated 7 months ago