Advertisement · 728 × 90
#
Hashtag
#cloudnativepg
Advertisement · 728 × 90
Post image Post image Post image

The Cloud Native Theatre was FULL for the session by #CloudNativePG maintainer Gabriele Bartolini and HSBC's Laurent Parodi: "From VMs to Kubernetes in a Large Global Bank: A DBA's Journey". Recording coming soon! #PostgreSQL #Kubernetes #DoK

1 0 0 0
Preview
EnterpriseDB Showcases Latest Innovations in Data Protection and Cloud-Native Technologies at KubeCon Europe EnterpriseDB highlights the launch of CloudNativePG 1.29 and a new Kubernetes data protection solution, emphasizing data sovereignty and innovation in AI.

EnterpriseDB Showcases Latest Innovations in Data Protection and Cloud-Native Technologies at KubeCon Europe #USA #Wilmington #CloudNativePG #EDB_Postgres #Kubernetes_Data

1 0 0 0
Preview
CloudNativePGでPostgreSQLクラスタを建てて、バックアップ・リストアまでやってみた ### はじめに Kubernetes上でPostgreSQLを動かすために、CloudNativePGを使ってみました。 これまでは単純にPostgreSQLのコンテナをPodとして動かしていましたが、レプリケーションやバックアップ・リストア周りを手軽に使えそうなので、運用面を考えてCloudNativePGを選びました。 CloudNativePGでPostgreSQLクラスタを建てて、Barman Cloud Pluginを使ったS3互換ストレージへのWALアーカイブ、定期バックアップ、バックアップからのリストアまでを一通り試したので、設定や手順について記録しておこうと思います。 ### 環境 * Ubuntu 24.04.3上で実行しているKubernetes 1.34.3(microk8s) * CloudNativePG Helm Chart(cnpg/cloudnative-pg) 0.27.1 * CloudNativePG 1.28.1 * PostgreSQL 18.1 * Barman Cloud Plugin v0.11.0 ### CloudNativePGのインストール Helm Chartを使ってサクッとインストールできます。 valuesは特に変更しておらず、デフォルトのままです。 github.com 今回はcnpg-systemというnamespaceを作成してデプロイしました。 ### Barman Cloud Pluginのインストール CloudNativePGは組み込みでバックアップ機能を持っていましたが、バージョン1.26から非推奨になっているので、代わりにBarman Cloud Pluginをインストールします。 Helm Chartは公開されていないため、GitHubのリリースからマニフェストファイルをダウンロードしてきてapplyします。 github.com ### 認証情報のデプロイ バックアップ用のS3互換ストレージの認証情報と、PostgreSQLのスーパーユーザーの認証情報をSecretとしてデプロイします。 今回は、以下のようなマニフェストを作成してapplyしました。 apiVersion: v1 kind: Secret metadata: name: postgresql-backup-s3-credentials namespace: postgresql-test type: Opaque data: ACCESS_KEY_ID: Zm9v ACCESS_SECRET_KEY: YmFy --- apiVersion: v1 kind: Secret metadata: name: postgresql-18-01-superuser namespace: postgresql-test type: Opaque data: username: cG9zdGdyZXM= password: cG9zdGdyZXM= namespaceはcnpg-systemではなく、実際にPostgreSQLクラスタを建てるnamespace(今回はpostgresql-test)にする必要があります。 ### Barman Cloud PluginのObjectStoreをデプロイ 以下のようなマニフェストを作成してapplyします。 apiVersion: barmancloud.cnpg.io/v1 kind: ObjectStore metadata: name: postgresql-backup-object-store namespace: postgresql-test spec: configuration: destinationPath: s3://postgresql-test-postgresql-backup endpointURL: http://minio.minio.svc.cluster.local:9000 s3Credentials: accessKeyId: name: postgresql-backup-s3-credentials key: ACCESS_KEY_ID secretAccessKey: name: postgresql-backup-s3-credentials key: ACCESS_SECRET_KEY wal: compression: gzip maxParallel: 2 data: compression: gzip jobs: 2 retentionPolicy: "10d" こちらも同様に、napespaceは実際にPostgreSQLクラスタを建てるnamespaceにする必要があります。 また、 `destinationPath` の末尾に `/` を入れると以下のようなエラーになるので、末尾には `/` を含めないようにする必要があります。 Barman cloud backup delete exception: An error occurred (XMinioInvalidObjectName) when calling the ListObjectsV2 operation: Object name contains unsupported characters. ### PostgreSQLクラスタの作成 CloudNativePGでは、ClusterというCustom Resourceを作成することでPostgreSQLクラスタが作られます。 以下のようなマニフェストを作成してapplyします。 apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: postgresql-18-01 namespace: postgresql-test spec: imageName: ghcr.io/cloudnative-pg/postgresql:18.1-system-trixie instances: 1 enablePDB: false storage: size: 8Gi storageClass: microk8s-hostpath enableSuperuserAccess: true superuserSecret: name: postgresql-18-01-superuser plugins: - name: barman-cloud.cloudnative-pg.io isWALArchiver: true parameters: barmanObjectName: postgresql-backup-object-store 今回はnodeが1つだけのKubernetesクラスタで動かすため、 `enablePDB` はfalseにしています。 cloudnative-pg.io あとは `postgresql-18-01-rw.postgresql-test.svc.cluster.local` に対して接続すると、作成したPostgreSQLクラスタを利用できます。 接続時の認証情報は、Secretとして作成した `superuserSecret` です。 ### 定期バックアップの設定をする 定期バックアップはScheduledBackupというCustom Resourceで設定します。 以下のようなマニフェストを作成してapplyします。 apiVersion: postgresql.cnpg.io/v1 kind: ScheduledBackup metadata: name: postgresql-18-01-daily-backup namespace: postgresql-test spec: immediate: true schedule: "0 0 0 * * *" backupOwnerReference: self cluster: name: postgresql-18-01 method: plugin pluginConfiguration: name: barman-cloud.cloudnative-pg.io apply直後にバックアップを作成するために `immediate` はtrueにしています。 cloudnative-pg.io ### バックアップからのリストア 今回は、古いPostgreSQLクラスタを削除してからバックアップをもとにリストアを行いました。 旧クラスタを残しながら新クラスタでリストアができるかもしれませんが、今回は試していません。 旧クラスタ削除後に、以下のようなマニフェストを作成してapplyします。 apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: postgresql-18-02 namespace: postgresql-test spec: imageName: ghcr.io/cloudnative-pg/postgresql:18.1-system-trixie instances: 1 enablePDB: false storage: size: 8Gi storageClass: microk8s-hostpath enableSuperuserAccess: true superuserSecret: name: postgresql-18-01-superuser plugins: - name: barman-cloud.cloudnative-pg.io isWALArchiver: true parameters: barmanObjectName: postgresql-backup-object-store bootstrap: recovery: source: origin externalClusters: - name: origin plugin: name: barman-cloud.cloudnative-pg.io parameters: barmanObjectName: postgresql-backup-object-store serverName: postgresql-18-01 cloudnative-pg.io もし、同名のクラスタでリストアする際は、新しく別のObjectStoreを作成し、新クラスタのバックアップ設定ではそちらを使うようにする必要があります。 cloudnative-pg.io ### PostgreSQLのPodを一時的に0台にしたい場合の操作 何らかの理由でPodを0にしたい場合、Clusterのannotationに `cnpg.io/hibernation=on` を設定することで実現できます。 cloudnative-pg.io 単にPodを消すだけだとCloudNativePGがすぐに新しいPodを作成するため、annotationで制御します。 Podの台数を戻す場合は `cnpg.io/hibernation=off` を設定します。 ### おわりに CloudNativePGを使ってPostgreSQLクラスタを作成したり、Barman Cloud Pluginを使ってバックアップ・リストアまでを一通り試したりしました。 リソースを作成するnamespaceや `destinationPath` の指定で少し苦労しましたが、無事に動くように設定できました。 作成したPostgreSQLクラスタはMastodonの検証環境のデータベースとして一ヶ月ほど動かしています。 今のところは特に問題は確認していないので、引き続きこの構成で使っていこうと思います。 ### 参考サイト * CloudNativePG * GitHub - cloudnative-pg/charts: CloudNativePG Helm Charts · GitHub * Backup | CloudNativePG * Recovery | CloudNativePG * Barman Cloud Plugin | Barman Cloud CNPG-I plugin * Declarative hibernation | CloudNativePG

