k8s native workflow engine Argo-quick start

Quick start

To see how Argo works, you can install it and run simple workflows and examples of workflows that use artifacts.

First, you need a Kubernetes cluster and kubectl setup.

Install Argo workflow


To get started quickly, you can use the quick start checklist, which will install Argo Workflow and some common components:

Note : A proxy may be required to access https://raw.githubusercontent.com

kubectl create ns argo
kubectl apply -n argo -f https://raw.githubusercontent.com/argoproj/argo/stable/manifests/quick-start-postgres.yaml

Note : On GKE, you may need to grant your account the ability to create new cluster roles

kubectl create clusterrolebinding YOURNAME-cluster-admin-binding --clusterrole=cluster-admin [email protected]


If you are running Argo Workflow locally (for example, using Minikube or Docker for Desktop), turn on port forwarding to access the namespace:

kubectl -n argo port-forward deployment/argo-server 2746:2746


This will serve the user interface on http://localhost:2746

If you are running Argo Workflows on a remote cluster (e.g. on EKS or GKE), please follow the instructions below .

Next, download the latest Argo CLI from our release page .

Finally, submit a sample workflow:

Note : A proxy may be required to access https://raw.githubusercontent.com

argo submit -n argo --watch https://raw.githubusercontent.com/argoproj/argo/master/examples/hello-world.yaml
argo list -n argo
argo get -n argo @latest
argo logs -n argo @latest

 

Guess you like

Origin blog.csdn.net/hugo_lei/article/details/108698991