> For the complete documentation index, see [llms.txt](https://docs.cennso.com/cennso/cennso-db/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/cennso/cennso-db/latest/releases/1.5.0.md).

# Cennso Database 1.5.0

**Release date:** 2026-11-26

The Cennso Database extension 1.5.0 provides the following features and fixes:

- Support for MySQL volumes provided by a storage class
- Support for additional alert rules in the `cennso-db-support` chart
- Fixes for the PostgreSQL metrics exporter
- Removed unused `local-nvme-storage` storage class

## Features

### Support for MySQL volumes provided by a storage class

In the previous versions of the Cennso Database extension, the `DBInstance` composition created the volume of each MySQL instance itself. For each MySQL instance, it created:

- A node-local Persistent Volume with the node affinity assigned to the node from the **spec.instances[].storage.node** field and the path from the **spec.instances[].storage.path** field
- A Persistent Volume Claim bound to this Persistent Volume

The storage class from **spec.storage.className** was only assigned to both resources as a name, and its provisioner did not create the volume. As a result, the extension did not support volumes created by a provisioner.

The Cennso Database extension in version 1.5.0 makes the **spec.instances[].storage** configuration option optional. When you omit it, the volume of each MySQL instance is requested with a Persistent Volume Claim that refers to the storage class specified in **spec.storage.className**. The provisioner of this storage class creates the volume, and each MySQL instance runs on a node where the provisioner can provide its volume. The MySQL instances must still be listed in **spec.instances**, each as an empty entry:

```yaml
spec:
  storage:
    capacity: 20Gi
    className: {STORAGE-CLASS-NAME}
  instances:
    0: {}
    1: {}
```

The behavior of the MySQL instances with **spec.instances[].storage** does not change except that it is optional now. Use it when you need to choose the node of each MySQL instance. Without it, the `DBInstance` Custom Resource has no option to choose the node, and the storage class and its provisioner determine the nodes where the MySQL instances can run. To get more information, read the [Node-local volumes](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-instance.md#node-local-volumes) section.

In addition, the **spec.storage** configuration option of the `DBOperator` Custom Resource is now optional. You can skip it when your `DBInstance` uses a storage class that already exists on the Core Cluster.

If you use [`binary-donor`](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/binary-donor.md), the storage class must support mounting the same volume by two pods on the same node.

For more information, see the following documents: 

- [DBInstance storage configuration](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-instance.md#storage-configuration)
- [DBOperator storage configuration](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-operator.md#storage-configuration)

### Support for additional alert rules in the `cennso-db-support` chart

The previous versions of the `cennso-db-support` chart provided only the alert rules for the backup jobs, and you could not add other rules to it. The Cennso Database extension in version 1.5.0 allows you to add your own alerting and recording rules using the **spec.forProvider.values.cennso-db-support.prometheusRule.additionalRules** configuration option of the `ClusterInstallation` resource. For example:

```yaml
spec:
  forProvider:
    values:
      cennso-db-support:
        prometheusRule:
          additionalRules:
            - alert: MySQLConnectionsHigh
              expr: >-
                100 * mysql_global_status_threads_connected
                / mysql_global_variables_max_connections > 80
              for: 5m
              labels:
                severity: warning
              annotations:
                summary: "MySQL connections are high on pod {{ $labels.pod }}"
```

The rules are added to the `PrometheusRule` of the chart as a separate group named `cennso-db-additional.rules`. They are installed once, together with the extension package, on the Management Cluster, and are not tied to a single database cluster. 

The rules from the **spec.metricsExporter.prometheusRules** configuration option of the `DBInstance` and `PostgreSQLInstance` Custom Resources are created on the Kubernetes cluster where the database cluster runs. The namespace where the rules are created is the namespace of the database cluster. 

An alerting system that runs on the Management Cluster, for example a central ruler that evaluates the metrics of several Core Clusters, does not see the rules created on the Core Clusters if it loads the PrometheusRule resources only from the Management Cluster. In this case, use the chart but not **spec.metricsExporter.prometheusRules** of the `DBInstance` or `PostgreSQLInstance` CRs. The rules are then always created on the Management Cluster, where the `cennso-db-support` chart is installed.

For more information, see the [Custom alert rules](https://docs.cennso.com/cennso/cennso-db/latest/observability/alerting.md#custom-alert-rules) section.

## Fixes

### Fixes for the PostgreSQL metrics exporter

In the previous version of the Cennso Database extension, the PostgreSQL metrics exporter was deployed only when Crossplane had permissions to read StatefulSets and Pods. The Cennso Database extension did not provide these permissions on its own. Without them, the PostgreSQL metrics exporter failed to be deployed with the `failed waiting for Informer to sync` error.

In addition, when the **spec.connectionSecretRef** configuration option of the `PostgreSQLInstance` Custom Resource pointed to a Core Cluster, no metrics exporter was deployed, while the `PostgreSQLInstance` was reported as ready.

The Cennso Database extension in version 1.5.0 fixes both problems. The metrics exporter is deployed for each PostgreSQL instance on the Management Cluster and on Core Clusters, and no additional permissions are required.

## Maintenance

### Removed unused `local-nvme-storage` storage class

The previous versions of the Cennso Database extension created the `local-nvme-storage` storage class on each Core Cluster with the Cennso Database Operator. This storage class was never used by the extension. The Cennso Database extension in version 1.5.0 does not create it anymore.

## Migration guide

> [!IMPORTANT]
> Before performing an upgrade, make sure you carefully read the [Installation](https://docs.cennso.com/cennso/cennso-db/latest/installation.md) and [Upgrade Cennso Database](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/cennso-db-upgrade.md) documents.

This section describes how to upgrade the Cennso Database extension from version 1.4.0 to 1.5.0.

The new version of the Cennso Database extension changes how the MySQL metrics exporter and `binary-donor` pods are placed on the node of their MySQL instance. For this reason, these pods are restarted during the upgrade. The MySQL instances are not restarted, and you do not need to change your claims.

### PostgreSQL metrics exporters are created again

When an existing `PostgreSQLInstance` with the enabled metrics exporter starts to use the new version, its metrics exporters are removed and created again once. The PostgreSQL instances are not restarted. The metrics of the `PostgreSQLInstance` are usually not collected for a few seconds. This gap can last up to a minute, because Crossplane limits how often it reconciles a resource that changes many times in a short period.

### Remove the `local-nvme-storage` storage class

The new version of the Cennso Database extension does not create the [`local-nvme-storage`](#removed-unused-local-nvme-storage-storage-class) storage class anymore. The storage class created by the previous versions is not removed from your Core Clusters during the upgrade. The extension does not use it, so you can remove it if none of your own volumes refer to it:

```bash
kubectl get pv | grep local-nvme-storage
kubectl delete storageclass local-nvme-storage
```
