Create a Workflow
Define, apply, and verify a Workflow resource.
Before you begin
Ensure you have a Compute resource and permission to use it.
You also need a stack that supports Workflow execution. For permission details, see Workflow: Access control.
Create a Workflow
Create a Workflow in four steps:
Design the DAG.
Add runtime settings for each step.
Apply the manifest.
Verify the run.
Design the DAG
Define each step in spec.dag. A step runs one unit of work.
Use depends to define execution order. Omit depends for independent steps.
Use a single step for simple jobs. Add dependent steps for staged work.
See Field reference for the complete Workflow manifest field reference, including DAG and step-level runtime fields.
Add runtime settings
For each step, define these settings:
spec.dag[].spec.computespec.dag[].spec.stackspec.dag[].spec.stackSpec
Add resources to control CPU and memory. Add use.projection to each step's spec (spec.dag[].spec.use.projection) for secrets or configuration. Add use.volumes when steps share files.
Set spec.schedule to run automatically. Omit it for on-demand execution.
Next steps
Use Core concepts to learn DAGs, schedules, stacks, projections, and storage.
Use Example for end-to-end Workflow manifests.
Use Field reference for complete manifest fields.
Last updated
Was this helpful?