cron-job
by Snowplow
Helm chartv0.16.0Verified publisher
A Helm Chart to deploy an arbitrary container as a cron job.
About this chart
cron-job
A Helm Chart to deploy an arbitrary container as a cron job.
Homepage: https://github.com/snowplow-devops/helm-charts
Maintainers
| Name | Url | |
|---|---|---|
| jbeemster | [email protected] | https://github.com/jbeemster |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| https://snowplow-devops.github.io/helm-charts | cloudserviceaccount | 0.3.0 |
| https://snowplow-devops.github.io/helm-charts | dockerconfigjson | 0.1.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| backoffLimit | int | 6 | The number of retries to attempt before marking the job as failed |
| cloudserviceaccount.aws.roleARN | string | "" | IAM Role ARN to bind to the k8s service account |
| cloudserviceaccount.azure.managedIdentityId | string | "" | Workload managed identity id to bind to the k8s service account |
| cloudserviceaccount.deploy | bool | false | Whether to create a service-account |
| cloudserviceaccount.gcp.serviceAccount | string | "" | Service Account email to bind to the k8s service account |
| cloudserviceaccount.name | string | "snowplow-cron-job-service-account" | Name of the service-account to create |
| concurrencyPolicy | string | "Forbid" | |
| config.args | list | [] | |
| config.command | list | [] | |
| config.env | object | {} | Map of environment variables to use within the job |
| config.secrets | object | {} | Map of secrets that will be exposed as environment variables within the job |
| config.workingDir | string | "" | Optional working directory for the container process. Useful when readOnlyRootFilesystem is true and the job writes to its CWD; point at a writable mount declared via extraVolumes / extraVolumeMounts. |
| configMaps | list | [] | List of config maps to mount to the deployment |
| containerSecurityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":false,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}} | Container security context configuration These defaults follow kubesec.io best practices for hardened deployments. runAsUser / runAsGroup are intentionally not pinned. Different container images bake in different non-root USER directives, and forcing a specific UID can prevent the image's user from accessing its own files. The image's USER directive selects the runtime UID; runAsNonRoot: true still enforces the non-root invariant. Override per-deployment if you need a specific UID. readOnlyRootFilesystem defaults to false so existing deployments are not broken on upgrade; set it to true per-deployment once writable paths (e.g. /tmp) are mounted as emptyDirs. |
| customRole.definition | list | [] | Array of role definitions to setup for the custom role |
| customRole.deploy | bool | false | Whether to deploy the custom role and bind it to the cloudserviceaccount |
| dockerconfigjson.email | string | "" | Email address for user of the private repository |
| dockerconfigjson.name | string | "snowplow-cron-job-dockerhub" | Name of the secret to use for the private repository |
| dockerconfigjson.password | string | "" | Password for the private repository |
| dockerconfigjson.server | string | "https://index.docker.io/v1/" | Repository server URL |
| dockerconfigjson.username | string | "" | Username for the private repository |
| extraVolumeMounts | list | [] | Additional volume mounts to attach to the container. Pair with extraVolumes above. |
| extraVolumes | list | [] | Additional volumes to attach to the pod spec. Useful with readOnlyRootFilesystem: true — declare writable scratch space (e.g. emptyDir on /tmp) without disabling the hardened default. |
| failedJobsHistoryLimit | int | 1 | |
| fullnameOverride | string | "" | Overrides the full-name given to the deployment resources (default: .Release.Name) |
| global.cloud | string | "" | Cloud specific bindings (options: aws, gcp, azure) |
| global.labels | object | {} | Global labels deployed to all resources deployed by the chart |
| image.isRepositoryPublic | bool | true | Whether the repository is public |
| image.pullPolicy | string | "IfNotPresent" | The image pullPolicy to use |
| image.repository | string | "busybox" | |
| image.tag | string | "latest" | |
| resources | object | {} | Map of resource constraints for the deployment |
| restartPolicy | string | "Never" | |
| schedules | list | [] | |
| successfulJobsHistoryLimit | int | 1 | |
| tolerations | list | [{"operator":"Exists"}] | Tolerations for the cron job pods. Defaults to tolerating all taints so jobs can be scheduled onto tainted nodes (e.g. Karpenter-provisioned nodes). Set to [] to disable and use default scheduling. |
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy cron-job with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cron-job 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcron-job is pinned at v0.16.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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