pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Kohnert <nospam001-lists@jan-kohnert.de>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Marco Schmucki <marco.schmucki@revendex.com>
Subject: Re: High Availability PostgresDB on K8s
Date: Fri, 19 Aug 2022 20:09:51 +0200
Message-ID: <4775030.GXAFRqVoOG@kohni-mobil> (raw)
In-Reply-To: <DB9PR03MB7739655248635875FD94D83CFB6C9@DB9PR03MB7739.eurprd03.prod.outlook.com>
References: <DB9PR03MB7739655248635875FD94D83CFB6C9@DB9PR03MB7739.eurprd03.prod.outlook.com>

Hi,

Am Freitag, 19. August 2022, 17:09:35 CEST schrieb Marco Schmucki:
> I want to run an HA-Postgres-DB on a Kubernetes cluster for testing purposes
> (Proof of Concept).
> 
> Do you have some links or documentation?

We're usually using Bitnami's Helm charts [1], [2] to deploy PostgreSQL into 
our K8S clusters. They also have -ha variants that might fit your needs, 
though I haven't tested them myself.

Be aware, that you'll get a single-master-multiple-replica, so you still only 
have one Postgres-instance actually *writing* data. As long as most of the 
traffic is reading traffic, that might just work well; if you have a lot of 
writing traffic, you will be limited by the master pod, the node it is running 
on, and of course the underlying PVC.

If you need multi-master, you might have a look at CockroachDB [3] which 
mostly Postgres-compatible.

[1] https://bitnami.com/stack/postgresql/helm
[2] https://github.com/bitnami/charts/tree/master/bitnami/postgresql/
#installing-the-chart
[3] https://www.cockroachlabs.com/product/kubernetes/

-- 
MfG Jan







view thread (3+ messages)

Message-ID: <4775030.GXAFRqVoOG@kohni-mobil>
Permalink:  ../4775030.GXAFRqVoOG@kohni-mobil/
Also on:    postgresql.org/message-id/4775030.GXAFRqVoOG@kohni-mobil

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: nospam001-lists@jan-kohnert.de, marco.schmucki@revendex.com
  Subject: Re: High Availability PostgresDB on K8s
  In-Reply-To: <4775030.GXAFRqVoOG@kohni-mobil>
  References: <DB9PR03MB7739655248635875FD94D83CFB6C9@DB9PR03MB7739.eurprd03.prod.outlook.com> <4775030.GXAFRqVoOG@kohni-mobil>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox