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 1m7zHt-0007dS-3a for pgsql-admin@arkaria.postgresql.org; Mon, 26 Jul 2021 12:00:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m7zHs-00058F-26 for pgsql-admin@arkaria.postgresql.org; Mon, 26 Jul 2021 12:00:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7zHr-000587-Pr for pgsql-admin@lists.postgresql.org; Mon, 26 Jul 2021 12:00:47 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7zHl-00006a-AX for pgsql-admin@lists.postgresql.org; Mon, 26 Jul 2021 12:00:46 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 8D3662098D; Mon, 26 Jul 2021 12:00:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JMmrPsv5QdfH; Mon, 26 Jul 2021 12:00:39 +0000 (UTC) Received: from smtpclient.apple (unknown [4.28.96.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id EA20B20932; Mon, 26 Jul 2021 12:00:37 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: Running PostgreSQL in Kubernetes? From: Scott Ribe In-Reply-To: Date: Mon, 26 Jul 2021 06:00:36 -0600 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <353A1D55-3DFF-43B1-B906-147C9C511435@elevated-dev.com> References: To: Victor Sudakov X-Mailer: Apple Mail (2.3654.100.0.2.22) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Is anyone running PostgreSQL in Kubernetes? If you do, what solution = do > you prefer?=20 >=20 > What I've tried myself: >=20 > 1. Running the official postgres:12.6 images in a StatefulSet. It = works > fine but there is neither failover nor replication. >=20 > 2. Zalando's postgres-operator. Replication and failover work out of = the > box, but the documentation is not the best. Things like wal-g backup = and > PITR are probably possible, but you need to be an egghead to figure = out > how to make them work. Why, I cannot even figure out how to add a > team after installing the postgres-operator from the official Helm = repo. >=20 > I'd be especially grateful if you shared your own personal experience > with Kubernetes and PostgreSQL. We're using CrunchyData's operator, which in turn uses Patroni & = pgbackrest...