简体   繁体   中英

How to combine argo workflow with argo cd?

I would like to deploy Keycloak on my K8S cluster. In addition, the prerequisite for using Keycloack is a database, so I am going to use postgresql.

Before deploying Keycloak, the database has to be up and running. For such as scenario, I think, I should use Argo Workflow .

My question is, how to trigger the ArgoCD, after the database is up and running through the Argo Workflow? Or how to combine Argo Workflow with ArgoCD?

This should be possible without using Argo Workflow to spin up a Postgres server. ArgoCD supports multiple ways to deploy a "package" of resources that includes both Keycloack and Postgres.

For example, you could use Keybase's Helm chart which optionally supports a Postgres component.

Then you can follow ArgoCD's documentation on deploying Helm charts .

While Argo Workflows does help manage sequential tasks, those tasks are usually ephemeral - they execute once and disappear. For a more persistent Postgres server, you want to make it part of your deployment rather than a one-off task.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM