Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Multiple RDS/Database instances #139

Open
thereisnotime opened this issue Nov 19, 2023 · 1 comment
Open

[Question]: Multiple RDS/Database instances #139

thereisnotime opened this issue Nov 19, 2023 · 1 comment

Comments

@thereisnotime
Copy link

thereisnotime commented Nov 19, 2023

Hello,

I have been conducting experiments with various annotations and deployments, yet I am encountering difficulties in implementing multiple databases.
Specifically, I am managing two external RDS PostgreSQL instances and aim to effectively administer both.
My approach involved creating the operator twice in distinct namespaces, but this resulted in an error attributed to CRD duplication. Could someone kindly provide an example or guidance on utilizing the operator with multiple external databases?

Edit: I managed to get it to work by disabling the CRD via Helm of the second deployment and changing it's chart name via the values, also both are deployed to separate namespaces.

Wonder if there is a proper way to do that.

@thereisnotime thereisnotime changed the title [Questio]: Multiple RDS/Database instances [Question]: Multiple RDS/Database instances Nov 19, 2023
@hitman99
Copy link
Member

I think you could use annotations to achieve what you intend. The information on readme.md is slim, but check it out: https://github.com/movetokube/postgres-operator?tab=readme-ov-file#multiple-operator-support

By setting POSTGRES_INSTANCE you can use multiple operators and segregate CRs based on that annotation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants