ojob.io/kube/cmd

Usage

ojob ojob.io/kube/cmd image=openaf/ojobrt:nightly prefix=ojob-cmd ns=default cmd=/openaf/ojob,/config/main.yaml envs=ABC:123,XYZ=oOo vmounts=name:secret,mountPath:/secrets;name:config,mountPath:/ojob volumes=name:secret,secret.secretName:nattrmon;name:config,configMap.name:my-config 

Description

Generates a shell script to execute a command as a job in K8S

Expects

Name Description
image The container image to use (defaults to ojobrt)
prefix The K8S job name prefix (defaults to ojob-cmd)
ns The K8S namespace to use
cmd The container image command, separated by commas, to execute (defaults to /openaf/ojob,/config/main.yaml)
envs The environment variables separated by commas (e.g. ABC:123,XYZ=oOo)
vmounts The K8S volume mounts separated by semi-colons with each map entries separated by commas (e.g. name:secret,mountPath:/secrets;name:config,mountPath:/ojob)
volumes The K8S volumes separated by semi-colons with each map entries separated by commas (e.g. name:secret,secret.secretName:nattrmon;name:config,configMap.name:my-config)