MultiHub Forum

Full Version: Choosing between StatefulSets with PVs and PostgreSQL/Redis in Kubernetes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm deploying a stateful application with a PostgreSQL database and a Redis cache to our new Kubernetes cluster, and I'm trying to decide on the best approach for managing stateful data and configuration. While I understand the basics of Deployments for stateless services, I'm uncertain about the trade-offs between using StatefulSets with persistent volumes versus running the databases outside the cluster entirely. For teams running similar stacks in production, what deployment patterns have you found most reliable for stateful workloads, and how do you handle critical aspects like automated backups, disaster recovery, and secure secret management for database credentials within the cluster?