I\'m still wrapping my head around Kubernetes and how that\'s supposed to work. Currently, I\'m struggling to understand how to model something like a PostgreSQL cluster with st
Kubernetes's statefulset is a good base for setting up the stateful service. You will still need some work to configure the correct membership among PostgreSQL replicas.
Kubernetes has one example for it. http://blog.kubernetes.io/2017/02/postgresql-clusters-kubernetes-statefulsets.html