1. Home
  2. /
  3. Argo-workflows
  4. /
  5. Simple Argo Workflow

Simple Argo Workflow - Argo-workflows Typing CST Test

Loading…

Simple Argo Workflow — Argo-workflows Code

A simple Argo workflow to clone a Git repository and run tests in Kubernetes.

# argo/demo/workflow.yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
	generateName: simple-workflow-
spec:
	templates:
	- name: main
		dag:
		tasks:
		- name: clone-repo
		template: git-clone
		- name: run-tests
		template: test
		dependencies: [clone-repo]

	- name: git-clone
		container:
		image: alpine/git
		command: ["sh", "-c"]
		args: ["git clone https://github.com/example/repo.git /src"]

	- name: test
		container:
		image: node:16
		command: ["sh", "-c"]
		args: ["cd /src && npm install && npm test"]

Argo-workflows Language Guide

Argo Workflows is an open-source container-native workflow engine for orchestrating parallel jobs on Kubernetes. It enables defining complex workflows as Kubernetes resources using YAML.

Primary Use Cases

  • ▸Orchestrating containerized tasks with dependencies
  • ▸CI/CD pipelines on Kubernetes
  • ▸Data processing and ETL workflows
  • ▸Machine learning model training and deployment pipelines
  • ▸Batch and cron-based automated jobs

Notable Features

  • ▸Native Kubernetes integration
  • ▸DAG and step-based workflow definitions
  • ▸Artifact passing between workflow steps
  • ▸Templating and reusable workflow components
  • ▸Support for cron workflows and event-driven execution

Origin & Creator

Developed by Intuit in 2017, now part of the Cloud Native Computing Foundation (CNCF).

Industrial Note

Argo Workflows is widely adopted in cloud-native enterprises for scalable workflow orchestration, especially for machine learning pipelines, ETL jobs, and multi-step automated processes on Kubernetes.

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher