Cron

This chart deploys and executes a CronJob using dedicated docker images.

This chart deploys and schedules a cron job that runs a specific docker image and terminates.

Containers

Main Container

Main container of this chart is a dynamic docker image.

Configuration

Local Configuration

Chart contains:

  • 1 x config map containing build/execution files mounted on /app/config

  • 1 x environment config map that includes cloud related variables

Global Configuration

Chart containers also have access to:

  • global-config: Mounted on /app/globalconfig including key-value pairs and extra lines to include in application.properties files

  • global-config-env: A config map that can be used to add environment variables for all namespace deployments

  • global-secrets: Mounted on /app/globalsecrets including key-secret pairs and extra lines to include in application.properties files

  • global-secrets-env: A secret that can be used to add environment variables for all namespace deployments

Configuration

The following table lists the configurable parameters of the Cron chart and their default values.

Parameter
Description
Default

id

unique id of the deployment package

"x"

namespace

namespace to deploy on

"task"

cloud

cloud vendor to use for deployment (e.g. gcp, aws)

"TBD"

pyRierinoVersion

Rierino version for python libraries

"0.1.1"

concurrencyPolicy

whether multiple jobs can run concurrently

"Allow"

schedule

cron job schedule

"0 0 1 * *"

poolSelector

node pool selector annotation specific to cloud vendor

"TBD"

pool

node pool to deploy on

"admin-node-pool"

image

docker image to execute

"ghcr.io/rierino-open/py-dynamic:dynamic"

imagePullPolicy

policy for pulling container image

"IfNotPresent"

command

entrypoint for the container (available on dynamic image, running python with a -s script for dependencies)

"./command.sh"

pyRepo

repository for loading Python module used in args of command.sh

"rierino-open/py-runner"

pyMainModule

main module/command to execute used in args of command.sh

"rierino_util.Runner --base64 XXX"

pyScript

script to execute used in args of command.sh

"/app/config/script.sh"

memoryRequest

memory request for container

"256Mi"

cpuRequest

cpu request for container

"250m"

diskRequest

ephemeral storage request for container

"0"

memoryLimit

memory limit for container

"512Mi"

cpuLimit

cpu limit for container

"500m"

diskLimit

ephemeral storage limit for container

"0"

Last updated