Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lukaszraczylo/c402d0a7e3ef7a15540c75dc639173d5 to your computer and use it in GitHub Desktop.
Save lukaszraczylo/c402d0a7e3ef7a15540c75dc639173d5 to your computer and use it in GitHub Desktop.
apiVersion: jobsmanager.raczylo.com/v1beta1
kind: ManagedJob
metadata:
labels:
name: data-import
spec:
retries: 3
params:
env:
- name: "FOO"
value: "bar"
fromEnv:
- configMapRef:
name: "config-map"
- secretRef:
name: "super-secret"
# Job groups definitions
groups:
- name: "api-import"
parallel: false
params:
env:
- name: "FEE"
value: "bee"
jobs:
- name: "api-1"
parallel: true
image: "busybox"
args:
- "echo"
- "Hello world!"
params:
env:
- name: "LOL"
value: "rofl"
- name: "api-2"
parallel: true
image: "busybox"
args:
- "sleep"
- "10"
- name: "api-3"
parallel: true
image: "busybox"
args:
- "sleep"
- "10"
- name: "process"
parallel: false
jobs:
- name: "pandas"
image: "busybox"
args:
- "echo"
- "Hello world!"
parallel: false
- name: "raw-sql-1"
image: "busybox"
args:
- "sleep"
- "10"
parallel: false
- name: "tensorflow-run"
image: "busybox"
args:
- "sleep"
- "10"
parallel: false
- name: "blue-green"
parallel: false
jobs:
- name: "fifth-job"
image: "busybox"
args:
- "echo"
- "Hello world!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment