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
--async
Do not wait for the action to complete on the server before returning.
--cpu-cores=string
Amount of dedicated CPU cores to give the Task (for example 256M, 1024M, 1G).
-k, --disk-quota=string
Amount of dedicated disk space to give the Task (for example 256M, 1024M, 1G).
-h, --help
help for create-job
-m, --memory-limit=string
Amount of dedicated memory to give the Task (for example 256M, 1024M, 1G).
-s, --schedule=string
Cron schedule on which to execute the Job.
Inherited flags
These flags are inherited from parent commands.
--as=string
Username to impersonate for the operation.
--as-group=strings
Group to impersonate for the operation. Include this flag multiple times to specify multiple groups.
--config=string
Path to the Kf config file to use for CLI requests.
--kubeconfig=string
Path to the kubeconfig file to use for CLI requests.
--log-http
Log HTTP requests to standard error.
--space=string
Space to run the command against. This flag overrides the currently targeted Space.