Skip to main content
Boost your DevOps efficiency! Dive into our latest white paper.Read Now

CronJob

Follow the following steps to configure and deploy cron jobs.

Adding a Cron Application

  1. Create a new cron application:
    • Click the "+" icon in the top-right corner and select "Cron".
  2. Configure the application:
    • Name: Enter a name for your application (e.g., periodic-cache-cleaner).
    • Cluster: Select the Kubernetes cluster for deployment.
  3. 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
      • Image tag: Select the image tag you wish to deploy.
  4. 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.

Can't find what you need?