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
templatestringdefault:
src/octaipipe/configs/cloud_deployment/cron_step_deployment_template.yml
kubernetes_namespace string
default:
default
deployment_specsdictSee placeholders
Placeholders (deployment_specs or env variables):
deployment_namestringdefault = deployment’s name
container_namestringrequired
schedulestringdefault =
* * * * *
concurrencyPolicystringdefault =
Forbid
docker_imagestringChecks for
OCTAIPIPE_IMAGEenvironment variabledefault =
ubuntu:20.04
imagePullPolicystringdefault =
Always
env_variableslist of name/value pairsdefault =
[]e.g:
1env_variables:
2 - name: ENVIRONMENT
3 value: prod
4 - name: FOO
5 VALUES: bar
commandslistrequired
list of commands for the step to run.