After you enable Argo Server for a workflow cluster, you can call the Argo Server API to automate workflow submission and use the open source Argo UI to manage workflows. This topic describes how to enable Argo Server for a workflow cluster.
Prerequisites
Only Alibaba Cloud accounts and the Resource Access Management (RAM) users that are used to create workflow clusters can use kubectl and the Argo CLI to manage workflow clusters by calling the Argo Server API or by using the open source Argo UI. If you want to use other RAM users to manage workflow clusters, you must first grant the required permissions to the RAM users. For more information, see Grant permissions to RAM users.
By default, Argo Server uses Virtual Private Cloud (VPC) private IP addresses to expose Services. Make sure that your terminal can access VPC private IP addresses.
Procedure
Run the following command to enable Argo Server for a workflow cluster:
aliyun adcp UpdateHubClusterFeature --ArgoServerEnabled true --ClusterId <cluster id>
Run the following command to query the status of the Argo Server pod:
kubectl get pod -n <cluster id>
Expected output:
NAME READY STATUS RESTARTS AGE argo-server-***-*** 1/1 Running 4 5m35s
Run the following command to obtain an Argo token for the
default service account
and call the Argo Server API to query the workflows in the default namespace:NoteThe domain name of Argo Server is in the
https://argo.<cluster id>.<region>.alicontainer.com:2746
format.ARGO_TOKEN=$(kubectl create token default -n default) curl -H "Authorization: Bearer $ARGO_TOKEN" https://argo.<cluster id>.<region>.alicontainer.com:2746/api/v1/workflows/default -k | jq { "metadata": { "resourceVersion": "12029" }, "items": null }
Use the Distributed Cloud Container Platform for Kubernetes (ACK One) console to access the Argo UI.
Log on to the ACK One console. In the left-side navigation pane, click Workflow Cluster. On the Basic Information tab, click the Workflow Console (Argo) card.
Click LOGIN below single sign-on.
In the left-side navigation pane, click the workflow icon and enter default into the NAMESPACE field to view the workflows in the default namespace.