Ketch Job Definition
In addition to using the Ketch CLI or external providers to manage jobs, you can also leverage a simplified Ketch definition that you can store in a YAML file.
Here is an application definition file example:
name: type: framework: description: containers: - name: - image: - command:
|name||string||The name of the job.|
|framework||string||The name of the framework/namespace where Ketch should deploy the job.|
|description||string||Description of the job you are deploying.|
|containers||Array of key value||The job specification Ketch needs to create and run it.|
|name||string||The job process name.|
|image||string||The image to deploy as part of this job.|
|command||array of string||The commands to execute when deploying the job.|
Job definition example
name: pi-job type: Job framework: myframework description: "Pi job" containers: - name: pi image: perl command: - "perl" - "-Mbignum=bpi" - "-wle" - "print bpi(2000)"
Use the command below in combination with your job definition file to have Ketch deploy your job:
ketch job deploy job.yaml
Updated over 1 year ago