k203007 / argo-workflow-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Argo Workflows: Automate, schedule, and manage complicated K8s tasks

Demo environment, using k3d and ArgoCD, to deploy Argo Workflows and create sample tasks.

Forked from https://github.com/J0hn-B/argo_workflows_demo , but bump argo-workflow version to 3.4.3 and bug fixed.

How to

# Clone the repo
git clone https://github.com/k203007/argo-workflow-demo.git && cd "$(basename "$_" .git)"
# Create a k3d cluster, install and configure ArgoCD and Argo Workflows.
make apply

# Clean up
make destroy

# Lint code
make code_lint

# Check makefile for more commands ;-)

Prerequisites

k3d, make

Usage

$ make apply

Be sure to wait until the deployment has completed before continuing.

image

Submit a workflow

Download the latest Argo CLI first.

# Submit hello world workflow
argo submit -n argo --watch argo-workflows/workflows/hello-world.yaml

# Submit a k8s resource workflow. Check k8s/clusters/base and k8s/clusters/overlays/dev for information related to the k8s Service Account used by Argo Workflows.
argo submit -n argo --watch argo-workflows/workflows/k8s-operations.yaml

# Submit a multi-step workflow
argo submit -n argo --watch argo-workflows/workflows/multi-step.yaml

Access the ArgoCD dashboard.

image

Access the Argo Workflows dashboard.

image

About


Languages

Language:Shell 60.5%Language:Makefile 39.5%