はてなブログに投稿しました
CloudNativePGでPostgreSQLクラスタを建てて、バックアップ・リストアまでやってみた - await wakeUp(); https://sublimer.hatenablog.com/entry/2026/03/21/164539

#はてなブログ #CloudNativePG #Kubernetes

0 1 0 0
Preview
SCaLE 23x and CloudNativePG: Robust, Self-Healing PostgreSQL on Kubernetes I just came back from SCaLE 23x! This year I spoke about running robust, self-healing PostgreSQL on Kubernetes with CloudNativePG, and caught up with community legends.

New Blog Post: SCaLE 23x and CloudNativePG: Robust, Self-Healing PostgreSQL on Kubernetes

vyruss.org/blog/scale-2...

#SCaLE23x #PostgreSQL #Postgres #CloudNativePG #Kubernetes #K8s #CNCF #CloudNative #OpenSource #Database

1 0 0 0
Lister Learning and Teaching Centre

Lister Learning and Teaching Centre

This week: #PostgreSQL #Edinburgh #meetup on 📅 Thurs, March 12th! Join @boringsql.com and @vyruss.org for talks on making sure your queries don't break production & on how easy it is to run #Postgres on #Kubernetes with @cloudnativepg.bsky.social
👇
luma.com/5pglgx8h

