AndersonReyes / k8s-controller-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

k8s-controller-demo

Learning to create a custom kubernetes controller following https://book.kubebuilder.io/introduction.html.

But this controller wraps papermill(jupyter notebook execution) around the built in CronJob to execute notebooks on schedule and reducing all the CronJob jargon with the built in API.

Sample custom resource definition

apiVersion: papermill.papermill.dev/v1
kind: ScheduledNotebook
metadata:
  name: schedulednotebook-sample
spec:
  name: andersontesting
  dockerImage: test-app
  schedule: "*/1 * * * *"
  inputNotebook: "local:///home/app/input.ipynb"
  outputNotebook: "local:///home/app/out.ipynb"
  parameters:
    name: Anderson

About


Languages

Language:Go 70.6%Language:Makefile 21.5%Language:Dockerfile 3.9%Language:Jupyter Notebook 3.9%