Reputation: 34099
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?
Upvotes: 4
Views: 5822
Reputation: 8392
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.
Upvotes: 4