Job Management
You can use Ketch's provider for Pulumi to provide developers with an easy way to deploy jobs across multiple Kubernetes clusters.
Deploying Jobs
import * as pulumi from "@pulumi/pulumi";
import * as ketch from "@shipa-corp/kpulumi";
const item = new ketch.Job("js-job-1", {
job: {
name: "js-job-1",
version: "v1",
framework: "dev",
description: "Pulumi NodeJs job",
policy: {
restartPolicy: "Never"
},
containers: [
{
name: "pi",
image: "perl",
commands: [
"perl",
"-Mbignum=bpi",
"-wle",
"print bpi(2000)"
],
}
],
}
});
export const jobName = item.job.name;
Specification
Component | Type | Description |
---|---|---|
name | string | The name of the job to be deployed by Ketch Required: Yes |
version | string | Job deployment version. Required: No |
framework | string | The framework Ketch should use to deploy the job. Required: Yes |
description | string | Job description. Required: No |
policy | string | Job restart policy. Required: Yes |
containers | string | The Job container image and command details. Required: Yes |
Updated almost 2 years ago