Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oP6RZ-0003aY-9s for pgsql-general@arkaria.postgresql.org; Fri, 19 Aug 2022 18:10:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oP6RW-0001PZ-9x for pgsql-general@arkaria.postgresql.org; Fri, 19 Aug 2022 18:10:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oP6RV-0001PF-Un for pgsql-general@lists.postgresql.org; Fri, 19 Aug 2022 18:10:01 +0000 Received: from jan-kohnert.de ([2001:4ba0:fff1:c3::1]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oP6RS-00079u-KU for pgsql-general@lists.postgresql.org; Fri, 19 Aug 2022 18:10:01 +0000 X-Virus-Scanned: amavisd-new at jan-kohnert.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jan-kohnert.de; s=20191; t=1660932595; bh=nFapXrc7sY/ob92W3/hORD1aN7mGtKxJ0hI/Fkuhzrs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UIkovWoiMFgIfwTzvoZ0zz0C2pcRpz1hBuQ/3XlBZTwkOEa6PB9+PSCtHSF7wgRmM BHJuaJy6MCEa3uuAni4p3REIyfteEXjZSgNfrXTSCJHSJ4rx8DSglBqGepbNjmD11E 7OuhqHWcE+KYC62yVkkUgXT1KhjBEkDNxZoQeelNJaQ4+75XSYw/Bd3EXVQ18CgLom U2GQeaoUpAuMj4th73hO1ihPTeyQb2ODwU27Jo+ye84LGPH4FfanTdyHU3Bl6LIyU8 Gayq12Jof/glVNnZyLsctY4emm5q5RBvLN+ZngeoXJbdpo2+V1R0LLwAHEgARTQc1E KJMV5Sj5qWo1w== Received: from kohni-mobil.localnet (p200300cb872a0472aa6b670783351afb.dip0.t-ipconnect.de [IPv6:2003:cb:872a:472:aa6b:6707:8335:1afb]) by b079.blue.fastwebserver.de (Postfix) with ESMTPSA id 65ED610004227; Fri, 19 Aug 2022 20:09:53 +0200 (CEST) From: Jan Kohnert To: "pgsql-general@lists.postgresql.org" Cc: Marco Schmucki Subject: Re: High Availability PostgresDB on K8s Date: Fri, 19 Aug 2022 20:09:51 +0200 Message-ID: <4775030.GXAFRqVoOG@kohni-mobil> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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