This is a basic implementation of the Kubernetes CronJob spec. It is intended
to be used temporarily on clusters where alpha resources cannot be enabled,
such as GKE until CronJobs exit
Create the third party
CronJobresource on your cluster.
kubectl apply -f https://raw.githubusercontent.com/tdickman/kubernetes-cron/0.1.3/cron-job-resource.yaml
Run the kubernetes-cron deployment on your cluster (in the default namespace).
kubectl apply -f https://raw.githubusercontent.com/tdickman/kubernetes-cron/0.1.3/deployment.yaml
Create a CronJob object in your cluster based on the
spec, with one
exception. Change apiVersion to
epicconstructions.com/v1alpha1. An example
can be found in
This project consists of the following pieces:
- A 3rd party
cronjob resource that allows the creation of cronjob items in your cluster.
- A kubernetes-cron pod watches for new cronjobs, and creates child jobs based
on the cron interval specified.
- There is no automated cleanup process to delete old jobs, which may result in
performance issues with cronjobs that run frequently.
- SSL certs are not properly verified when connecting to the API.
- This is intended to loosely follow the alpha CronJob spec. Please open an
issue if any issues are found.