An open API service indexing awesome lists of open source software.

https://github.com/stefanprodan/kjob

Kubernetes job runner
https://github.com/stefanprodan/kjob

job-runner kubernetes

Last synced: about 1 month ago
JSON representation

Kubernetes job runner

Awesome Lists containing this project

README

        

# kjob

[![e2e](https://github.com/stefanprodan/kjob/workflows/ci/badge.svg)](https://github.com/stefanprodan/kjob/actions)
[![release](https://github.com/stefanprodan/kjob/workflows/release/badge.svg)](https://github.com/stefanprodan/kjob/actions)

**kjob** is a small utility written in Go that:
* creates a Kubernetes Job from a CronJob template
* overrides the job command if specified
* waits for job completion
* prints the pods logs
* removes the pods and the job object
* exits with status 1 if the job failed

## Usage

Download kjob binary from GitHub [releases](https://github.com/stefanprodan/kjob/releases/latest).

Create a suspended CronJob that will serve as a template:

```bash
cat <