How do I model a PostgreSQL failover cluster with Docker/Kubernetes?

后端 未结 4 608
谎友^
谎友^ 2021-02-12 03:20

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

4条回答
  •  长发绾君心
    2021-02-12 03:57

    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

提交回复
热议问题