Version: v1.0
Task
Description
Describes jobs that run code or a script to completion.
Samples
apiVersion: core.oam.dev/v1beta1kind: Applicationmetadata:name: app-workerspec:components:- name: mytasktype: taskproperties:image: perlcount: 10cmd: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
Specification
# Properties+---------+--------------------------------------------------------------------------------------------------+----------+----------+---------+| NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |+---------+--------------------------------------------------------------------------------------------------+----------+----------+---------+| cmd | Commands to run in the container | []string | false | || count | specify number of tasks to run in parallel | int | true | 1 || restart | Define the job restart policy, the value can only be Never or OnFailure. By default, it's Never. | string | true | Never || image | Which image would you like to use for your service | string | true | |+---------+--------------------------------------------------------------------------------------------------+----------+----------+---------+