Skip to content

paweloczadly/kubernetes-operator-cronjob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Kubernetes operator based on CronJob tutorial from Kubebuilder: https://book.kubebuilder.io/cronjob-tutorial/cronjob-tutorial.html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published