For the complete documentation index, see llms.txt. This page is also available as Markdown.

Core concepts

Core concepts specific to Workflow resources.

Workflow and DAG

A Workflow is an execution plan for batch work. The plan is expressed as a DAG.

Use a single step for simple jobs. Add more steps when work must happen in stages. Use depends to describe order.

Workflow type

Workflows are typically defined as instance workloads.

An instance starts, processes work, and exits.

Schedule

Use spec.schedule to run the Workflow automatically.

Set one or more cron expressions in crons. Set timezone to control evaluation time. Use concurrencyPolicy to control overlapping runs.

Steps

Each item in spec.dag is a step.

Each step can define:

  • a unique name

  • optional depends entries

  • its own runtime configuration in spec

This lets one Workflow mix simple and complex steps in the same DAG.

Compute and resources

Use compute to choose the execution environment.

Use resources.requests and resources.limits to size each step. Set these values per step when different stages need different capacity.

Stack and stackSpec

stack selects the runtime for a step. stackSpec contains the stack-specific configuration.

Start by designing the DAG. Then choose any stack that supports Workflow execution mode.

Use container for custom scripts, CLIs, and packaged batch jobs. Use another supported stack when its runtime model better fits the step.

Projections and storage

Workflow steps can also consume projections and mounted volumes.

Use use.projection for secrets and runtime configuration. Use use.volumes when steps must share files across the DAG.

Define use.projection inside each step's spec. It applies only to that step.

Keep these rules in mind:

  • Steps do not inherit projections. Each step that needs the values declares its own projection.

  • A stack-level projection applies to every job that uses that stack. If the stack and the step both set the same environment variable, the step value wins.

  • Projected environment variables reach the container through envFrom.secretRef, so the process reads them as normal $VAR values. Projected files are mounted at the configured directory.

For projection syntax, template engines, data sources, and troubleshooting, see Projections.

Last updated

Was this helpful?