Kubernetes operator which creates CronJobs. Based on: https://book.kubebuilder.io/cronjob-tutorial/cronjob-tutorial.html
- Setup Kubernetes cluster locally:
$ minikube start
- Install CRDs into the cluster:
$ make install
- Run the operator:
$ make run
- In the new terminal tab deploy the sample CronJob:
$ kubectl apply -f config/samples/
- Verify if the CronJob has been created:
$ kubectl get cronjobs.batch.paweloczadly.io
$ kubectl get jobs
Instead of calling make run
it is also possible to use built container image which is uploaded to Docker hub:
$ make deploy IMG=paweloczadly/kubernetes-operator-cronjob:v0.1.0