Job Components
Job components are used to execute tasks inside of an install.
A job component runs a provided container image as a Kubernetes Job workload. You can use this to execute one-off tasks as part of app deployments and updates.
Because they run Kubernetes job workloads, job components are currently only supported by Kubernetes sandboxes.
If you have a use case for using jobs with other types of sandboxes please get in touch.
Configuring a Job component
You can configure a job component to execute commands in a container image. Using variables you can reference other component images, and configure environment variables for the job.
Using a Published Image
You can run any published Docker image.
Using a Custom Image
You can use a custom image by referencing either a docker build or container image using variables.
Use cases
Job components are designed to be an escape hatch to allow you to run any operational commands needed.
Common use cases include:
- running database imports to import data for a customer install.
- running database migrations.
- running operational debugging commands to inspect an install.
- deploying or provisioning custom resources not supported by other components.
- modifying
kubernetes
resources, such as adding secrets.