For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Introduction

The Cennso Database (Cennso DB) extension provides resources to bootstrap, configure, and manage MySQL and PostgreSQL database clusters.

Thanks to the bundled database operators, the Cennso Database extension allows you to handle various database operations, such as provisioning and deprovisioning database clusters, scaling, creation of backups, managing TLS certificates, and others.

The Cennso Database extension keeps every database cluster deployment aligned with cluster-wide policies for storage classes, access controls, and secret management, so the database inherits your namespace-level RBAC and logging/backup retention rules. As this extension is aligned with the Cennso extension model, you can provision and manage database clusters in a declarative way alongside other Cennso workloads through CrossplaneOpens in a new tab compositions.

This extension allows you to easily set up a database instance or a cluster of database instances for any Cennso-based service that must retain state. Use it for transactional workloads like subscriber metadata or billing, for analytics that demand ACID guarantees, or to preserve configuration and lifecycle data that must survive pod restarts.

This extension exposes the following high-level resources to deploy and manage MySQL clusters:

This extension exposes the following high-level resources to deploy and manage PostgreSQL clusters:

To get started, read the following documents:

Use cases

You can configure and deploy the Cennso Database extension for Cennso Network Solutions (CNS) or Cennso Network Functions (CNF) to store and manage the state.

The diagram below represents a typical database cluster deployed using the Cennso Database extension:

Cennso Database deployment
Cennso Database deployment

On the diagram you may see a Cennso Network Solution cluster consisting of the three Cennso Network Function pods connected through a database proxy to the database cluster. The database cluster consists of two database instances managed by the database operator. The topology of the database cluster is managed by the failover manager.

Container images

Each database cluster is built from a set of container images that the extension pins to tested default versions. A cluster deployed with no image settings runs MySQL 8.0 or PostgreSQL 18.

You can override every image in the related Custom Resource, for example to pull from your own registry or to run a different PostgreSQL major version.

In the sections below, you can find the list of the default images per database server.

MySQL container images

The database operator and the MySQL instances use the following container images:

PostgreSQL container images

The database operator and the PostgreSQL instances use the following container images:

Additional containers

In addition to the database operator and server container images, each database cluster uses additional containers. Their set depends on the database server of your choice. The following sections describe the additional containers you can deploy together with the database operator and instances.

MySQL additional containers

For the MySQL cluster, you can deploy the following additional containers:

HAProxy provides an endpoint for the MySQL cluster, pooling connections across the operator-managed pods and gracefully draining traffic before rolling upgrades. Clients can point to the HAProxy service without caring which replica is writable, while the proxy keeps TCP sessions alive.

MySQL Orchestrator keeps a live representation of the replication topologies of the MySQL clusters, detects replication lag or node failures, and automates promotion of the healthiest replica when the primary goes down.

Percona Toolkit runs as a sidecar of each MySQL instance and ships the pt-* command-line tools for diagnosing and maintaining the MySQL cluster, such as checking replication consistency or analyzing slow queries. The same image runs a second sidecar that applies the primary or replica role settings to the MySQL instance whenever its role changes.

Percona XtraBackup takes physical backups of a running MySQL instance without blocking it, and the Restic client uploads them as encrypted, deduplicated snapshots to a Restic repository. The combined image runs as a sidecar of each MySQL instance, and the backup jobs created by the DBBackup Custom Resource execute the backup inside the sidecar of a read replica.

The additional components use the following container images:

The following container images are deployed only for the related Custom Resources and configuration options:

PostgreSQL additional containers

For the PostgreSQL cluster, you can deploy the following additional containers:

PgBouncer provides an endpoint for the PostgreSQL cluster. It pools and limits the number of active PostgreSQL connections and routes clients to the current primary. Clients can point to the PgBouncer service without knowing which pod is writable.

Failover is handled by Patroni, which runs inside the PostgreSQL server image rather than as a separate container. It keeps the replication topology of the PostgreSQL cluster, detects node failures, and promotes the healthiest replica when the primary goes down.

The additional components use the following container images:

The following container images are deployed only for the related Custom Resources and configuration options: