Step Deployment#
Deploys a CronJob which runs the commands defined in the commands
deployment spec on the docker image
defiend in the docker_image
deployment spec on the schedule defined in schedule
.
To deploy an octaistep the docker_image
deployment spec should be an OctaiPipe image.
class StepDeployment
Kuberenetes Objects:
CronJob
Fields:
type
: stepDeploymentname
: stringrequired - unique name of deployment
template
stringdefault:
src/octaipipe/configs/cloud_deployment/cron_step_deployment_template.yml
kubernetes_namespace string
default:
default
deployment_specs
dictSee placeholders
Placeholders (deployment_specs or env variables):
deployment_name
stringdefault = deployment’s name
container_name
stringrequired
schedule
stringdefault =
* * * * *
concurrencyPolicy
stringdefault =
Forbid
docker_image
stringChecks for
OCTAIPIPE_IMAGE
environment variabledefault =
ubuntu:20.04
imagePullPolicy
stringdefault =
Always
env_variables
list of name/value pairsdefault =
[]
e.g:
1env_variables:
2 - name: ENVIRONMENT
3 value: prod
4 - name: FOO
5 VALUES: bar
commands
listrequired
list of commands for the step to run.