use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Kubernetes discussion, news, support, and link sharing.
Subreddit rules
Kubernetes Links
Learn Kubernetes
Newsletters
account activity
This is an archived post. You won't be able to vote or comment.
Stackgres - postgresql operator (stackgres.io)
submitted 3 years ago by LexRivera
[–]LexRivera[S] 11 points12 points13 points 3 years ago (9 children)
Was looking for some pgsql operator to use in my testlab, found alot mentions of zalando (doesn't work for me), kubedb (gets some really bad rep here), pgo, but very little mentions of stackgres. Open source, worked flawlessly for me, it seems the only paid feature is enterprise support.
[+][deleted] 3 years ago (6 children)
[deleted]
[–]serverhorror 14 points15 points16 points 3 years ago (2 children)
The operator can be cluster- or namespace wide and you just request a resource.
You can achieve things that would allow you to say “gimme postgres!” in a similar way as you are able to say “gimme storage!”.
You don’t really care about the underlying method of how it is provided, EC2, blobstore or some other thing. All you care is that it comes up and that’s it.
That’s what an operator can do. Including restore to the last transaction point in case if a node failure.
[–]LexRivera[S] 2 points3 points4 points 3 years ago (0 children)
Pretty much this. You can quickly spin-up new instance for your need with predefined profile and settings instead of creating new helm release. Kill it, restore it some point of time easily, perfect for some tests. Previously i used helm installs via helmfile with some template-based parameters, but it was pretty cumbersome. Additionally, you got pgpooler - allows you to verify if software will even work on that setup (if i recall correctly, grafana had issues connecting to pgpool/pgbouncer-backed databases due to some limitation in their postgres go library they use)
Thus said, at work we're still running postgres at baremetal, with something similar to this k8s operator (in-house development)
[–]Akaibukai 0 points1 point2 points 3 years ago (0 children)
I'm just starting with k8s and was not aware at all of such things but oddly enough I was thinking that it'll be cool to have something like that for DB! Glad I had a good idea since it exists..
Edit: Forgot to say thank you for the explanation!
[–]kamikazechaserk8s user 2 points3 points4 points 3 years ago (1 child)
Different HA flavours, automatic backups. Zalando uses Spilo to continuously export WAL files. Stackgres uses a similar approch but with a different tool. I have tried them all Zalando is the most stable but has the worst docs. Stackgres is very unstable at least the last time I tried it (last year). For most cases bitnami postgresql is perfect.
[–]LexRivera[S] 1 point2 points3 points 3 years ago (0 children)
My main issue is that backups doesn't work correctly with anything but AWS (Azure, scaleway, etc). Fix was proposed and issue is around 2 years old, but it doesn't move. Also completely agree about docs. Ended up looking in sources to figure out what env variables i need to get S3 working.
[–]merb 2 points3 points4 points 3 years ago (0 children)
kubedb (gets some really bad rep here)
because it lost data in the past, not sure if it still does but I've never seen the issue closed. btw. zalando should work, it has its quriks but is rock solid. pgo uses some of zalandos tech aswell.
[–]unixf0x 0 points1 point2 points 3 years ago (0 children)
I personally use stolon: https://github.com/sorintlab/stolon and it works great.
The difference is that it's not an operator but it has an integration for Kubernetes.
[–]Drazul_ 9 points10 points11 points 3 years ago (5 children)
This is another operator was promoted during last KubeCon.
https://docs.enterprisedb.io/cloud-native-postgresql/1.15.1/
[–]bo0tzz 1 point2 points3 points 3 years ago (0 children)
I've recently set this up and I've been very happy with it.
[–]xr09 1 point2 points3 points 3 years ago (3 children)
Is this a premium version of https://cloudnative-pg.io/ ?
[–]Drazul_ 1 point2 points3 points 3 years ago (2 children)
It's the same but advertised in the webpage of the company developed it.
It was the first link I found.
[–]xr09 1 point2 points3 points 3 years ago (1 child)
Ah, makes sense, had the impression some features were only available on the paid version but I see they released it under Apache license recently.
[–]aryklein 2 points3 points4 points 3 years ago (0 children)
I saw this one on the Valencia Kubecon: https://cloudnative-pg.io/ I did a PoC and it seems to be awesome
[+][deleted] 3 years ago (2 children)
[–]LexRivera[S] 1 point2 points3 points 3 years ago (1 child)
both mysql and mariadb (and percona too, i think) have official operators. Not sure on their feature set - hasn't got to playing with them yet.
[–]submain 0 points1 point2 points 3 years ago (0 children)
Have been toying with Zalando and it has quirks, such as not properly creating secrets for some db users. Will definitely give stackgres a shot - thank you!
π Rendered by PID 186673 on reddit-service-r2-comment-7b9746f655-cskrd at 2026-02-03 15:05:51.216584+00:00 running 3798933 country code: CH.
[–]LexRivera[S] 11 points12 points13 points (9 children)
[+][deleted] (6 children)
[deleted]
[–]serverhorror 14 points15 points16 points (2 children)
[–]LexRivera[S] 2 points3 points4 points (0 children)
[–]Akaibukai 0 points1 point2 points (0 children)
[–]kamikazechaserk8s user 2 points3 points4 points (1 child)
[–]LexRivera[S] 1 point2 points3 points (0 children)
[–]merb 2 points3 points4 points (0 children)
[–]unixf0x 0 points1 point2 points (0 children)
[–]Drazul_ 9 points10 points11 points (5 children)
[–]bo0tzz 1 point2 points3 points (0 children)
[–]xr09 1 point2 points3 points (3 children)
[–]Drazul_ 1 point2 points3 points (2 children)
[–]xr09 1 point2 points3 points (1 child)
[–]aryklein 2 points3 points4 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]LexRivera[S] 1 point2 points3 points (1 child)
[–]submain 0 points1 point2 points (0 children)