#CloudNativePG #k8s #TechMeetups

3 2 0 0
Preview
PostgreSQL Berlin March 2026 Meetup On 5th of March, 2026, we had the PostgreSQL March Meetup in Berlin. Zalando hosted it again, and like last time it was four regular talks in two parallel tracks. The Meetup took place in the Hedwig-W...

PostgreSQL Berlin March 2026 Meetup

andreas.scherbaum.la/post/2026-03...

#PostgreSQL #Meetup #Berlin #Hackorum #WarehousePG #CloudNativePG #Zalando #AWS

0 0 0 0
Original post on mstdn.dk

Some time this weekend, we'll be upgrading the #Mastodon #PostgreSQL cluster on #MSTDNDK. The cluster is being managed by #CloudNativePG and upgrades have been successfully tested on multiple other clusters - even upgrades directly from version 15 to 18.

While this is an _incredibly_ smooth and […]

1 1 1 0
Title slide: CloudNativePG: Robust, Self-Healing PostgreSQL on Kubernetes

Title slide: CloudNativePG: Robust, Self-Healing PostgreSQL on Kubernetes

Slides from my talk CloudNativePG: Robust, Self-Healing PostgreSQL on Kubernetes at SCaLE 23x → vyruss.org/computing/sl...

#CloudNativePG #SCaLE23x #Postgres #PostgreSQL #Kubernetes #K8s #CloudNative #Database #OpenSource

2 1 0 0

At 11:15 Pacific Time (20:15 CET), I'll be presenting @cloudnativepg.bsky.social at @socallinuxexpo.bsky.social ! Livestream link below!
👇
🔴 www.youtube.com/watch?v=ZqEk...

#PostgreSQL #OpenSource #Postgres #CloudNativePG #Kubernetes #K8s #Database

2 0 1 0
Post image Post image

🚀 Day 1 at #P2D2 — workshops happening this morning: PostgreSQL Query Optimization (Hettie Dombrovskaya), Running PostgreSQL in #Kubernetes with #CloudNativePG (Jonathan & Danish), and Introduction to Postgres Hacking (Tomas Vondra, Nazir Bilal Yavuz). ☕🐘

#PostgreSQL #P2D2 #Workshops #Training

1 1 0 0
Post image

Day 1 in T9:302! ☸️
🕘 9:00 – Jonathan & Danish: Deploy PostgreSQL on Kubernetes with #CloudNativePG
🕘 13:30 – Pavlo Golub: Master PGWatch
▶️ Don’t miss it!

#PostgreSQL #PGDay #PPDD #Kubernetes #pgwatch

2 1 0 0
Post image

#throwback PostgreSQL on Kubernetes made practical ☸️ Vojtěch Mareš introduces CloudNativePG and shows how to run highly available Postgres on k8s. ▶️ Watch now! www.youtube.com/watch?v=ODWB...

