cronjobber
by Isotoma
Cronjobber is the cronjob controller from Kubernetes patched with time zone support.
About this chart
Cronjobber Helm Chart
Built on https://github.com/hiddeco/cronjobber/tree/master/chart
Cronjobber is the cronjob controller from Kubernetes patched with time zone support.
Configuration
The following table lists the configurable parameters of the cronjobber chart and their default values.
| Parameter | Description | Default |
|---|---|---|
nameOverride | ||
fullnameOverride | ||
serviceAccount.annotations | {} | |
image.repository | Container image name | quay.io/hiddeco/cronjobber |
image.tag | Container image tag | 0.3.0 |
replicas | Number of replicas | 1 |
resources | Resources for the main container | {} |
sidecar.enabled | Sidecar to keep the timezone database up-to-date | False |
sidecar.image.repository | Sidecar and init container image name | quay.io/hiddeco/cronjobber-updatetz |
sidecar.image.tag | Sidecar and init container image tag | 0.1.1 |
sidecar.resources | Sidecar and init container resources | {} |
rbac.apiVersion | Specify an API version for RBAC resources | |
rbac.apiVersionPolicy.newestAvailable | Use the newest candidate version available | true |
rbac.apiVersionPolicy.candidateApiVersions | List of API versions to check for, old to new | rbac.authorization.k8s.io/v1beta1, rbac.authorization.k8s.io/v1 |
crd.apiVersion | Specify an API version for the CRD resource | |
crd.apiVersionPolicy.newestAvailable | Use the newest candidate version available | true |
crd.apiVersionPolicy.candidateApiVersions | List of API versions to check for, old to new | apiextensions.k8s.io/v1beta1, apiextensions.k8s.io/v1 |
Usage
Instead of creating a CronJob
like you normally would, you create a TZCronJob, which works exactly
the same but supports an additional field: .spec.timezone. Set this
to the time zone you wish to schedule your jobs in and Cronjobber will
take care of the rest.
apiVersion: cronjobber.hidde.co/v1alpha1
kind: TZCronJob
metadata:
name: hello
spec:
schedule: "*/1 * * * *"
timezone: "Europe/Amsterdam"
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: busybox
args:
- /bin/sh
- -c
- date; echo "Hello, World!"
restartPolicy: OnFailure
Deploy cronjobber with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cronjobber 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 chartcronjobber is pinned at v0.4.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