How can I seed users in my database while using Argo CD?

0
9
Asked By CuriousCat123 On

I'm currently managing my applications with Terraform modules, where I can create resources like MySQL users, S3 buckets, and Kubernetes components all together using Terraform's native providers. However, I'm trying to figure out how to integrate database user creation with Argo CD, especially since it seems to be the current industry standard. I'm a bit confused about provisioning non-Kubernetes resources like this with Argo CD. Anyone have insights on how best to approach this?

2 Answers

Answered By TechWizard88 On

One way to seed database users is to utilize a startup entrypoint script for your PostgreSQL container. If you look at how Bitnami's Postgres container does it, there's good reference material available online. That way, you can execute the necessary commands when the container initializes.

Answered By DevGuru77 On

If you're using a PostgreSQL cluster defined through CloudNativePG, you can actually define users within the cluster's configuration. You can check out their documentation on declarative role management for detailed guidance.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.