#PostgreSQL #PGDay #PPDD #Kubernetes #CloudNativePG

1 1 0 0
Post image

Как и зачем мы написали собственное опенсорс-решение для бэкапов CloudNativePG в Stackland Всем привет! В этой статье п...

#cloudnativepg #postgres #postgresql #kubernetes #wal-g

Origin | Interest | Match

0 0 0 0
Post image

Сколько производительности съедает Kubernetes: сравниваю native PostgreSQL и CloudNativePG в Yandex Cloud В этой статье я руками сра...

#postgres #cloudnativepg #pgbench #kubernetes #perfomance #yandexcloud

Origin | Interest | Match

1 0 0 0
Screenshot of Grafana showing graphs and metrics for the mstdn.dk PostgrSQL cluster. Some red boxes, but not sure how to read that yet.

Screenshot of Grafana showing graphs and metrics for the mstdn.dk PostgrSQL cluster. Some red boxes, but not sure how to read that yet.

Monitoring is slowly getting up and running.. now if only I knew how to read all that! ;-)

#mastodon #postgresql #cloudnativepg #grafana #mstdndk

1 1 0 0
Preview
pgEdge's New CloudNativePG Integration Enhances Postgres on Kubernetes Efficiency pgEdge has unveiled its CloudNativePG integration, allowing smoother deployment of Postgres on Kubernetes. This innovation is set to simplify operations and enhance community engagement.

pgEdge's New CloudNativePG Integration Enhances Postgres on Kubernetes Efficiency #USA #Alexandria #Kubernetes #pgEdge #CloudNativePG

1 0 0 0
Post image

He is currently learning CloudNativePG 😎😁💙
#CloudNativePG #kube_cat #kubernetes

2 0 0 0
Post image

The latest #Kubernative digest with Cloud Native software updates includes #Istio 1.27 with inference extension support; #CloudNativePG v1.27.0; #Crossplane v2.0 managing applications; #Nelm v1.12 debugging Helm charts; #OpenCost v1.116.0 with Promless configuration; #copa v0.11 t.me/kubernative/...

1 1 0 0
Post image

Our latest #Kubernative digest with Cloud Native software updates mentions #Crossplane v1.20.0 with realtime compositions in Beta; #vCluster v0.25.0; #Kmesh v1.1.0; #Kargo v1.5.0; #Backstage v1.39.0; #CloudNativePG v1.26.0 with declarative in-place PgSQL upgrades; #FluxCD v2.6.0 t.me/kubernative/...

3 2 0 0
Original post on ruud.social

I am testing out some tech I want to learn more about :-)

I have used #Terraform to create some VMs in my #Proxmox server, then with #kubespray installed a kubernetes cluster on them.

Next I'll install #rook / #ceph so I have some storage, and last but not least I will install #CloudNativePG […]

1 1 0 0

I did not believe it, but #CloudNativePG is by far the easiest way I've ever deployed a self-healing, highly available Postgres Cluster.

Truly impressive piece of tech.

1 1 0 0
Register Now - Postgres on Kubernetes Workshop Zurich

This technical workshop is designed for engineers and architects working with Postgres and Kubernetes. Seats are limited, so save your spot now!

➡️ https://buff.ly/3Q29Lx6

#EDBPostgresAI #JustSolveItWithPostgres #Kubernetes #K8s #CloudNativePg #HybridCloud #PostgreSQL #OpenSource

1 0 0 0
Preview
cloud-native-ref/security/base/zitadel at main · Smana/cloud-native-ref Opiniated Cloud Native Platform Reference. Contribute to Smana/cloud-native-ref development by creating an account on GitHub.

Recently started using ZITADEL (an IAM solution). The more I use it, the more I like it! Needed to tweak a function to map roles with groups for #Kubernetes, and it works perfectly now.(Groups are in the roadmap).
Deployed using #GatewayAPI, #CloudNativePG#Crossplane...
github.com/Smana/cloud-...

1 0 0 0
Borys Neselovskyi on stage at DCC Switzerland

Borys Neselovskyi on stage at DCC Switzerland

Borys Neselovskyi presenting #CloudNativePG at #Data #Community #Conference #Switzerland!

#k8s #kubernetes #postgresql #postgres #OpenSource #database

0 0 0 0