Argo
Installation
Install Argo CLI:
brew install argoproj/tap/argoInstall Argo Workflows in Kubernetes:
kubectl create namespace argo
kubectl apply -n argo -f https://raw.githubusercontent.com/argoproj/argo-workflows/stable/manifests/install.yamlAccess the Argo UI
Port-forward the Argo UI:
kubectl -n argo port-forward deployment/argo-server 2746:2746Access UI: Open a browser and go to http://localhost:2746.
Submit a Workflow
Create a simple workflow YAML (hello-world.yaml):
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: hello-world-
spec:
entrypoint: whalesay
templates:
- name: whalesay
container:
image: docker/whalesay
command: [cowsay]
args: ["hello world"]Submit the workflow:
Monitor Workflows
List workflows:
Get workflow details:
Watch workflow logs:
Watch the progress of a workflow:
Workflow Lifecycle Management
Suspend a running workflow:
Resume a suspended workflow:
Terminate a running workflow:
Retry a failed workflow:
Create Workflow Templates
Define a template (workflow-template.yaml):
Create the template:
Submit a workflow using the template:
Using Parameters in Workflows
Define a parameterized workflow (params-workflow.yaml):
Submit with parameters:
Artifacts and Outputs
Define a workflow with artifacts (artifacts-workflow.yaml):
DAG and Steps
Define a DAG workflow (dag-workflow.yaml):
Submit the DAG workflow:
Clean Up
Delete a workflow:
Delete all workflows:
Useful Commands
View Argo version:
Get the status of a workflow:
Resume a suspended workflow:
This cheat sheet should help you start with Argo Workflows in a Kubernetes environment. For more detailed information, refer to the Argo Workflows documentation.
Last updated
Was this helpful?