[Q&A] Combine this with an in-cluster Postgres? #192
-
Hello! Apologies for posting an issue ticket; Discussions seem to be disabled on this repo. I had recently been struggling a lot with the Zalando Postgres Operator - having moved the cluster once seemed to have funked it real good and the recovery didn't work as intended. This has led me to look for a "better" solution where I could properly apply users and database credentials right next to the related deployments - which is exactly what this Operator does! However, I would like to keep my resources in-cluster; my hardware is a little limited in quantity ;) What would be a good method of applying this against an in-cluster postgres? Any known good charts or deployments that play nice with this? I only host a few smaller apps like Piped, Shiori and the other odd ones that want a Postgres database - and I plan to use the good old Thank you and have a great day! PS.: Your code is an excellent resource for the basics of writing an operator. Been reading it, might try my hand at writing my own in the future! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I spent some time with this and attempted a setup with CloudNativePG - unfortunately, the secret it generates is not compatible with the operator - so I went digging as to what I could do and in the process saw this: https://github.com/movetokube/postgres-operator/blob/master/charts/ext-postgres-operator/templates/operator.yaml#L52-L55 If this behaved just like any pod's Do you know of an alternative as to how to make this work? Thank you! ^^ EDIT: For reference:
|
Beta Was this translation helpful? Give feedback.
-
I'm using this operator for managing users and database on daily basis in combo with zalando operator. It's quite simple:
|
Beta Was this translation helpful? Give feedback.
-
@kirek007 knows the stuff. |
Beta Was this translation helpful? Give feedback.
I'm using this operator for managing users and database on daily basis in combo with zalando operator. It's quite simple:
2.External secret operator rewrites super user secret for one that can be consumed by this operator
So far we're doing multiple restores/clones and haven't seen any issues.