cronjob

by stand-sure

Helm chartv2.1.0App 1.36.1Apache-2.0Verified publisher

Innago Helm Chart for deploying a CronJob

About this chart

cronjob

Innago Helm Chart for deploying a CronJob

Homepage: https://innago-property-management.github.io/helm-charts/cronjob

Maintainers

NameEmailUrl
Innago[email protected]

Source Code

Values

KeyTypeDefaultDescription
additionalContainerslist[]Additional containers to run alongside the main job container See https://kubernetes.io/docs/concepts/workloads/pods/
affinityobject{}
argslist[]Arguments to pass to command (or to container ENTRYPOINT if command not set)
commandlist["/bin/sh","-c","date; echo Hello!"]Command to run in the container (overrides ENTRYPOINT)
containerEnvFromlist[]
containerEnvironmentVariableslist[]
containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":65534,"runAsNonRoot":true,"runAsUser":65534}Container-level security context See https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
cronjobobject{"concurrencyPolicy":"Forbid","failedJobsHistoryLimit":5,"startingDeadlineSeconds":300,"successfulJobsHistoryLimit":3,"suspend":false}CronJob-specific configuration
cronjob.concurrencyPolicystring"Forbid"Concurrency policy: Allow, Forbid, or Replace - Allow: allows concurrent jobs (default) - Forbid: skips new job if previous is still running - Replace: replaces currently running job with new job
cronjob.failedJobsHistoryLimitint5Number of failed job history to retain
cronjob.startingDeadlineSecondsint300Deadline in seconds for starting the job if it misses scheduled time If not set, jobs have no deadline
cronjob.successfulJobsHistoryLimitint3Number of successful job history to retain
cronjob.suspendboolfalseSuspend cron job execution (useful for maintenance)
environmentstring""Value for the environment common label (dev/qa/pre/prod) Applied to every resource this chart renders. Omitted entirely when empty. Supply this per cluster rather than per service
fullnameOverridestring""
imageobject{"pullPolicy":"IfNotPresent","repository":"busybox","tag":""}Container image configuration
image.pullPolicystring"IfNotPresent"Image pull policy (Always, IfNotPresent, Never)
image.repositorystring"busybox"Container registry and repository
image.tagstring""Image tag override (defaults to Chart.appVersion) IMPORTANT: Do not use "latest" in production
imagePullSecretslist[]
initContainerslist[]Init containers to run before the main job container See https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
jobobject{"activeDeadlineSeconds":600,"backoffLimit":3}Job-level configuration (applied to each job created)
job.activeDeadlineSecondsint600Maximum duration in seconds for job to complete Job will be terminated if it exceeds this time
job.backoffLimitint3Number of retries before marking job as failed
metricsobject{"enabled":false,"path":"/metrics","port":8080,"serviceMonitor":{"enabled":false,"interval":"30s","labels":{},"namespace":"","scrapeTimeout":"10s"}}Metrics configuration
metrics.enabledboolfalseEnable metrics endpoint (if job supports it)
metrics.pathstring"/metrics"Metrics endpoint path
metrics.portint8080Metrics endpoint port
metrics.serviceMonitorobject{"enabled":false,"interval":"30s","labels":{},"namespace":"","scrapeTimeout":"10s"}ServiceMonitor configuration for Prometheus Operator
metrics.serviceMonitor.enabledboolfalseEnable ServiceMonitor creation
metrics.serviceMonitor.intervalstring"30s"Scrape interval
metrics.serviceMonitor.labelsobject{}Additional labels for ServiceMonitor
metrics.serviceMonitor.namespacestring""ServiceMonitor namespace (defaults to release namespace)
metrics.serviceMonitor.scrapeTimeoutstring"10s"Scrape timeout
nameOverridestring""
networkPolicyobject{"egress":{"customRules":[],"dns":{"enabled":true},"enabled":false},"enabled":false}Network policy configuration
networkPolicy.egressobject{"customRules":[],"dns":{"enabled":true},"enabled":false}Egress rules configuration
networkPolicy.egress.customRuleslist[]Custom egress rules
networkPolicy.egress.dnsobject{"enabled":true}DNS egress configuration
networkPolicy.egress.dns.enabledbooltrueAllow DNS resolution
networkPolicy.egress.enabledboolfalseEnable egress rules (restricts outbound traffic)
networkPolicy.enabledboolfalseEnable NetworkPolicy creation
nodeSelectorobject{}
podAnnotationsobject{}
podSecurityContextobject{"fsGroup":65534,"runAsGroup":65534,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}Pod-level security context See https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
projectstring"innago-property-management"Value for the project common label, applied to every resource this chart renders Identifies the owning organization; you should rarely need to override this
resourcesobject{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}Resource requests and limits See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
schedulestring"0 */2 * * *"Cron schedule in standard cron format Format: "minute hour day month weekday" Examples: "*/5 * * * *" - Every 5 minutes "0 */2 * * *" - Every 2 hours "0 0 * * *" - Daily at midnight "0 0 * * 0" - Weekly on Sunday Tip: Use https://crontab.guru for help
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
tolerationslist[]
ttlSecondsAfterFinishedstringnil
volumeMountslist[]Volume mounts for the main container See https://kubernetes.io/docs/concepts/storage/volumes/
volumeslist[]Volumes to mount in the job pod See https://kubernetes.io/docs/concepts/storage/volumes/

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy cronjob with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cronjob 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 chartcronjob is pinned at v2.1.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