CronJob Application
Follow the following steps to configure and deploy cron jobs.
Adding a Cron Application
- Create a new cron application:
- Click the "+" icon in the top-right corner and select "Cron".
- Configure the application:
- Name: Enter a name for your application (e.g., periodic-cache-cleaner).
- Cluster: Select the Kubernetes cluster for deployment.
- Add a container:
- Container registry: Deploy an application from a public or private container registries.
- Option 1: Deploy from private container registry
- Select the container registry connection from where container image needs to be fetched. Learn more about container registry connection here.
- Image repository: Select the desired image repository.
- Image tag: Select the image tag you wish to deploy.
- Option 2: Public repository
- Select “Public repository” from the container registry dropdown.
- Public repository URL: Enter the public repository URL or name you would use to pull the image.
- Examples:
- Docker Hub:
nginx
docker.io/library/nginx
- GitHub Container Registry (GHCR):
ghcr.io/kapstan-io/agent
- Amazon Elastic Container Registry (ECR):
public.ecr.aws/karpenter/controller
- Other:
quay.io/prometheus/node-exporter
- Docker Hub:
- Examples:
- Image tag: Select the image tag you wish to deploy.
- Option 1: Deploy from private container registry
- Container registry: Deploy an application from a public or private container registries.
- Finalize and deploy:
- Click "Confirm" to create the application and container.
- You'll be redirected to the application overview page to deploy the application. See the Deploy section for deployment instructions.
Configure application
Go to application configurations to learn more about application configurations like environment variables, networking, hardware and more.
Deploy
Go to deployment and event history to learn more about deploying the application and viewing the event history.