metal-toolbox / fleet-scheduler

This service is responsible for executing jobs/tasks for Fleet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fleet Scheduler

Fleet-Scheduler is a collection of tasks that can each be set up as jobs in order to automate many things.

A task is a set of functions that are executed in order to make changes to fleet services.

A job is a task that is set up to be executed on a schedule through a k8s cronjob.

Standalone Usage

./fleet-scheduler <task> --config ./path/to/config.yaml

Usage within sandbox

Sandbox will include the helm chart by including it as a dependency in Chart.yaml

Fleet Scheduler jobs can be created within the value.yaml.

Each job requires a few values in order to function.

Creating new tasks

  • Tasks need to be implemented in code within Fleet-Scheduler
  • Tasks are implemented as cobra command line commands within /cmd
  • Take a look at /cmd/inventory.go for a good example.

Creating new jobs

Jobs can be created within the Sandbox, or within values.yaml here.

Explained in the sandbox README.

About

This service is responsible for executing jobs/tasks for Fleet

License:Other


Languages

Language:Go 75.0%Language:Makefile 11.4%Language:Smarty 10.4%Language:Mustache 2.6%Language:Dockerfile 0.5%