multigres-operator

Kubernetes operator for Multigres — 部署、擴展及管理水平可擴展的 PostgreSQL 集群,具備自動化拓撲編排、防故障滾動更新及准入 Webhook。

multigres-operator 是什麼?

Kubernetes operator for Multigres — 部署、擴展及管理水平可擴展的 PostgreSQL 集群,具備自動化拓撲編排、防故障滾動更新及准入 Webhook 功能。

multigres-operator 概覽

這是什麼

Multigres Operator 是 Multigres v0.1.0 Alpha 的 Kubernetes 運算子。它管理跨多個故障域(可用區域或區域)的分佈式、分片的 PostgreSQL 叢集。該運算子提供統一的 API 來定義資料庫拓撲,並處理分片、單元(故障域)和閘道的編排。此版本適合實驗、展示、本地測試和收集意見回饋,不適用於生產環境。

主要功能

  • 全球叢集管理:以單一事實源(MultigresCluster)管理整個資料庫拓撲。
  • 自動化分片:將 TableGroup 和 Shard 視為一等公民進行管理。
  • 直接 Pod 管理:直接管理個別 Pod 和 PVC(不使用 StatefulSet),實現精準退役、具主節點感知的滾動更新,以及細粒度的 PVC 生命週期控制。
  • 模板系統:一次定義配置(CoreTemplate、CellTemplate、ShardTemplate)並在整個叢集中重複使用。
  • 外部閘道暴露:透過 spec.externalGateway 支援可選的外部閘道,可設定 externalIPs,並由 GatewayExternalReady 條件追蹤。
  • PostgreSQL 配置:透過 shard 模板上的 postgresConfigRef 引用使用者建立的 ConfigMap 來設定 postgresql.conf 覆寫。ConfigMap 內容變更會觸發自動滾動更新。
  • 整合憑證管理:內建自我簽署憑證產生與輪替功能,用於驗證 webhook,並可選支援 cert-manager。

使用情境

在 Kubernetes 中跨多個可用區域或區域部署與管理分片的 PostgreSQL 叢集。用於開發或示範目的,實驗分散式資料庫拓撲。使用模板與覆寫來定義標準化的資料庫叢集配置。透過跨故障域的自動容錯移轉實現高可用性。

快速開始

使用內建自我簽署憑證管理安裝運算子: bash kubectl apply --server-side -f https://github.com/multigres/multigres-operator/releases/download/v0.11.0/install.yaml 然後嘗試一個範例叢集: bash kubectl apply -f https://raw.githubusercontent.com/multigres/multigres-operator/v0.11.0/config/samples/postgres-password-secret.yaml kubectl apply -f https://raw.githubusercontent.com/multigres/multigres-operator/v0.11.0/config/samples/minimal.yaml

授權與價格

授權條款:Apache-2.0。價格:開放原始碼(免費)。

內容整理自該專案公開的 README 與儲存庫資訊。

將此徽章加入你的 README

Featured on YunoDB 徽章樣式與說明

你是這個專案的維護者嗎?展示它已收錄於 YunoDB。

Markdown[![Featured on YunoDB](https://yunodb.com/badge/multigresmultigres-operator.svg)](https://yunodb.com/tools/multigresmultigres-operator?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/multigresmultigres-operator?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/multigresmultigres-operator.svg" alt="Featured on YunoDB" height="20"></a>