AlloyDB Omni for Kubernetes overview

Select a documentation version:

AlloyDB Omni for Kubernetes lets you run a powerful, PostgreSQL-compatible database within your own Kubernetes environment. It packages the high-performance AlloyDB for PostgreSQL database into a container, managed by a Kubernetes operator, which simplifies deployment and operations.

This approach benefits users by providing the advanced features of AlloyDB Omni—such as being more than twice as fast for transactional workloads and up to 100 times faster for analytical queries than standard PostgreSQL—while using Kubernetes for automated management, scaling, and portability across different environments like data centers or private clouds.

Use AlloyDB Omni for Kubernetes when you need a high-performance, scalable PostgreSQL database but you can't use a fully managed cloud service due to regulatory requirements or data sovereignty, or you need to operate in disconnected environments. AlloyDB Omni for Kubernetes is also well-suited for modernizing legacy databases without committing to a full cloud migration, while still benefiting from cloud-native operational practices.

AlloyDB Omni for Kubernetes use cases

Choose AlloyDB Omni for Kubernetes when you need one or more of the following capabilities:

  • Automated provisioning and API-driven lifecycle management.
  • Configurable high availability (HA) to fine-tune failover mechanisms.
  • Sidecar support for integrating enterprise backup or monitoring agents.
  • Variable read pools for scaling read-only operations.
  • Load balancing with server-side connection pooling (PgBouncer).
  • Platform support and marketplace availability for Google Distributed Cloud and OpenShift.
  • Cross-region disaster recovery (DR) to create standby databases in remote clusters, data centers, and regions.

How it works

AlloyDB Omni uses Kubernetes through a dedicated AlloyDB Omni Kubernetes operator to automate the deployment and management of AlloyDB Omni instances in a Kubernetes cluster.

The following describes how AlloyDB Omni for Kubernetes works:

  1. Operator deployment: the AlloyDB Omni operator is installed into your Kubernetes cluster (which can be on Google Cloud (GKE), AWS (EKS), Azure (AKS), OpenShift, or on-premises).
  2. Custom Resources: the AlloyDB Omni operator defines Kubernetes Custom Resource Definitions (CRDs), most notably DBCluster. Users interact with AlloyDB Omni by creating and managing these DBCluster custom resources using standard Kubernetes tools like kubectl.
  3. Lifecycle management: the AlloyDB Omni operator looks for these custom resources and automates the complex tasks involved in the lifecycle management of an AlloyDB Omni database instance.

    This lifecycle includes the following:

    • Provisioning: setting up the database instance based on the DBCluster specification.
    • High availability: configuring and managing failover mechanisms to ensure database availability.
    • Disaster recovery: enabling features like cross-region DR with standby databases.
    • Backups: managing backup processes.
    • Updates: handling low-downtime maintenance and version updates.
    • Security: integrating features like Active Directory for authentication.
  4. Automation: using the AlloyDB Omni operator, you get API-driven lifecycle management for AlloyDB Omni, simplifying operations and allowing you to manage your database instances in a declarative way, consistent with other Kubernetes applications.

The AlloyDB Omni operator is available through different packaging, including Helm Charts and OLM bundles for Kubernetes and OpenShift. For more information, see Available AlloyDB Omni download and installation options.

What's next