job-manager
Technologies
Architecture
To edit use https://www.draw.io/ and open ./docs/architecture.drawio
Environment
Env | URL |
---|---|
Local | http://localhost:9000 |
Kubernetes | Run your cluster |
Install
$ make install
DB Dependencies
$ make docker/up
Run API
This will up an API in port 9000 by default
$ make run
Schedule Checker
This will find jobs that has timeout or should be retried or resumed.
Configure crontab locally
Use crontab –e
to every five minutes */5 * * * *
.
Run
$ make run-schedule
Tests
$ make test
Deployment
Docker
Generate and push a docker image to registry.
$ make docker/registry
Kubernetes
The deploy directory contains yaml files to deploy to a kubernetes cluster. These yaml files are validated for continuous integration, but not deployed.
CI/CD
This project has a simple integration with github actions to run automated tests and validate kubernetes yaml file.