Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 762 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 762 Bytes

kubernetes-operator-cronjob

Kubernetes operator which creates CronJobs. Based on: https://book.kubebuilder.io/cronjob-tutorial/cronjob-tutorial.html

Usage

  1. Setup Kubernetes cluster locally:
$ minikube start
  1. Install CRDs into the cluster:
$ make install
  1. Run the operator:
$ make run
  1. In the new terminal tab deploy the sample CronJob:
$ kubectl apply -f config/samples/
  1. Verify if the CronJob has been created:
$ kubectl get cronjobs.batch.paweloczadly.io
$ kubectl get jobs

Use image from Docker hub

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