Name
kf create-job - Create a Job on the App.
Synopsis
kf create-job APP_NAME JOB_NAME COMMAND [flags]
Description
The create-job sub-command lets operators create a Job that can be run on a schedule or ad hoc.
Examples
kf create-job my-app my-job "sleep 100"
Flags
--asyncDo not wait for the action to complete on the server before returning.
-c, --concurrency-policy=stringSpecifies how to treat concurrent executions of a Job: Always (default), Replace, or Forbid. (default "Always")
--cpu-cores=stringAmount of dedicated CPU cores to give the Task (for example 256M, 1024M, 1G).
-k, --disk-quota=stringAmount of dedicated disk space to give the Task (for example 256M, 1024M, 1G).
-h, --helphelp for create-job
-m, --memory-limit=stringAmount of dedicated memory to give the Task (for example 256M, 1024M, 1G).
-s, --schedule=stringCron schedule on which to execute the Job.
Inherited flags
These flags are inherited from parent commands.
--as=stringUsername to impersonate for the operation.
--as-group=stringsGroup to impersonate for the operation. Include this flag multiple times to specify multiple groups.
--config=stringPath to the Kf config file to use for CLI requests.
--kubeconfig=stringPath to the kubeconfig file to use for CLI requests.
--log-httpLog HTTP requests to standard error.
--space=stringSpace to run the command against. This flag overrides the currently targeted Space.