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

后端 未结 4 602
谎友^
谎友^ 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-12 03:52

    There's an example in OpenShift: https://github.com/openshift/postgresql/tree/master/examples/replica The principle is the same in pure Kube (it's not using anything truly OpenShift specific, and you can use the images in plain docker)

提交回复
热议问题