Installation
This document describes how to install the Cennso Database extension and lists its requirements and dependencies.
Requirements
To install the Cennso Database extension, you must meet the Cennso Core Cluster requirements.
The Cennso Database extension has the following requirements and dependencies:
-
Cennso in version 2.11 or higher with the following Crossplane versions:
- Crossplane 1.19 or higher for MySQL (
cennso-dbconfiguration package) - Crossplane 2.0 or higher for PostgreSQL (
cennso-postgresqlconfiguration package)
- Crossplane 1.19 or higher for MySQL (
-
The following Crossplane providers and functions must be installed in the Management Cluster. Cennso installs them for you, so you don't need to install them separately. They are listed here so that you can check that your cluster has everything the extension needs, for example, after a Cennso upgrade:
To check which providers and functions are installed, run the following command on the Management Cluster:
bashNote
The Compositions reference the functions by name, so each
Functionresource must have exactly the following name:crossplane-contrib-function-go-templatingcrossplane-contrib-function-auto-readycrossplane-contrib-function-sequencercrossplane-contrib-function-patch-and-transform
PostgreSQL also uses the namespaced APIs of the providers (
kubernetes.m.crossplane.ioandhelm.m.crossplane.io), which are available inprovider-kubernetesandprovider-helmv1.0.0 or higher.
In addition, you must have:
- Access to a Cennso Management Cluster to deploy the Cennso Database extension
- Access to a Core Cluster to deploy the database workloads
- Monitoring composition installed on the Management Cluster
Installation steps
The Cennso Database extension is installed on the Management Cluster in the same way as any other Cennso extension. You can install it using either the Cennso Management Console (CMC) or the CLI:
To install the Cennso Database extension using CMC:
- Go to Cennso Management → Packages and choose the
Cennso DB Extensiontile. - Choose the package version, select the target namespace, and specify the extension name.
- Click Install to complete the installation.
To install the Cennso Database extension using CLI:
Create a YAML file (for example:
cennso-database-package.yaml) defining aPackageresource for the Cennso Database extension. For example:yamlReplace the following placeholders with the values that depend on your needs:
{PACKAGE-VERSION}- the Cennso Database extension version you want to install{CENNSO-DATABASE-PACKAGE-NAMESPACE}- the Kubernetes Namespace name on the Management Cluster where you want to install the package{CONFIGURATION_REPOSITORY}- the URL which specifies the source from which the configuration package is installed{CHART_REPOSITORY}- the URL which specifies the source from which the Helm chart is installed
Apply the YAML manifest with the
Packageresource to the Management Cluster:bashCreate a YAML file (for example:
cennso-database-extension.yaml) defining aClusterInstallationresource for the Cennso Database extension. For example:yamlReplace the following placeholders with the values that depend on your needs:
{EXTENSION-NAME}- the name of the Cennso Database extension installation{NAMESPACE}- the Kubernetes Namespace name on the Management Cluster where you want to install the extension{PACKAGE-VERSION}- the Cennso Database extension version you want to install
Important
The
{PACKAGE-VERSION}in the extension manifest must be the same as the{PACKAGE-VERSION}specified in thePackageresource from step 1.Note
You can configure values of the Cennso Database Support chart by specifying them in the
spec.forProvider.values.cennso-db-supportsection of theClusterInstallationresource. For more information about the available configuration options, see the Cennso Database Support chart reference.Apply the manifest to the Management Cluster using the following command:
bash
Next steps
After installing the Cennso Database extension in the Management Cluster, you can deploy the database operator and database clusters. First, decide whether you want to use MySQL or PostgreSQL, then follow the corresponding guide:
- Deploy Cennso Database - deploy a MySQL cluster
- Deploy Cennso PostgreSQL - deploy a PostgreSQL cluster
For more information about the resources used for the deployment, read the Concepts documentation.