5.2
Install Argo Workflows
Env&install
k8s-cluster
IP:10.1.6.104
# pwd
/root/xxx/cncf
kubectl create namespace argo
kubectl apply -n argo -f https://github.com/argoproj/argo-workflows/releases/download/v3.5.2/install.yaml
kubectl patch deployment \
argo-server \
--namespace argo \
--type='json' \
-p='[{"op": "replace", "path": "/spec/template/spec/containers/0/args", "value": [
"server",
"--auth-mode=server"
]}]'
# kubectl -n argo port-forward deployment/argo-server 2746:2746 --address='0.0.0.0'
Forwarding from 0.0.0.0:2746 -> 2746
Login

Install CLI
# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/v3.5.2/argo-linux-amd64.gz
# Unzip
gunzip argo-linux-amd64.gz
# Make binary executable
chmod +x argo-linux-amd64
# Move binary to path
mv ./argo-linux-amd64 /usr/local/bin/argo
# Test installation
argo version
// argo版本
https://github.com/argoproj/argo-workflows/releases/
An example
git clone https://github.com/argoproj/argo-workflows.git
# argo submit -n argo --watch ./hello-world.yaml
# argo list -n argo
# argo get -n argo @latest
# argo logs -n argo @latest