cron

command
v0.3.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2017 License: MIT Imports: 13 Imported by: 0

README

Cron Controller

This directory contains a simple cron controller. This app implements scheduled jobs.

You can create scheduled jobs using a ThirdPartyResource

Create the ThirdPartyResource

Create the CronTab ThirdPartyResource object to enable the CronTab API.

$ kubectl create -f resource.yaml

CronTab objects can then be created with the following format.

apiVersion: "alpha.ianlewis.org/v1"
kind: "CronTab"
metadata:
  name: <name>
spec:
  schedule: "<cron spec>"
  jobTemplate:
    <job template>

See an example in the test-crontab.yaml file.

Building

Build and tag the image:

$ make image

Push the image:

$ make push

Deploy

Create the cron-controller deployment.

$ kubectl create -f deploy.yaml

Documentation

Overview

Command simple-crontab-controller implements a crontab controller that watches for CronTab third party resources and runs a cron control loop for each. If the crontab is modified, then the cron loop is restarted with the new configuration. If it is deleted then the cron loop is stopped.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL