cronjobs

by KlickTipp

Helm chartv2.2.0App latestVerified publisher

A generic helm cronjob chart for kubernetes

About this chart

cronjobs

A generic helm cronjob chart for kubernetes

Homepage: https://github.com/klicktipp/helm-charts

Source Code

Requirements

RepositoryNameVersion
file://../klicktipp-commonklicktipp-common1.0.2

Values

KeyTypeDefaultDescription
nameOverridestring""Partially override generated resource names.
fullnameOverridestring""Fully override generated resource names.
slugifyVolumeNamesV2boolfalseUse collision-free EFS PV/PVC naming (com.klicktipp.slugify-volume-name-v2). When enabled, PV names are globally unique and PVC names are namespace-unique by hashing the infix (chart + job name) to 8 hex chars while keeping the namespace/release prefix and EFS access-point ID verbatim. Disabled by default to preserve backward compatibility with existing PVs/PVCs.
imagePullSecretslist[]Image pull secrets.
imageobject{}Default container image settings for all jobs. Individual jobs can override these values.
secretsobject{}Configure secrets.
customConfigMapstringnilSet customConfigMap.
configMapsobject{}Configure configMaps.
secretEnvFromlist[]Set secretEnvFrom.
envobject{}Environment variable entries.
extraEnvlist[]Raw EnvVar entries for values the env map cannot express, such as Downward API fields. They come after all other env entries and before each job's own extraEnv. Names must not repeat a name from another env source.
timezonestring""Default time zone for all CronJobs. Individual jobs can override this value.
startupJitterobject{"enabled":false,"image":{"pullPolicy":"IfNotPresent","registry":"docker.io","repository":"bash","tag":"5.3"},"maxSeconds":60,"seed":"cronjobs-jitter"}Startup jitter settings for all jobs. Individual jobs can override these values.
startupJitter.enabledboolfalseEnable startup jitter initContainer.
startupJitter.maxSecondsint60Maximum startup delay in seconds. The effective delay is between 0 and this value.
startupJitter.seedstring"cronjobs-jitter"Seed prefix combined with namespace for pseudo-random delay generation.
startupJitter.imageobject{"pullPolicy":"IfNotPresent","registry":"docker.io","repository":"bash","tag":"5.3"}Jitter initContainer image settings.
startupJitter.image.registrystring"docker.io"Container image registry.
startupJitter.image.repositorystring"bash"Container image repository.
startupJitter.image.tagstring"5.3"Container image tag.
startupJitter.image.pullPolicystring"IfNotPresent"Container image pull policy.
jobsobject{}Configure jobs.
serviceAccountobject{"annotations":{},"automount":true,"create":true,"name":""}ServiceAccount configuration.
serviceAccount.createbooltrueSet serviceAccount.create.
serviceAccount.automountbooltrueSet serviceAccount.automount.
serviceAccount.annotationsobject{}Annotations map.
serviceAccount.namestring""Set serviceAccount.name.
rbacobject{"clusterRole":{"annotations":{},"create":false,"rules":[]},"create":false,"role":{"annotations":{},"create":false,"rules":[]}}Set rbac.
rbac.createboolfalseSet rbac.create.
rbac.roleobject{"annotations":{},"create":false,"rules":[]}Set rbac.role.
rbac.role.createboolfalseSet rbac.role.create.
rbac.role.annotationsobject{}Annotations map.
rbac.role.ruleslist[]Configure rbac.role.rules.
rbac.clusterRoleobject{"annotations":{},"create":false,"rules":[]}Set rbac.clusterRole.
rbac.clusterRole.createboolfalseSet rbac.clusterRole.create.
rbac.clusterRole.annotationsobject{}Annotations map.
rbac.clusterRole.ruleslist[]Configure rbac.clusterRole.rules.
commonAnnotationsobject{}Configure commonAnnotations.
commonLabelsobject{}Configure commonLabels.
commonContainerNamestring""Set commonContainerName.
podSecurityContextobject{}Pod security context.
securityContextobject{}Container security context.
resourcesobject{}Container resource requests and limits.
nodeSelectorobject{}Node selector for pod scheduling.
tolerationslist[]Tolerations for pod scheduling.
affinityobject{}Affinity rules for pod scheduling.
priorityClassNamestring""PriorityClass for the job pods. A job can set its own priorityClassName.

Deploy cronjobs with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cronjobs on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcronjobs is pinned at v2.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply