Skip to content

Comment on Keycloak with PostgreSQL on Kubernetes

Comments

I may be wrong but is it not preferable to use StatefulSet for databases, rather than PV, PVC and Deployments?

You will not be able to scale anything up anyway since it’s a single instance mounting the same data.

Hi,

I don't think you're wrong. StatefulSets are simply on a "higher level" than raw Deployments and manually provided PersistentVolumes/Claims. I am thinking about writing another article that shows how to use StatefulSets in similar scenarios.

Regards,

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.