StackGres

The most advanced Postgres Enterprise Platform. Fully Open Source.
Channel
Version
1.16.2 (Current)
Min k8s Version
1.18.0
Max k8s Version
1.32.999
Capability Level
Deep InsightsDeep Insights
Provider
OnGres
Container Image
quay.io/stackgres/operator:1.16.2
Created At
Wed May 07, 2025
Maintainers
Categories
Database

StackGres

StackGres is the Stack required for enterprise production PostGres. A fully-featured platform to run Postgres on Kubernetes. Fully Open Source, StackGres supports both a declarative approach suitable for GitOps workflows and a complete Web Console for the best user experience.

Built by OnGres ("On PostGres"), StackGres requires little to no prior Postgres experience. StackGres can perform fully automated deployments; fully automated database operations ("Day 2 operations") and comes with advanced database tuning by default. Yet remaining highly customizable for Postgres expert DBAs.

StackGres features include, among others:

  • High Availability with automated failover. StackGres relies on Patroni, and its built-in and fully automatic.
  • Integrated connection pooling. Built-in, by default, like it should be for production workloads.
  • Automatic backups with lifecycle policies. Backup your clusters automatically to any object store. Apply retention policies. Restoration supports PITR.
  • Advanced replication modes, including async, sync and group replication. It also supports cascading replication and standby clusters on separate Kubernetes clusters for disaster recovery.
  • More than 150 Postgres extensions. The Postgres platform with the largest number of extensions in the world. With new extensions added continuously.
  • Observability. Fully integrated with the Prometheus stack. Includes pre-defined, Postgres-specific dashboards and alerts.
  • Fully-featured Web Console. Perform any operation from the Web Console. Supports SSO, fine-grained RBAC and a REST API.
  • Distributed Logs. StackGres developed a mechanism to ship logs from all pods to a central log server, managed by StackGres, that store logs in Postgres. Query your logs with SQL or from the Web Console!
  • Automated Day 2 Operations. Minor and major version upgrades, container upgrades, controlled restart, vacuum, repack, even benchmarks!
  • Expertly tuned by default. From the creators of CONF, StackGres pre-tunes your Postgres servers with more than 40 parameters tuned by default.
  • 100% Open Source. No "premium version with advanced features", no production usage restrictions. Just Open Source.
  • 24/7 Support Available from OnGres

Installation and documentation

Installation:

All the documentation is available at stackgres.io/doc.

Join the Slack and/or Discord Public Communities for Community support.

Custom Resource Definitions

StackGres Backup
Handle to a performed (or to be performed, if run manually) backup
View YAML Example
StackGres Cluster
Main CRD, manages Postgres clusters (one or more Postgres pods)
View YAML Example
StackGres Operator Configuration
Operator configuration for OLM-based installations (equivalent to values.yaml with Helm)
View YAML Example
StackGres Database Operation
Day 2 Operations, including upgrades, restarts, vacuum, repack, etc
View YAML Example
StackGres Distributed Logs
Multi-tenant logs server, to aggregate Postgres logs. Fully managed
View YAML Example
StackGres Instance Profile
Instance Profiles are like "t-shirt" sizes, used for pods sizing
View YAML Example
StackGres Object Storage
Handle to an existing Object Storage (e.g. S3), used to store backups
View YAML Example
StackGres Postgres Configuration
Strongly validated customized Postgres configuration (postgresql.conf)
View YAML Example
StackGres Connection Pooling Configuration
Customized PgBouncer (connection pooler) configuration
View YAML Example
StackGres Script
Managed SQL Scripts, used for initial SQL commands or migrations
View YAML Example
StackGres Sharded Backup
Handle to a performed (or to be performed, if run manually) backup for sharded clusters
View YAML Example
StackGres Sharded Cluster
Manages Postgres sharded clusters (two or more SGClusters)
View YAML Example
StackGres Sharded DbOps
Day 2 Operations for sharded clusters, including restarts, resharding, etc
View YAML Example
StackGres Stream
Stream Change Data Captured (CDC) events
View YAML Example