r/devops • u/daved3464 • Aug 31 '26
Troubleshooting Volatile Postgres cluster
Hi, I'm trying to setup a basic ha postgres cluster using the Spilos images in a docker swarm setup, but every few days the thing crumbles down with DNS resolution issues, timeouts, wal and etcd records corruption, I don't have the money to rely on an hosted solution rn, so has anybody run into these problems and solved them?. This makes me understand why the DBA role exists, but it is so frustrating and absurd that it is not a solved problem for something that feels so relatively trivial to setup in mariadb with galera.
4
Upvotes
View all comments
Show parent comment
1
u/Forward-Outside-9911 Linux Sysadmin Aug 31 '26
It’s really not once you try it.
Once the cluster is setup (easy as pie with Talos), install the CNPG operator, you just create a yaml file with options for CNPG, then kubectl apply. Done.
Obviously it can get more “advanced” if you want it to be, fully GitOps, more moving parts. But Kubernetes has made it so easy for me to deploy multiple apps and DBs.