Point a custom domain name to the default domain name of your workflow cluster by using a CNAME record, and configure an SSL certificate. Then, access the console through the custom domain name and log on with a cloud single sign-on account.
Prerequisites
A custom domain name that you own, with access to the DNS provider console for the domain.
An SSL certificate issued for the custom domain name.
Resource Access Management (RAM) administrator permissions to modify the OAuth application configuration.
Procedure
Step 1: Configure a CNAME record
Log on to your DNS provider and add a CNAME record that points the custom domain name to the default domain name of the Workflow Clusters.
The default domain name of a workflow cluster follows this format:
argo.${your-workflow-cluster-id}.${region}.alicontainer.com.${your-workflow-cluster-id}: Replace it with your Workflow Clusters ID.${region}: Replace it with the region where the Workflow Clusters resides.
Run the following command to verify that the CNAME record takes effect:
dig <your-domain>ANSWER SECTIONin the output contains the default domain name of the workflow cluster, the CNAME record is configured correctly.
Step 2: Configure the SSL certificate
Configure an SSL certificate in the Workflow Clusters so that browsers trust your custom domain name.
After downloading the SSL certificate, run the following command to create a Secret named
argo-server-tlsin the Workflow Clusters.Replace
${your-workflow-cluster-id}with your workflow cluster ID.kubectl create -n ${your-workflow-cluster-id} secret tls argo-server-tls \ --cert=/path/to/cert.pem \ --key=/path/to/key.pemRun the following command to verify that the Secret is created:
kubectl -n ${your-workflow-cluster-id} get secret argo-server-tlsRun the following command to edit the argo-server deployment.
Replace
${your-workflow-cluster-id}with your workflow cluster ID.kubectl -n ${your-workflow-cluster-id} edit deploy argo-serverAdd the following configuration to the argo-server deployment specification.
--tls-certificate-secret-name=argo-server-tls
Step 3: Configure the OAuth callback URL
Set the callback URL of the OAuth application in RAM to the custom domain name.
Log on to the Resource Access Management (RAM) console as a RAM administrator.
In the left-side navigation pane, choose Integrations > OAuth (Preview).
On the Enterprise Applications tab, click the application
ackone-argo-${your-workflow-cluster-id}@app.${your-uid}.onaliyun.com, where${your-workflow-cluster-id}is your Workflow Clusters ID and${your-uid}is your Alibaba Cloud account ID.In the Basic Information section, click Modify Basic Information and change Callback URL to
https://${your-domain}:2746/oauth2/callback, where${your-domain}is your custom domain name.
Step 4: Access the console
Enter
https://${your-domain}:2746in your browser.Log on with a cloud single sign-on account.
The Workflow Clusters console appears, which indicates that the custom domain name is configured and the workflow cluster is accessible.
References
To use an Alibaba Cloud domain name, see Set up a domain name.
To create a workflow, see Create a workflow.
Use Managed Service for Prometheus to monitor the running status of the Workflow Clusters in real time. For more information, see Monitor a workflow cluster.