# Cennso Documentation: full documentation

> This is part 1 of 10 of the newest version of every component you may read (pages 1–131 of 857).
> The content is paginated: fetch every part to see all of it.
> Next part: https://docs.cennso.com/llms-full.txt/1
> Page index: https://docs.cennso.com/llms.txt
> Every page opens with its title, description and address. Its markdown alone is the address with `.md` appended.

---
title: "What is Cennso"
description: "Cennso is a complete platform designed to build and manage next-generation network services."
url: "https://docs.cennso.com/cennso/cennso/latest"
---

# What is Cennso?

Cennso is a complete platform designed to build and manage next-generation network services. With its globally distributed architecture, centrally managed from a single point, Cennso significantly reduces the costs and operational complexities associated with deploying and maintaining distributed network infrastructures across cloud and edge environments.

Cennso adopts an API-first strategy, adhering to best practices in modern operations such as GitOps, Continuous Deployment, and Observability. Cennso components are introspected and monitored using OpenTelemetry standards, providing real-time metrics, logs, and distributed traces. This ensures a robust and flexible platform for effortlessly creating, managing, and scaling network services.

## How to use Cennso?

Depending on your goal, you can bootstrap, set up, or configure Cennso in two manners:

- through Cennso Management Console (CMC)
- through a Command Line Interface (CLI)

### Cennso Management Console

Cennso operates on the basis of [Custom Resources (CRs)](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources). Through Cennso Management Console (CMC), you can modify the CRs, but not the source code. Therefore, CMC is the preferred approach for demos and less complex operations, such as certain aspects of configuration.

### Command Line Interface

Command Line Interface (CLI) is intended for what is commonly known as [GitOps](https://docs.cennso.com/cennso/cennso/latest/best-practices/gitops.md), namely having a defined state represented in a YAML file that can be applied to the cluster. This approach is preferred in the case of more complex operations, that require interference with the source code or more extensive configuration.

---
title: "Management Cluster requirements"
description: "This document defines the infrastructure and cluster requirements necessary to deploy and operate Cennso and its components."
url: "https://docs.cennso.com/cennso/cennso/latest/requirements/mc-requirements"
---

# Management Cluster requirements

This document defines the infrastructure and cluster requirements necessary to deploy and operate Cennso and its components.

>**NOTE:** If you can't meet these particular requirements, potential mitigations can be elaborated as part of a professional service agreement.

## Kubernetes version

Cennso is based on a cloud-native principles. To operate, the compatible Kubernetes cluster is required (**Management Cluster**). The following Kubernetes cluster environments and services are tested or known to work:

| **Kubernetes cluster** | **Support** |
|:---|:---|
| IBM Cloud Kubernetes Service | Travelping, IBM-supported |
| Rancher Kubernetes engine 2 | Travelping |

The minimum recommended Kubernetes version is v1.30.

## Cluster requirements

**The minimum recommended cluster size is 3 nodes.**

The following table contains the minimum resources requirements for each component:

| Component | CPU (threads) | RAM [GB] | Block storage [GB] | IOPS per GB |
|---|---|---|---|---|
| Cennso | 10 | 22 | 100 | 10 |
| Cluster Controller (per Core Cluster) | 6 | 16 | 100 | 10 |
| **Total** | **16** | **38** | **150** | **n/a** |

For monitoring, the requirements are as follows:

- [Small Profile](https://docs.cennso.com/cennso/cennso/latest/user-guides/monitoring-profile-small.md#requirements)
- [Large Profile](https://docs.cennso.com/cennso/cennso/latest/user-guides/monitoring-profile-large.md#requirements)

>**NOTE:** The sizing of a production cluster highly depends on the actual monitoring use case, like retention time of telemetry data (logs, metrics, traces) and on scale (number of Core Clusters, servers, services).

## Cluster components

For Cennso to be fully functional, the cluster requires additional configuration. The following components are necessary:

- Ingress Controller with Ingress Class configured
- Load Balancer with external IPs pool configured
- Persistence Volume controller with Storage Class configured

---
title: "Core Cluster requirements"
description: "To ensure optimal performance, each Core Worker and Core Cluster should meet the following minimum hardware requirements. These requirements may vary based on the specific workloads and network demands at the Core Cluster."
url: "https://docs.cennso.com/cennso/cennso/latest/requirements/cc-requirements"
---

# Core Cluster requirements

To ensure optimal performance, each Core Worker and Core Cluster should meet the following minimum hardware requirements. These requirements may vary based on the specific workloads and network demands at the Core Cluster.

## Kubernetes requirements

This section lists Kubernetes requirements you must meet to run a Core Cluster effectively.

### Cluster resources

The Travelping CNFs are based on cloud-native principles. They are packaged as either Helm charts or they are based on operators. To operate CNFs, a Cennso-enabled Kubernetes cluster is required (**Core Cluster**). The following Kubernetes cluster environments and services are tested or known to work:

| **Kubernetes cluster** | **Support** |
|:---|:---|
| Redhat Openshift | Travelping, IBM-supported |
| AWS EKS | customer-reported |
| Cluster API-based cluster | work in progress |
| Rancher Kubernetes engine 2 | Travelping |

The minimum recommended Kubernetes version is v1.27.

#### Minimum lab cluster

To test CNFs, a minimal Core Cluster setup is required. The minimal Core Cluster consists of at least three worker nodes. If you don't need a separation between generic and Data Plane worker nodes, you can use the Data Plane worker also for generic workloads such as Control Plane CNFs (Session Management Controller). The recommended setup is:

- 3 generic workers
- 2 Data Plane workers

>**NOTE:** For a very basic deployment and lifecycle management tests, you can use only a single worker node, however, it’s not recommended for any functional testing.

The following table contains the minimum resource requirements and mandatory Kubernetes labels for the worker nodes of a Core Cluster:

| **Worker** | **CPU** | **Memory** | **Network** | **Labels** |
|:---|:---|:---|---|---|
| Generic worker | 8 vCores | 64 GB | 1 Gbit/s | node-role.cennso.net/worker=generic |
| Data Plane worker | 16 vCores | 64 GB | 1-10 Gbit/s with supported NIC | node-role.cennso.net/worker=dataplane |

>**NOTE:** This excludes the node resources required for the management functions of the cluster itself. Refer to the requirements and recommendations of the Kubernetes distribution or Kubernetes service of your choice.

#### Production cluster

The sizing of a production cluster highly depends on the actual use case of a Cennso Network Solution (CNS) and the required KPIs.

### CPU Manager policy

Kubernetes [CPU Manager policy](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/) should be set to `static` on all worker nodes to allow exclusive core allocation for dedicated CNFs. You can set it with this configuration option:

```yaml
- --cpu-manager-policy=static
```

### Memory Manager policy

Kubernetes [Memory Manager policy](https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/) must be set to `Static` on all Data Plane worker nodes to allow socket-aligned scheduling of containers. If enabled, further settings are required which depend on the server architecture. See a common configuration example for a two-socket machine:

```yaml
- --memory-manager-policy=Static
- --kube-reserved=cpu=3,memory=4Gi
- --system-reserved=cpu=1,memory=2Gi
- --reserved-memory=0:memory=3Gi;1:memory=3Gi
```

### Topology Manager policy

Kubernetes [Topology Manager policy](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/) must be set to `single-numa-node` on all Data Plane worker nodes to allow socket-aligned scheduling of containers. You can set it with this configuration option:

```yaml
- --topology-manager-policy=single-numa-node
```

## Operating system requirements

This section lists operating system requirements you must meet to run Cennso effectively.

### Kernel version and modules

The following kernel versions are supported:

| **Kernel version** | **Compliance** |
|:---|:---|
| 5.4 | supported and validated |
| 5.10 | supported |
| 5.15 | supported |
| 6.8 (patch version <= 6.8.0-60-generic) | supported |

To properly operate CNFs, the following kernel modules are required:

| **Kernel module** | **Requirement** |
|:---|:---|
| sctp | recommended |
| bridge | required |
| br_netfilter | required |
| bonding | recommended |
| 8021q | required |
| iptable_filter | required |
| ip6table_filter | required |
| nf_conntrack | required |
| vxlan | required |
| vrf | required |
| nf_tables | required |
| nf_nat | required |
| nft_compat | required |
| nft_chain_nat | required |
| xt_u32 | recommended |
| gre | recommended |
| ip_gre | recommended |
| wireguard | required |

### CPU governor

The effective CPU governor setting on the worker nodes should be set to `performance`.

## Network Interface Cards requirements

To run Data Plane-specific CNFs, for example User Plane Gateway (UPG), the Data Plane worker requires specific Network Interface Cards (NICs). These specific NICs are required to enable:

- Infrastructure for User Plane packet forwarding, for example using Fast Path Provider (FPP)
- CNFs for functional testing and production deployments

The following NICs are supported:

| **NIC** | **Vendor ID / Dev ID** | **Compliance** |
|:---|:---|:---|
| Intel X710 | 8086/1572 | supported[^1] |
| Intel XL710 | 8086/1583 | supported |
| Intel X710 | 8086/1589 | supported |
| Intel XXV710 | 8086/158b | supported |
| Intel E810 | 8086/1593 | supported with the driver version ICE COMMS package version 1.3.37.0, only supported with the dedicated interfaces (no SR-IOV) |

[^1]: Supported indicates that the CNF and CNC components operate effectively on this hardware, ensuring stable performance in a production environment.

>**NOTE:** If your NIC is not listed in the table, contact our team to inquire about the compatibility of additional hardware.

## HugePages requirements

HugePages with a size of 2Mi should be available on the Data Plane nodes as Kubernetes-managed allocatable resources like CPU and memory.

## Persistent storage services requirements

Certain CNFs require persistent storage provided as Block Storage or Object Storage APIs:

- Block Storage Classes and CSI provider to support Persistent Volume Claims (PVC)
- Object Storage (S3-compatible)

## Database services

According to cloud native and the [Twelve-Factor principles](https://12factor.net/), certain stateless CNFs require a backing data service. The following CNFs require a Relational Database Management System (RDBM):

- TPOSS (AAA server)

---
title: "Installation"
description: "This document describes how to install Cennso and lists its requirements."
url: "https://docs.cennso.com/cennso/cennso/latest/installation"
---

# Installation

This document describes how to install Cennso and lists its requirements.

## Installation steps

To register and connect your cluster to Cennso Cloud, follow these steps:

1. Log in to [Cennso Cloud Portal](https://cloud.cennso.com).
2. Go to **Clusters** and click **Register**. A pop-up window appears.
3. Fill in the required fields and click **Register**. A pop-up window appears.

   >[!TIP]
   >You can define more advanced options in the **NEXT STEP** tab but it's not required to register the cluster. You can configure it later in Cennso Management Console (CMC).

4. Execute the command from the pop-up window to install Cennso on your cluster and connect it to Cennso Cloud. To see the command again, click **CONNECT**.
5. Your cluster appears on the cluster list. Click its name to open the **Overview** screen, scroll down to the **Cluster status** section, and see the installation progress.
6. After your cluster is connected, you can access CMC using the URL and credentials shown at the bottom of the **Cluster information** section.

---
title: "Cluster architecture"
description: "Cennso's architecture is built to support the deployment and management of distributed network services across multiple locations with centralised control. The architecture is composed of two main elements: the Management Cluster and Core Clusters."
url: "https://docs.cennso.com/cennso/cennso/latest/concepts/cluster-architecture"
---

# Cennso architecture

## Architecture

Cennso's architecture is built to support the deployment and management of distributed network services across multiple locations with centralised control. The architecture is composed of two main elements: the Management Cluster and Core Clusters.

```likec4
specification {
  // Cennso brand colors per internal guidelines
  color cnc-blue #1E75BC
  color cnf-cyan #00C1D4
  color external-blue #2E398A
  color infra-grey #848687

  // Element kinds
  element platform {
    style {
      color cnc-blue
    }
  }
  element cluster {
    style {
      color cnc-blue
      multiple true
    }
  }
  element coreComponent {
    notation 'Cennso Network Core (CNC)'
    style {
      color cnc-blue
    }
  }
  element networkFunction {
    notation 'Cennso Network Function (CNF)'
    style {
      color cnf-cyan
    }
  }
  element infrastructure {
    notation 'Infrastructure'
    style {
      color infra-grey
    }
  }
  element external {
    notation 'External System'
    style {
      color external-blue
    }
  }
  element actor {
    style {
      shape person
      color cnc-blue
    }
  }

  // Relationship kinds
  relationship manages
  relationship sends
  relationship uses
}

model {
  operator = actor 'Operator' {
    description 'Platform administrator managing Cennso via CMC or GitOps'
  }

  cennso = platform 'Cennso Platform' {
    description 'Complete platform for building and managing next-generation network services'

    mgmt = cluster 'Management Cluster' {
      description 'Central hub for orchestration, monitoring, and management of all Core Clusters'

      compositionManager = coreComponent 'Cennso Resource Manager' {
        description 'Manages lifecycle of extensions, providers, and Cennso components'
        technology 'Crossplane'
      }

      extensionManager = coreComponent 'Extension Manager' {
        description 'Installs and manages extensions on both Management and Core Clusters'
        technology 'Crossplane'
      }

      cennsoAgentMgmt = coreComponent 'Cennso Agent' {
        description 'Bootstraps initial Cennso installation, communicates with Cennso Cloud, and propagates new extension versions to the Management Cluster'
        technology 'Kubernetes Agent'
      }

      clusterController = coreComponent 'Cluster Controller' {
        description 'Configures and maintains the Core Cluster control plane — deploys control plane components and manages node operations'
        technology 'Kubernetes'
      }

      cmc = coreComponent 'Cennso Management Console' {
        description 'Primary OAM interface for monitoring, managing CRs, installing extensions, and upgrading Cennso'
        technology 'Grafana'
      }

      monitoring = coreComponent 'Monitoring stack' {
        description 'Centralised telemetry storage for metrics, logs, and traces from Core and Management Clusters'
        technology 'LGTM (Logs, Grafana, Traces, Metrics)'
      }

      cdmMgmt = coreComponent 'Cennso Data Mesh' {
        description 'Distributed communication system — hosts CDM Manager, CDM Provider, and CDM Nodes for OAM and Signaling'

        cdmManager = coreComponent 'CDM Manager' {
          description 'Central authority for identity, permissions, secret management, and mesh composition'
        }

        cdmProvider = coreComponent 'CDM Provider' {
          description 'Kubernetes controller automating mesh lifecycle — retrieves Secrets and triggers Helm installs via Crossplane'
          technology 'Crossplane'
        }

        cdmNodeMgmt = coreComponent 'CDM Node' {
          description 'NATS server wrapper providing secure communication, TLS, and HA clustering'
          technology 'NATS'
        }
      }
    }

    core = cluster 'Core Cluster' {
      description 'Distributed cluster running network functions, managed from the Management Cluster'

      cennsoAgent = coreComponent 'Cennso Agent' {
        description 'Bootstraps Kubernetes cluster for Cennso workloads and validates that cluster and nodes meet system requirements'
        technology 'Kubernetes Agent'
      }

      cdmCore = coreComponent 'Cennso Data Mesh' {
        description 'CDM Nodes on Core Cluster providing Signaling and OAM communication'

        cdmNodeCore = coreComponent 'CDM Node' {
          description 'NATS server wrapper providing secure communication, TLS, and HA clustering'
          technology 'NATS'
        }
      }

      telemetryAgent = coreComponent 'Telemetry Agent' {
        description 'Collects metrics, logs, and traces using OpenTelemetry and forwards to Management Cluster'
        technology 'OpenTelemetry'
      }

      smc = networkFunction 'SMC' {
        description 'Session Management Controller — manages user sessions, acts as PGW-C (Control Plane)'
        technology 'GTPv1/v2, PFCP, Diameter'
      }

      upg = networkFunction 'UPG' {
        description 'User Plane Gateway — forwards user data traffic, acts as PGW-U (User Plane)'
        technology 'PFCP, GTP-U'
      }

      cdf = networkFunction 'CDF' {
        description 'Charging Data Function — collects and processes Charging Data Records (CDRs)'
        technology 'Diameter Rf, Nchf HTTP'
      }

      ppe = networkFunction 'PPE' {
        description 'Policy Provisioning Engine — stores and serves policy mappings'
        technology 'REST API'
      }

      fpp = networkFunction 'FPP' {
        description 'Fast Path Provider — provides accelerated data path capabilities'
        technology 'DPDK'
      }
    }
  }

  // External systems
  gitRepo = external 'Git repository' {
    description 'Stores declarative configuration for GitOps-based deployments'
    technology 'Git'
  }

  accessNetwork = external 'Access Network' {
    description 'RAN and subscriber equipment (2G-5G)'
  }

  dataNetwork = external 'Data Network' {
    description 'External packet data networks (Internet, enterprise)'
  }

  // Relationships — Management
  mgmt -> cennsoAgent
  cennsoAgent -> mgmt 'reports status to'
  operator -> cmc 'manages platform via'
  operator -> gitRepo 'commits configuration to'
  gitRepo -> compositionManager 'GitOps sync'

  compositionManager .manages extensionManager
  clusterController .manages core 'manages Core Cluster lifecycle'

  extensionManager -> core 'deploys extensions to'

  // Relationships — Monitoring
  core.telemetryAgent .sends mgmt 'forwards telemetry data'
  cmc -> monitoring 'visualises data from'

  // Relationships — Data Mesh
  cdmMgmt -> cennsoAgentMgmt 'bidirectional via embedded CDM Node'
  cdmCore -> cennsoAgent 'bidirectional via embedded CDM Node'
  cdmManager -> cdmProvider 'provides secrets and identity'
  cdmProvider -> cdmNodeMgmt 'orchestrates lifecycle'

  // Relationships — Network Functions
  accessNetwork -> smc 'GTP signaling'
  accessNetwork -> upg 'GTP-U user data'
  smc -> upg 'PFCP session control'
  upg -> dataNetwork 'forwards user traffic to'
  smc -> cdf 'sends accounting requests'
  smc -> ppe 'fetches policy mappings from'
  cdf -> cdmCore 'stores CDRs via'
  upg -> fpp 'uses fast path from'
}

views {

  view index {
    title 'Cennso Platform — Architecture Overview'
    description 'High-level overview of the Cennso platform showing Management Cluster, Core Clusters, and network functions'

    include *
    include cennso with {
      navigateTo managementCluster
    }

    autoLayout TopBottom

    rank source {
      operator,
      gitRepo
    }

    rank same {
      accessNetwork,
      cennso,
      dataNetwork
    }
  }

  view managementCluster of mgmt {
    title 'Management Cluster'
    description 'Internal components of the Cennso Management Cluster'

    include operator
    include gitRepo

    group 'Management Cluster' {
      group {
        opacity 0%
        border none

        include cennsoAgentMgmt
        include cmc
        include compositionManager
      }

      group {
        opacity 0%
        border none

        include clusterController
        include cdmMgmt
        include monitoring
        include extensionManager
      }
    }

    include accessNetwork
    include core
    include dataNetwork

    autoLayout TopBottom

    rank source {
      operator,
      gitRepo
    }

    rank same {
      accessNetwork,
      core,
      dataNetwork
    }
  }

  view coreCluster of core {
    title 'Core Cluster'
    description 'Network functions and agents running on a Core Cluster'

    include *
    include mgmt -> cennsoAgent
    include cennsoAgent -> mgmt
    include mgmt with {
      navigateTo managementCluster
    }
    include accessNetwork
    include dataNetwork

    include telemetryAgent -> mgmt

    autoLayout LeftRight

    rank source {
      accessNetwork
    }

    rank sink {
      dataNetwork
    }
  }


}
```

### Management Cluster

The Management Cluster is the central hub responsible for orchestrating and managing the entire Network Topology. It provides a unified control plane that ensures consistency across all Core Clusters, simplifying the deployment and maintenance of network services.

Key functions of the Management Cluster:

- **Centralised orchestration:** The Management Cluster oversees the deployment and operation of network functions across all Core Clusters, ensuring smooth configuration and performance.
- **Global overview:** Administrators can monitor and manage Core Clusters from the Management Cluster, tracking performance metrics and the overall health of the infrastructure.
- **Centralised Telemetry Data Storage:** Serving as the main repository for telemetry data from Core Clusters, the Management Cluster ensures centralised data management and availability for further processing and analysis.
- **Unified management interface:** The Management Cluster provides a single entry point for managing network solutions across Core Clusters, accessible via the Cennso Management Console or CLI, offering comprehensive control over all network resources.

### Core Clusters

Core Clusters are distributed environments where Cennso Network Functions are deployed. Each Core Cluster is managed with its own Cluster Controller and a pool of Core Workers that provide the necessary computational resources to run network functions locally.

Key functions of Core Clusters:

- **Local execution of Network Services:** Core Clusters run key network functions such as data forwarding, session management, and packet processing close to where the traffic originates. This ensures low-latency data handling and optimised performance for end users.
- **Autonomous operations with centralised control:** While Core Clusters are managed from the centralised Management Cluster, they operate autonomously in handling local traffic, allowing for more efficient data processing and resource management.
- **Scalability and flexibility:** Core Clusters are scalable by design, allowing new clusters to be added when network demands grow. Core Workers pools within each cluster can be scaled up or down based on the specific resource requirements.

## Extensions

Cennso allows you to extend its core functionality in a flexible way using extensions. You can use them to add new features — for example, to build network solutions tailored to your needs. For more information on how to extend Cennso, read the [Extension management](https://docs.cennso.com/cennso/cennso/latest/configuration/extensions.md) document.

## Cennso Network Solutions

You can build your own custom network solutions. Our team can help assemble CNFs to create a tailored Cennso Network Solution (CNS) that fits your specific needs and integrates seamlessly with multi-cloud and edge environments. These solutions come with APIs and integration points that follow industry standards, such as Kubernetes and Custom Resource Definitions (CRDs).

With your Cennso subscription, you also gain access to Cennso Testing Tools (CTT), allowing you to create and run tests to ensure your solution works as expected.

---
title: "Core Clusters"
description: "Kubernetes Cluster Control Plane is managed and orchestrated by the CoreCluster resource that runs on the Management Cluster."
url: "https://docs.cennso.com/cennso/cennso/latest/concepts/core-cluster"
---

# Core Cluster

Kubernetes Cluster Control Plane is managed and orchestrated by the CoreCluster resource that runs on the Management Cluster. It ensures that the Kubernetes Cluster Control Planes are set up correctly to meet the requirements of Cennso Network Functions, communicate efficiently, and provide the necessary infrastructure for the Network Solution.

Key features:

- Core Cluster orchestration: Manages the configuration and operations of nodes within a Core Cluster, ensuring they are ready to support Cennso Network Functions.
- Secure communication: Provides and manages secure communication between nodes within a Core Cluster to maintain the integrity and reliability of the network.
- Operational coordination: Ensures the nodes are synchronised and function together to meet the demands of the remote cluster's network solution.
- Registry credentials management: Ensures that Cennso registry credentials are available on all Core Cluster namespaces once created.

## High availability

High availability (HA) for the Core Cluster ensures a resilient and robust Control Plane capable of handling failures with minimal disruption. By enabling HA, the Core Cluster is designed to maintain continuous operation through fault-tolerant mechanisms, providing redundancy and seamless failover. This setup minimises downtime and enhances reliability, allowing your workloads to remain unaffected even in challenging scenarios.

By default, high availability is disabled and the Core Cluster runs in the non-redundant setup, which is suitable for testing and development. For a production-ready setup, it is recommended to use HA.

You can enable HA for the Core Cluster in the **Specification** tab during the creation process. If you are using CLI, set **spec.clusterController.compositionRef** to `clustercontroller-ha`.

   ```bash
   cat <<EOF | kubectl apply -f -
   kubectl apply -f - <<EOF
   apiVersion: cccc.cennso.com/v1alpha1
   kind: CoreCluster
   metadata:
     name: {CLUSTER_NAME}
     namespace: cennso-infra
     spec:
       compositionRef:
         name: corecluster-basic
       clusterController:
         compositionRef: clustercontroller-ha
   EOF
   ```

Enabling it runs the Core Cluster Control Plane and etcd pods in three replicas. It evenly distributes replicas across zones and nodes, reducing the impact of zone or node failures and enhancing redundancy.

## High availability of cluster API endpoint

While the high availability (HA) mode of the Core Cluster ensures the resilience of Control Plane cluster components, it is also possible to add more API endpoints, which allows for zone distribution.

By default, a cluster is enabled with one external IP for API access. You can enable and configure additional load balancers in the **Specification** tab during the creation process. If you are using CLI, set **spec.service.additionalLoadBalancers** with their configuration. It works only with a HA Core Cluster.

   ```bash
   cat <<EOF | kubectl apply -f -
   kubectl apply -f - <<EOF
   apiVersion: cccc.cennso.com/v1alpha1
   kind: CoreCluster
   metadata:
     name: {CLUSTER_NAME}
     namespace: cennso-infra
     spec:
       compositionRef:
         name: corecluster-basic
       clusterController:
         compositionRef: clustercontroller-ha
       service:
         additionalLoadBalancers:
         - {}
         - annotations:
             example.zone.activation: a
   EOF
   ```

The above example creates two additional services (type: LoadBalancer), where the second has an `example.zone.activation: a` annotation.

If you add or modify load balancers after creating a Core Cluster, you must follow a [node upgrade](https://docs.cennso.com/cennso/cennso/latest/user-guides/upgrade-reset-node.md) instruction to refresh the certificate on the nodes.

Also, it is necessary to regenerate the join token for nodes. To do so, remove `jointokenrequests.k0smotron.io` with the name that has the cluster name as a prefix, and it will be regenerated.

If you want to use the additional Load Balancers by nodes, you must also change the cluster external address to DNS record. To do so, follow the [customise cluster API endpoint](#customise-cluster-api-endpoint) instruction.

## Customise cluster API endpoint

By default, the cluster address points to the primary load balancer IP address. It is possible to customise it to point to another address, for example DNS record.

You can configure the external address in the **Specification** tab during the creation process. If you are using CLI, set **spec.externalAddress** with the desired address.

If you change to a DNS record, you must create it manually and point to the IPs of the Core Cluster load balancers. You can read them from the `CoreCluster` status:

```bash
kubectl get coreclusters.cccc.cennso.com {YOUR_CLUSTER_NAME} -n {CLUSTER_NAMESPACE} -ojsonpath="{.status.endpoint}"
```

**status.endpoint.hostname** is the resolved external address, once set. **status.endpoint.addresses** lists each load balancer's IP, including port information where available and, when the load balancer's own `annotations` (see `spec.service.annotations`/`spec.service.additionalLoadBalancers[].annotations` above) include a **cennso.com/ip-type** entry, an **ipType** matching that annotation's value (typically `public`/`private`) — so there is no need to query the underlying `XClusterController` resource or its Services to tell them apart. Add this annotation alongside your cloud provider's own load balancer scope annotation if you want the scope reflected in status.

If you are upgrading the Core Cluster with a new API endpoint address, you must also adjust all connected nodes' configuration:

1. Connect to the node.

2. Stop the `k0s` service.

   ```bash
   sudo k0s stop
   ```

3. Edit the external address in `/var/lib/k0s/kubelet.conf`. It is stored in the **[]clusters.cluster.server** field.

4. Start the `k0s` service.

   ```bash
   sudo k0s start
   ```

Also, it is necessary to regenerate the join token for nodes. To do so, remove `jointokenrequests.k0smotron.io` with the name that has the cluster name as a prefix, and it will be regenerated.

## WireGuard - encryption of traffic between nodes

You can activate [WireGuard](https://www.wireguard.com/) on Core Cluster's nodes to encrypt traffic between them. By default, this option is enabled when creating a Core Cluster. To enable or disable WireGuard on an existing Core Cluster, use one of the following methods:

### WireGuard - encryption of traffic between nodes (CMC)

### CMC

1. Go to **Cennso Management -> Core Clusters** and select the Core Cluster where the changes are to be made.
2. Click **Edit** and go to the **Specification** tab in the right-side panel.
3. Enable or disable the **Wireguard** option. Click **Update** and wait for the resource to be updated.

### WireGuard - encryption of traffic between nodes (CLI)

### CLI

Update the Core Cluster configuration using kubectl:

   ```bash
   kubectl patch corecluster {CLUSTER_NAME} -n {CLUSTER_NAMESPACE} --type='json' -p='[{"op": "replace", "path": "/spec/networking/wireguard", "value": true}]'
   ```

>**CAUTION:** When enabling or disabling WireGuard, the new configuration will be propagated within several minutes. If you want the changes to be immediate propagated to machines, you must restart k0smotron on Core Cluster's nodes to apply the latest configuration. To do so, follow the [Upgrade a node](https://docs.cennso.com/cennso/cennso/latest/user-guides/upgrade-reset-node.md) instructions. If the Core Cluster has several nodes, you must restart k0smotron on all of them because the communication between nodes that have not been restarted will not be encrypted. Please note that when switching to a new communication method, some applications may temporarily stop communicating with other parts of the system, which may cause problems.

>**NOTE:** Encryption is applied only to regular cluster-network traffic.

## Read more

For more details on Core Cluster, see the following documentation:

- [Install a Core Cluster](https://docs.cennso.com/cennso/cennso/latest/user-guides/install-cc.md) - instructions on how to create and configure a Core Cluster.
- [Upgrade a Core Cluster](https://docs.cennso.com/cennso/cennso/latest/user-guides/upgrade-cc.md) - instructions on how to upgrade a Core Cluster.
- [`CoreCluster` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/corecluster_definition.md) – detailed descriptions of the available Core Cluster configuration parameters.
- [`ClusterController` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/clustercontroller_definition.md) – detailed descriptions of the underlying ClusterController resource.
- [`CennsoDeployment` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/cennsodeployment_definition.md) – detailed descriptions of the underlying CennsoDeployment resource.

---
title: "Nodes"
description: "A node is a crucial element in Cennso Network Topology, providing the necessary computational resources and infrastructure to support Cennso Network Solutions. Managed by the Core Cluster, a node executes essential Cennso components at remote Core Clusters."
url: "https://docs.cennso.com/cennso/cennso/latest/concepts/node"
---

# Nodes

A node is a crucial element in Cennso Network Topology, providing the necessary computational resources and infrastructure to support Cennso Network Solutions. Managed by the Core Cluster, a node executes essential Cennso components at remote Core Clusters. Nodes may be globally distributed, making them the key to establishing scalable and flexible network solutions across multiple locations.

Key features:

- Global distribution: Nodes can be deployed across various geographic locations, allowing Cennso to establish a scalable and flexible global network infrastructure.
- Computation resources: Nodes provide the essential computational resources required to run Cennso Network Solutions, ensuring efficient operations and high performance at each Core Cluster.
- Secure communication: Nodes enable secure communication within the Core Cluster, ensuring data integrity and compliance with security protocols, thus maintaining high security across the network.

Nodes are connected to a specific Core Cluster through the Cluster Controller, which manages and configures them to support Cennso Network Solutions.

>[!CAUTION]
>When you reboot a node, you might experience that kubelet does not come up afterwards and the Node resource remains `NotReady`. The cause might be some stale state files for the static CPU and memory manager policies. To spawn the node, delete the old state files:
>
>```bash
>rm /var/lib/k0s/kubelet/cpu_manager_state /var/lib/k0s/kubelet/memory_manager_state
>```

## Read more

For more details on nodes, see the following documentation:

- [Connect nodes to a Core Cluster](https://docs.cennso.com/cennso/cennso/latest/user-guides/connect-nodes.md)
- [Update or reset a node](https://docs.cennso.com/cennso/cennso/latest/user-guides/upgrade-reset-node.md)

---
title: "Extensions"
description: "Cennso comes with built-in infrastructure that enables resource management, cluster monitoring, permission management, and more. Beyond these core features, you can extend Cennso's functionality through extensions."
url: "https://docs.cennso.com/cennso/cennso/latest/concepts/extensions"
---

# Extensions

Cennso comes with built-in infrastructure that enables resource management, cluster monitoring, permission management, and more. Beyond these core features, you can extend Cennso's functionality through extensions.

Extensions are the modular building blocks of the Cennso platform that provide a way to add custom functionalities. Each extension delivers a specific functional capability to a cluster — for example, a network function, a database instance, or a management component. You can combine extensions to build network solutions tailored to your needs.

## How extensions work

While "extension" is a high-level concept, the actual implementation relies on two Custom Resources (CRs):

- **Package** — defines the content, sources, and configuration options for a given extension. It specifies the required software components, their versions, and the parameters available for customisation. A package can extend either the Management Cluster or a Core Cluster. The supported source types are:
  - Helm charts
  - Crossplane providers
  - Crossplane functions
  - Crossplane configuration packages

  Configuration parameters are defined per source in the **spec.sources[].properties** field of the [`Package` CR](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/extension.cennso.com_packages.md). Cennso Management Console (CMC) uses them to render dynamic input forms when installing or updating an extension.

- **ClusterInstallation** — manages the lifecycle of an extension. It references the corresponding `Package` CR and controls the installation, version updates, and uninstallation process.

Cennso Agent running on your cluster automatically synchronizes available packages from the Cennso Cloud based on your cluster's permissions. To install an extension, you create a `ClusterInstallation` CR that references the desired package and version. Cennso then deploys all the components defined in the package.

> [!NOTE]
> Users do not interact with `Package` CRs directly. Packages are synchronized automatically. The only resource administrators need to create and manage is the `ClusterInstallation`.

## Access control

Access to extensions is managed at the Solution level in [Cennso Cloud](https://cloud.cennso.com). A Solution is an organizational abstraction — a project under which clusters are grouped. When a cluster is associated with a Solution, it inherits that Solution's configuration context, which controls exactly which extensions are visible and installable.

## Package destinations

Each package targets one of two destinations:

- **CoreCluster** — the package is deployed to a specific Core Cluster. It typically contains application workloads and network functions running at the edge.
- **ManagementCluster** — the package is installed on the Management Cluster. It typically contains components for administrative and management purposes.

![Extensions workflow](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/extensions.svg)

## Package lifecycle

A package goes through the following stages:

1. **Available** — `Package` CR is present in the cluster and visible in the package catalogue.
2. **Installing** — `ClusterInstallation` CR has been created and Cennso is deploying the package components.
3. **Installed** — all components are healthy and the extension is fully operational.
4. **Updating** — the version or configuration in the `ClusterInstallation` CR has been changed and Cennso is reconciling the update.
5. **Uninstalling** — `ClusterInstallation` CR has been deleted and Cennso is removing the package components.

## `ClusterInstallation` and `Installation`

Cennso uses `ClusterInstallation` CR as the current standard for installing packages. An older `Installation` resource exists for backward compatibility but should not be used in new deployments. For all environments running Cennso 2.10 or higher, `ClusterInstallation` is required.

The `Installation` resource is maintained only for environments running Cennso 2.8 or 2.9 that cannot yet upgrade.

## Read more

- [Manage extensions](https://docs.cennso.com/cennso/cennso/latest/configuration/extensions.md) — instructions on how to list, install, update, and uninstall extensions.
- [`Package` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/extension.cennso.com_packages.md) — detailed descriptions of all available `Package` configuration parameters.
- [`ClusterInstallation` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/extension.cennso.com_clusterinstallations.md) — detailed descriptions of all available `ClusterInstallation` configuration parameters.
- [`Installation` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/installation_definition.md) — legacy resource reference for environments on Cennso 2.8 or 2.9.

---
title: "Network Attachments"
description: "To interconnect Cennso Network Functions with each other using virtual networks or to connect to external systems using infrastructure networks, you must define network attachments."
url: "https://docs.cennso.com/cennso/cennso/latest/concepts/network-attachment"
---

# Network Attachments

To interconnect Cennso Network Functions with each other using virtual networks or to connect to external systems using infrastructure networks, you must define network attachments. The definition of network attachments considers cluster-specific network infrastructure, such as host network interfaces and VLANs. Once created, Cennso Network Functions can reference network attachments in order to attach to the defined networks.

Key features:

- Virtual networks: Cennso Network Functions can attach to various virtual networks to create network function chains or isolated communication domains
- Shared host interfaces: A single host network interface can be used by multiple Cennso Network Functions using MACVLAN sub-interfaces
- VLANs: Different VLANs connected to a host can be represented as interfaces to Cennso Network Functions

## Read more

For more details on Network Attachment, see the following documentation:

- [Configure Network Attachments](https://docs.cennso.com/cennso/cennso/latest/user-guides/configure-network-attachments.md)
- [`NetworkAttachment` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/networkattachment_definition.md) – detailed descriptions of the available `NetworkAttachment` configuration parameters.
- [Fast Path Provider](https://docs.cennso.com/components/fpp/main.md) - Fast Path Provider component documentation.

---
title: "Monitoring"
description: "The monitoring system in Cennso is designed to collect and centralise telemetry data (metrics, logs, and traces) from remote clusters, following OpenTelemetry standards. It ensures minimal impact on local resources while maintaining high reliability and performance."
url: "https://docs.cennso.com/cennso/cennso/latest/concepts/monitoring"
---

# Monitoring

The monitoring system in Cennso is designed to collect and centralise telemetry data (metrics, logs, and traces) from remote clusters, following [OpenTelemetry](https://opentelemetry.io/) standards. It ensures minimal impact on local resources while maintaining high reliability and performance.

Monitoring in Cennso includes two main components:

- **Telemetry agents** - telemetry agents run on remote Core Clusters to gather telemetry data. They are optimised for low resource usage, having minimal impact on local CPU, memory, and disk. These agents efficiently collect system metrics, application logs, and distributed traces, ensuring data is quickly available for monitoring purposes. Additionally, telemetry agents guarantee reliable data transmission by automatically retrying transfers during network or system failures and buffering data locally to prevent any loss. Telemetry agents use OpenTelemetry standards to send data in a compatible format to the central storage or an external telemetry backend, such as the Grafana ecosystem (Loki, Tempo, Mimir).

- **Centralised data storage** - located in the Management Cluster, it combines telemetry data from all Core Clusters. It is built to handle large amounts of data while keeping it accurate and always available. It also allows storing data in the long term, making it easy to find and use for reports and troubleshooting.

## Deployment modes

Telemetry agents work in two modes:

- Core mode - collects telemetry directly from cluster nodes and forwards logs and traces to an agent running in management mode, or directly sends metrics to the telemetry backend.
- Management mode - receives logs and traces from core agents and sends them to the telemetry backend.

![Architecture diagram](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/cennso-monitoring-architecture.svg)

1. Telemetry agents in core mode collect telemetry data from Core Cluster nodes.
2. Core agents send metrics directly to the telemetry data backend, while logs and traces are forwarded to management mode agents (either in the Core or in the Management Cluster).
3. Management mode agents send logs and traces to the telemetry data backend.
4. Grafana retrieves logs, metrics, and traces from the centralised telemetry backend.

>**NOTE:** To collect and send data within a single cluster, deploy one agent in core mode and another in management mode.

## Log parsing

Telemetry agents use the `cennso.com/log-format` pod label to determine additional parsing requirements. The currently supported format is `logfmt`, which extracts specific attributes (`when`, `level`, `pid`, `msg_id`, `trace_id`, `span_id`, `apn`, `imsi`, `imei`, `msisdn`, `at`) and replaces the log line with the `msg` attribute if present.

## Monitoring profiles

Cennso Monitoring offers profiles to meet different needs based on the volume of telemetry data collected, processed, and stored:

- **Small Profile** - for environments with lower data volumes and resource requirements.
- **Large Profile** - for environments with higher data volumes and more demanding resource needs.

### Small profiles

Small Profile is designed for smaller systems where telemetry data is stored locally on the Cennso Management Cluster. It's a cost-effective and resource-efficient solution for handling modest data volumes. This profile works well in deployments with low data and resource needs but does not support high availability (HA), so it's best for environments where uptime and redundancy are less critical. Furthermore, it allows you to adjust resource consumption to the needs of the system.

### Large profile

Large Profile is designed for high-load environments with extensive telemetry data needs. It supports a distributed setup with high availability (HA) to ensure fault tolerance and continuous operation. Telemetry data is stored in scalable, reliable S3-compatible storage. It allows you to adjust resource consumption to the needs of the system.

## Read more

For details on configuring monitoring, refer to the following documentation:

- [**Install and configure Small profile**](https://docs.cennso.com/cennso/cennso/latest/user-guides/monitoring-profile-small.md) - instructions on how to install and configure a Small profile.
- [**Install and configure Large profile**](https://docs.cennso.com/cennso/cennso/latest/user-guides/monitoring-profile-large.md) - instructions on how to install and configure a Large profile.
- [`Monitoring` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/monitoring_definition.md) – detailed descriptions of the available configuration parameters.

---
title: "Permissions"
description: "Cennso uses a role-based access control (RBAC) system based on the Kubernetes RBAC model to manage permissions across the platform. Permissions define what actions users can perform and on which resources."
url: "https://docs.cennso.com/cennso/cennso/latest/concepts/permissions"
---

# Permissions

Cennso uses a role-based access control (RBAC) system based on the [Kubernetes RBAC model](https://kubernetes.io/docs/reference/access-authn-authz/rbac) to manage permissions across the platform. Permissions define what actions users can perform and on which resources. This system helps to protect resources from unauthorized access and allows you to control access to specific areas of the Cennso Management Console (CMC) and other components.

The Cennso permission system is based on these resources:

- **Users** - individual accounts that represent people or services. You can assign roles and/or specific permissions directly to users or add them to user groups with a predefined set of permissions for easier management.
- **User groups** - collections of users grouped by function or access level (for example, engineers or DevOps). When you assign roles to a user group, the same permissions apply to all its members.
- **Roles** - predefined sets of permissions that control access to specific actions and resources. You can assign roles to users, user groups, or even other roles to combine and extend access. For example, a `Viewer` role might allow read-only access, while an `Editor` role allows configuration changes. An `Admin` role can include both, giving a user full visibility and editing rights.

   > [!NOTE]
   > If you want to assign a role to a user but exclude certain permissions from that role, you must create a new custom role with only the desired permissions.

This diagram shows how users, user groups, and roles relate to each other in the process of assigning permissions:

![Permission system relations](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/permissions.svg)

As you can see in the diagram, you can assign users to roles to grant them a set of permissions. You can also assign individual permissions to users (see User B) and user groups (see the infra user group).

Roles can also include other roles. For example, the `Admin` role may include the `Editor` role, which means any user or group assigned with the `Admin` role also gains all `Editor` permissions.

> [!CAUTION]
> When users or groups are assigned multiple roles, their permissions are combined. For example, if a user has both `Admin` and `Editor` roles, they receive all permissions from both roles.

The sections below will guide you through the full user and permission management process — from adding users to CMC, to grouping users into user groups, and assigning roles and permissions to control access.

Depending on your preferences, you can perform all operations on permissions using either Cennso Management Console or CLI. To perform these actions in CMC, you must log in with admin rights.

## Read more

- [Permissions](https://docs.cennso.com/cennso/cennso/latest/configuration/permissions.md) - instructions on how to manage users and permissions.
- [`Group` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/authorization.cennso.com_groups.md) – detailed descriptions of the available Group configuration parameters.
- [`Roles` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/authorization.cennso.com_roles.md) – detailed descriptions of the available Roles configuration parameters.
- [`Users` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/authorization.cennso.com_users.md) – detailed descriptions of the available Users configuration parameters.

---
title: "Storage"
description: "Encrypted storage at rest in Cennso protects data on cluster disks by using LUKS-based encryption managed by the Storage Provider and the Storage Agent."
url: "https://docs.cennso.com/cennso/cennso/latest/concepts/storage"
---

# Encrypted storage at rest

Encrypted storage at rest in Cennso protects data on cluster disks by using LUKS-based encryption managed by the Storage Provider and the Storage Agent. The solution is designed to keep encrypted volumes available after node restarts and to simplify day-2 operations such as adding disks and rotating passphrases.

Key features:

- LUKS encryption: Data is encrypted at rest using LUKS. The benefits of LUKS are that it is widely supported, well-tested, and provides strong security guarantees.
- Flexible volume management: `EncryptedStoragePool` is optional. You can manage physical volumes and volume groups yourself (for example with your own strategy and dynamic provisioning).
- Automatic unlock on startup: Encrypted volumes remain usable after Storage Agent restarts and are automatically unlocked on node startup.
- Automatic disk onboarding: Newly added disks that match the selector are automatically encrypted and included in the volume group when `EncryptedStoragePool` is used.
- Passphrase rotation: Passphrase updates are supported without downtime.

## Architecture

The encrypted storage solution consists of two main components:

- **Storage Provider** - Moves the `StorageEncryptionDefinition` and `EncryptedStoragePool` Custom Resources, and the referenced passphrase to the target Core Cluster, as well as creates storage classes.
- **Storage Agent** - Reads the Custom Resources and the passphrase, and handles disk encryption.

## Performance impact

Based on benchmark results, encryption has minimal overhead for both IOPS and throughput.

| Node type | Metric | Direction | Unencrypted | Encrypted |
| --- | --- | --- | --- | --- |
| Dataplane (directly attached disks) | IOPS | WRITE | 327 MiB/s | 329 MiB/s |
| Dataplane (directly attached disks) | IOPS | READ | 229 MiB/s | 232 MiB/s |
| Dataplane (directly attached disks) | Throughput | WRITE | 396 MiB/s | 390 MiB/s |
| Dataplane (directly attached disks) | Throughput | READ | 510 MiB/s | 516 MiB/s |
| Generic (network-connected disks) | IOPS | WRITE | 58.6 MiB/s | 58.7 MiB/s |
| Generic (network-connected disks) | IOPS | READ | 58.7 MiB/s | 58.7 MiB/s |
| Generic (network-connected disks) | Throughput | WRITE | 573 MiB/s | 573 MiB/s |
| Generic (network-connected disks) | Throughput | READ | 656 MiB/s | 657 MiB/s |

The difference in writing or reading speed between encrypted and unencrypted disks is negligible and may be attributed to the test accuracy. The main performance differences come from the storage topology (local vs network-connected disks), not from encryption itself.

Based on the same benchmarks, encryption has a moderate impact on CPU and memory usage.

| Node type | Metric | Resource | Unencrypted | Encrypted |
| --- | --- | --- | --- | --- |
| Generic (network-connected disks) | IOPS | CPU usage | 7.1% | 15.8% |
| Generic (network-connected disks) | IOPS | Memory usage | 20 MiB | 300 MiB |
| Generic (network-connected disks) | Throughput | CPU usage | 9.5% | 23.8% |
| Generic (network-connected disks) | Throughput | Memory usage | 300 MiB | 1000 MiB |

## Read more

For more details on storage encryption, see the following documentation:

- [Storage](https://docs.cennso.com/cennso/cennso/latest/configuration/storage.md) - Instructions for managing storage encryption and related resources
- [StorageEncryptionDefinition CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/storage.cennso.com_storageencryptiondefinitions.md) - Detailed reference for `StorageEncryptionDefinition` resource fields
- [EncryptedStoragePool CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/storage.cennso.com_encryptedstoragepools.md) - Detailed reference for `EncryptedStoragePool` resource fields

---
title: "Manage users and permissions"
description: "To start using Cennso, users must first register to the Cennso Management Console. You can add users manually or enable registration through external authentication providers."
url: "https://docs.cennso.com/cennso/cennso/latest/configuration/permissions"
---

# Manage users and permissions

## Add new users

To start using Cennso, users must first register to the Cennso Management Console. You can add users manually or enable registration through external authentication providers.

### Add users manually

1. Log in to Cennso Management Console with admin rights.
2. Go to **Administration -> Users and access -> Users** and click **New User**.
3. Fill out the form and click **Create**.

The new user can now log in to the Cennso Management Console with their assigned credentials.

### Configure authentication providers

To configure an authentication provider:

1. Log in to the Cennso Management Console with admin rights.
2. Go to **Administration -> Authentication**.
3. Select an authentication provider you want to configure.
4. Provide the authentication provider settings.
5. Save and enable the configuration.

Now the users managed by the configured authentication provider can log in to Cennso Management Console with their credentials.

## Manage user permissions

Once users are added, you can manage their access to different areas of the platform. By default, new users are assigned the `default` role when they sign in. To modify the permissions included in this role, read the [Define the default role](#define-the-default-role) section.

Follow the steps below to assign permissions to individual users.

### Manage user permissions (CMC)

To add new permissions to a user:

1. Go to **Cennso Management → Settings → Permissions → Users** and click **+Add** in the upper-right corner of the user list.
2. Fill out the form. In the **Roles assignment** section, you can choose roles that already have predefined permissions. You can assign roles by either their name or label. Select the **Name** or **Labels** tab and choose the role name or label you want to assign. If you choose a label, all roles containing that label will be assigned. In the **Permissions** section, you can add permissions to specific API groups and resources.
3. Click **Create user** to confirm.

To edit permissions:

1. Go to **Cennso Management → Settings → Permissions → Users**. Here you can see a list of all users that already have permissions assigned.
2. Click the pen icon in the user's row to change the user permissions and fill out the form.
3. Click **Update** to confirm.

### Manage user permissions (CLI)

Create the [`User` CR](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/authorization.cennso.com_users.md) to apply permissions to an individual user. Make sure to fill in all the necessary fields. See the example:

```yaml
apiVersion: authorization.cennso.com/v1alpha1
kind: User
metadata:
  # Name must contain only alphanumeric characters.
  name: {USER_NAME}
spec:
  forProvider:
    # User email from the Grafana account
    email: {USER_EMAIL}
    # User permissions
    permissions:
      cluster:
        rules:
          - apiGroups:
              - ""
            resources:
              - pods
            verbs:
              - get
              - list
      roles:
        - matchLabels:
            authorization.cennso.com/scope: admin
        - matchLabels:
            authorization.cennso.com/group: network-applications
```

After that, apply the `User` CR to your cluster using this command:

```bash
kubectl apply -f {USER_CR_FILENAME.yaml}
```

## Manage user group permissions

Follow the instructions below to learn how to create and manage a user group.

### Manage user group permissions (CMC)

To create a new user group:

1. Go to **Cennso Management → Settings → Permissions → Groups tab** and click **+Create** in the upper-right corner of the user list.
2. Fill out the form. In the **Roles assignment** section, you can choose roles that already have predefined permissions. You can assign roles by either their name or label. Select the **Name** or **Labels** tab and choose the role name or label you want to assign. If you choose a label, all roles containing that label will be assigned. In the **Permissions** section, you can add permissions to specific API groups and resources.
3. Click **Create** to confirm.
4. Add users to the newly created group.

To add users or groups to the already-existing group:

1. Go to **Cennso Management → Settings → Permissions → Groups tab** and click the name of the user group you want to edit.
2. In the **Members** tab, click **Add** in the upper right corner of the members list.
3. Select the **User** or **Group** tab and choose the user or group you want to add to the user group you are editing.
4. Click **Update** to confirm.

To edit permissions of the already-existing group:

1. Go to **Cennso Management → Settings → Permissions → Groups tab** and click the pen icon in the user group's row to change the user group permissions.
2. Fill out the form with the options you want to change.
3. Click **Update** to confirm.

### Manage user group permissions (CLI)

Create the [`Group` CR](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/authorization.cennso.com_groups.md) to apply permissions to a user group. Make sure to fill in all the necessary fields. See the example:

```yaml
apiVersion: authorization.cennso.com/v1alpha1
kind: Group
metadata:
  name: {GROUP_NAME}
spec:
  forProvider:
    display: 
      # Display name for the group
      name: Admins group
      # Group description
      description: A group to which all CMC administrators belong
      # Categories and tags for the group, used mainly for filtering in CMC
      categories:
        - admins
    # Members of the group (users or other user groups). All members specified in this field will have the group permissions assigned.
    members:
      - kind: User
        name: user-example-com
    # Group permissions
    permissions:
      cluster:
        rules:
          - apiGroups:
              - ""
            resources:
              - pods
            verbs:
              - get
              - list
      roles:
        - matchLabels:
            authorization.cennso.com/scope: admin
        - matchLabels:
            authorization.cennso.com/group: network-applications
```

After that, apply the `Group` CR to your cluster using this command:

```bash
kubectl apply -f {GROUP_CR_FILENAME.yaml}
```

## Manage permissions using roles

Follow the instructions below to create and manage roles.

### Manage permissions using roles (CMC)

### Create a new role

1. Go to **Cennso Management → Settings → Permissions → Roles tab** and click **Create**.
2. Fill out the form. Specify a unique name for your role. In the **Roles assignment** section, you can choose roles that already have predefined permissions. You can assign roles by either their name or label. Select the **Name** or **Labels** tab and choose the role name or label you want to assign. If you choose a label, all roles containing that label will be assigned. In the **Permissions** section, you can add permissions to specific API groups and resources.
3. Click **Create** to confirm.

### Update an already-existing role

1. Go to **Cennso Management → Settings → Permissions → Roles tab**. Here you can see a list of existing roles.
2. Click the pen icon in the role's row to change the role permissions and fill out the form.
3. Click **Update** to confirm.

### Manage permissions using roles (CLI)

Create the [`Role` CR](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/authorization.cennso.com_roles.md) to create and configure a role. Make sure to fill in all the necessary fields and references. See the example:

```yaml
apiVersion: authorization.cennso.com/v1alpha1
kind: Role
metadata:
  name: {ROLE_NAME}
spec:
  forProvider:
    display: 
      # Display name for the role
      name: Core role
      # Role description
      description: A role which contains permissions for all core resources
      # Categories and tags for the role, used mainly for filtering in CMC.
      categories:
        - core
    # Role permissions
    permissions:
      cluster:
        rules:
          - apiGroups:
              - ""
            resources:
              - pods
            verbs:
              - get
              - list
      roles:
        - matchLabels:
            authorization.cennso.com/scope: admin
        - matchLabels:
            authorization.cennso.com/group: network-applications
```

After that, apply the `Role` CR to your cluster using this command:

```bash
kubectl apply -f {ROLE_CR_FILENAME.yaml}
```

## Manage access to CMC settings

You can grant different levels of access to CMC settings for specific users, user groups, or roles. Depending on the assigned permissions, some may only view settings, while others may be able to edit them. To configure this access, use the special API group `scopes.authorization.cennso.com` with the `cmc` resource, and select the appropriate verbs:

   - `setting:read` - allows viewing general settings and plugins
   - `setting:write` - allows viewing and editing general settings and plugins
   - `permissions:read` - allows viewing permissions
   - `permissions:write` - allows viewing and editing permissions

## Define the default role

When a new user registers to Cennso, their account is automatically created with the `default` role. You can change the permissions granted by the `default` role by adding the `authorization.cennso.com/default=true` label to the roles you want to include as default. See the example:

```yaml
apiVersion: authorization.cennso.com/v1alpha1
kind: Role
metadata:
  name: pods-list-role
  labels:
    # Add this label to all Roles you want to include as default
    authorization.cennso.com/default: true
spec:
  forProvider:
    permissions:
      cluster:
        rules:
          - apiGroups:
              - ""
            resources:
              - pods
            verbs:
              - list
```

In this case, each user will be able to list `pods` resources in all namespaces by default.

## Check permissions

You can check whether a specific user, group, or role has the correct permissions for specific API groups and resources. Follow these steps to ensure access is configured correctly:

1. Go to **Cennso Management → Settings → Permissions**.
2. Click **Run tester** in the upper-right corner of the page.
3. Fill out the form and click **Check**.

An information panel appears indicating whether permissions are granted or denied.

---
title: "Configure OCI registry"
description: "To access Cennso components stored in an OCI registry, configure registry address and credentials. You can configure the OCI registry through Cennso Management Console (CMC) or command-line interface (CLI)."
url: "https://docs.cennso.com/cennso/cennso/latest/configuration/configure-oci-registry"
---

# Configure OCI registry

To access Cennso components stored in an OCI registry, configure registry address and credentials. You can configure the OCI registry through Cennso Management Console (CMC) or command-line interface (CLI).

## Configure OCI registry (CMC)

## CMC

1. Go to **Cennso Management -> Settings -> General**.
2. Choose the **Registry credentials** tab.
3. Provide registry information:
    - **Registry domain**: Enter the domain for the OCI registry.
    - **Registry project**: Enter the project name with OCI artifacts.
    - **Username**: Provide the username for accessing the registry.
    - **Password**: Enter the password associated with the username.
4. Once the details are provided, click **Update credentials** to save the configuration.

## Configure OCI registry (CLI)

## CLI

1. Open your terminal or command-line interface.
2. Create the `cennso-system` namespace:

   ```bash
   kubectl create namespace cennso-system
   ```

3. Create a Kubernetes secret called `cennso-pull-secret` in the `cennso-system` namespace, with the credentials to connect to the OCI registry:

   ```bash
   kubectl create -f - <<EOF
   apiVersion: v1
   stringData:
     .dockerconfigjson='{"auths":{"{YOUR_REGISTRY_DOMAIN}":{"username":"{YOUR_USERNAME}","password":"{YOUR_PASSWORD}"}}}'
     registry: {YOUR_REGISTRY_DOMAIN}
     project: {YOUR_REGISTRY_PROJECT}
     password: {YOUR_PASSWORD}
     username: {YOUR_USERNAME}
   kind: Secret
   metadata:
     labels:
       cennso.com/default-pull-secret: "true"
     annotations:
       replicator.v1.mittwald.de/replicate-to: '*'
       replicator.v1.mittwald.de/strip-labels: "true"
       replicator.v1.mittwald.de/replication-allowed: "true"
       replicator.v1.mittwald.de/replication-allowed-namespaces: "*"
     name: cennso-pull-secret
     namespace: cennso-system
   type: kubernetes.io/dockerconfigjson
   EOF
   ```

   This secret must contain the following keys:
    - `.dockerconfigjson` – Credentials to the OCI registry in the JSON format
    - `registry` - Domain for the OCI registry
    - `project` - Project name with OCI artifacts
    - `username` – Registry username
    - `password` – Registry password

---
title: "Configure Cennso Data Mesh"
description: "To access Cennso Data Mesh (CDM), configure the endpoint address. You can do this through Cennso Management Console (CMC) or a command-line interface (CLI)."
url: "https://docs.cennso.com/cennso/cennso/latest/configuration/cdm-configuration"
---

# Configure Cennso Data Mesh

To access Cennso Data Mesh (CDM), configure the endpoint address. You can do this through Cennso Management Console (CMC) or a command-line interface (CLI).

## Configure Cennso Data Mesh (CMC)

## CMC

1. Go to **Cennso Management -> Settings -> General**.
2. Choose the **CDM configuration** tab.
3. Provide the **Cennso Data Mesh domain**.
4. Once the details are provided, click **Update configuration** to save the configuration.

## Configure Cennso Data Mesh (CLI)

## CLI

1. Open your terminal or command-line interface.
2. Create a Kubernetes secret called `cdm-configuration` in the `cennso-system` namespace, with the credentials to connect to CDM:

   ```bash
   apiVersion: v1
   stringData:
    CDM_NODE_ENDPOINT: tls://{CENNSO_DATA_MESH_DOMAIN}:6237
    CDM_NODE_CONNECTION_ENDPOINT: nats://{CENNSO_DATA_MESH_DOMAIN}:4237
   kind: Secret
   metadata:
    name: cdm-configuration
    namespace: cennso-system
   type: Opaque
   ```

   This secret must contain the following keys:
    - `CDM_NODE_ENDPOINT`- Endpoint for the Cennso Data Mesh leafnodes
    - `CDM_NODE_CONNECTION_ENDPOINT` - Endpoint for the Cennso Data Mesh client connections

---
title: "Manage extensions"
description: "Depending on your preferences, you can perform all operations on extensions using either Cennso Management Console (CMC) or CLI. To perform these actions in CMC, you must log in with administrative credentials."
url: "https://docs.cennso.com/cennso/cennso/latest/configuration/extensions"
---

# Manage extensions

Depending on your preferences, you can perform all operations on extensions using either Cennso Management Console (CMC) or CLI. To perform these actions in CMC, you must log in with administrative credentials.

## Get the list of packages

Before you start using extensions, you should learn which packages are available for you.

### Get the list of packages (CMC)

### CMC

To see the packages available for the Management Cluster, go to **Cennso Management -> Packages**.
For the packages available for the Core Clusters, go to **Cennso Management -> Core Clusters -> {CLUSTER_NAME} -> Packages**.

### Get the list of packages (CLI)

### CLI

To get the list of available packages, run:

```bash
kubectl get packages.extension.cennso.com
```

See the output example:

```
NAME                        EXTENSION NAME       VERSION              CATEGORIES                               DESTINATION         AGE
cennso-5g-core-2.3.0        cennso-5g-core       2.3.0                ["core","network"]                       CoreCluster         39d
cennso-5g-core-2.3.1        cennso-5g-core       2.3.1                ["core","network"]                       CoreCluster         39d
cennso-5g-core-2.5.0        cennso-5g-core       2.5.0                ["core","network"]                       CoreCluster         4d14h
cennso-demo-1.0.0           cennso-demo          1.0.0                ["demo","application","configuration"]   ManagementCluster   22d
```

To see more details about the given package, run:

```bash
kubectl get packages.extension.cennso.com {PACKAGE_NAME} -oyaml
```

## Install extensions

Follow these instructions to install a new extension.

> [!NOTE]
> `ClusterInstallation` is the current standard. If you are running Cennso 2.8 or 2.9, use the deprecated [`Installation` CR](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/installation_definition.md) instead.

### Install extensions (CMC)

### CMC

1. Go to **Cennso Management -> Packages** to see a list of all packages available for the Management Cluster. If you want to install a new package on a Core Cluster, go to **Cennso Management -> Core Clusters -> {CLUSTER_NAME} -> Packages**.
2. Select the package and click **Install**. A drawer panel appears.
3. Select the desired package version from the drop-down menu.
4. Provide a unique name for the package.
5. Adjust the configuration parameters in any additional sections, if applicable. These options correspond to the **spec.sources[].properties** field of the `Package` CR.
6. Click **Install**.

### Install extensions (CLI)

### CLI

Create a YAML file with the `ClusterInstallation` CR to install your extension. Make sure to fill all the necessary fields and references. See the example:

```yaml
apiVersion: extension.cennso.com/v1alpha1
kind: ClusterInstallation
metadata:
  name: {EXTENSION_NAME}
spec:
  forProvider:
    # Reference to the Secret for the Core Cluster, stored in the given namespace on the Management Cluster.
    # Skip this section if you want to install the extension on the Management Cluster.
    connectionSecretRef:
      name: {CORE_CLUSTER_NAME}
      namespace: {CORE_CLUSTER_NAMESPACE}
    # Reference to the Package you want to install.
    packageRef:
      name: {PACKAGE_NAME}
      version: "{PACKAGE_VERSION}"
    # Configuration overrides for the extension, organized by source name.
    # Each key must match a source identifier defined in spec.sources[].name of the Package CR.
    values:
      # Source name from spec.sources[].name in the Package CR
      cennso-core:
        nsr:
          enabled: true
        prometheus:
          servicemonitor:
            enabled: true
          tracing:
            enabled: true
```

> [!NOTE]
> In the **spec.forProvider.values** section, values are organized by source name — each top-level key must match a source identifier from **spec.sources[].name** in the related `Package` CR. The configurable values for each source are defined in **spec.sources[].properties** of the `Package` CR. For a full reference, see the [`Package` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/extension.cennso.com_packages.md).

After that, apply the `ClusterInstallation` CR to your cluster using this command:

```bash
kubectl apply -f {CLUSTERINSTALLATION_CR_FILENAME.yaml}
```

## Update extensions

Follow the instructions below to update your extension — for example, to change its version. You can upgrade or downgrade the package version as needed.

### Update extensions (CMC)

### CMC

1. Go to **Cennso Management -> Packages** to see a list of all packages available for the Management Cluster. If you want to update a package on a Core Cluster, go to **Cennso Management -> Core Clusters -> {CLUSTER_NAME} -> Packages**.
2. Select the package and click **Update**. A drawer panel appears.
3. Select the desired package version from the drop-down menu.
4. Adjust the configuration parameters in any additional sections, if applicable. These options correspond to the properties section of the `Package` CR.
5. Click the **Update** button to save changes.

### Update extensions (CLI)

### CLI

To update the version of a given package, change the value of the **spec.packageRef.version** field in the `ClusterInstallation` CR. You can also adjust the configuration parameters in other sections as needed. See the example:

```yaml
apiVersion: extension.cennso.com/v1alpha1
kind: ClusterInstallation
metadata:
  name: {EXTENSION_NAME}
  namespace: {NAMESPACE}
spec:
  forProvider:
    connectionSecretRef:
      name: {CORE_CLUSTER_NAME}
      namespace: {CORE_CLUSTER_NAMESPACE}
    packageRef:
      name: {PACKAGE_NAME}
      # Change the version here.
      version: "{PACKAGE_VERSION}"
  ...
```

Then, apply the `ClusterInstallation` CR to your cluster using this command:

```bash
kubectl apply -f {CLUSTERINSTALLATION_CR_FILENAME.yaml}
```

## Uninstall extensions

To uninstall an extension, remove the related resources from your cluster following the instructions below.

### Uninstall extensions (CMC)

### CMC

1. Go to **Cennso Management -> Packages** to see a list of all packages available for the Management Cluster. If you want to delete a package from the Core Cluster, go to **Cennso Management -> Core Clusters -> {CLUSTER_NAME} -> Packages**.
2. Select the package and click **Delete**.

### Uninstall extensions (CLI)

### CLI

To uninstall an extension using CLI, remove the related `ClusterInstallation` CR from Cennso using this command:

```bash
kubectl delete clusterinstallations.extension.cennso.com {EXTENSION_NAME}
```

---
title: "Manage storage encryption"
description: "Use storage encryption at rest to protect data on selected disks. Encrypted disks are automatically opened by the Storage Agent after restart, as long as the passphrase secret is available."
url: "https://docs.cennso.com/cennso/cennso/latest/configuration/storage"
---

# Manage storage encryption at rest

Use storage encryption at rest to protect data on selected disks. Encrypted disks are automatically opened by the Storage Agent after restart, as long as the passphrase secret is available.

> [!CAUTION]
> There is no reverse mechanism for encrypted disks. If the passphrase secret is deleted or corrupted, data on encrypted disks is permanently lost. If you want to stop using encryption, you must first decrypt the disks by removing Cennso resources and then format the disks manually.

## Encrypt data at rest on a Core Cluster

Follow the instructions below to configure encrypted volumes on a Core Cluster using CLI.

1. Ensure there is a namespace for the Storage-related resources on both the Management Cluster and the Core Cluster, as the resources will be copied between them. For example, you can create a dedicated `cennso-infra` namespace:

   ```bash
   kubectl create namespace cennso-infra
   ```

2. Create a Kubernetes Secret with the passphrase:

   ```yaml
   apiVersion: v1
   stringData:
     passphrase: mypassphrase
   kind: Secret
   metadata:
     name: my-passphrase
     namespace: cennso-infra
   type: PassphraseSecret
   ```

   > [!CAUTION]
   > The passphrase secret is critical for accessing encrypted data. Without the passphrase, data on encrypted volumes is permanently lost. There is no recovery method.

3. Create a `StorageEncryptionDefinition` resource to select target nodes and disks:

   ```yaml
   apiVersion: storage.cennso.com/v1alpha1
   kind: StorageEncryptionDefinition
   metadata:
     name: my-storage-encryption-definition
     namespace: cennso-infra
   spec:
     providerConfigRef:
       kind: ProviderConfig
       name: default
     forProvider:
       connectionSecretRef:
         name: my-core-cluster
         namespace: cennso-infra
       nodeSelector:
         matchPatterns:
           - "worker-*"
         matchLabels:
           node-role: storage
           node-role.cennso.net/worker: generic
       diskSelector:
         matchPatterns:
           - "/dev/vd[a-d]"
           - "/dev/vds"
         excludePatterns:
           - "/dev/vdc"
       passphraseSecretRef:
         name: my-passphrase
         namespace: cennso-infra
         key: passphrase
   ```

   > [!NOTE]
   > Keep in mind that if **nodeSelector** is not specified, Storage Agent will be ready to encrypt disks on all nodes in the cluster. If **diskSelector** is not specified, Storage Agent won't encrypt any disks.

4. (Optional) Create an `EncryptedStoragePool` resource if you want the Storage Agent to manage volume group and storage class creation:

   ```yaml
   apiVersion: storage.cennso.com/v1alpha1
   kind: EncryptedStoragePool
   metadata:
     name: my-encrypted-storage-pool
     namespace: cennso-infra
   spec:
     providerConfigRef:
       kind: ProviderConfig
       name: default
     forProvider:
       storageEncryptionDefinitionRef:
         name: my-storage-encryption-definition
         namespace: cennso-infra
       volumeGroup:
         name: vg_encrypted
       storageClass:
         name: encrypted-lvm
         fsType: ext4
         reclaimPolicy: Delete
         allowVolumeExpansion: true
   ```

   If you use a different strategy for managing physical volumes and volume groups, you can skip this step. In that case, the Storage Agent only handles disk encryption and unlock.

5. Apply the resources to your cluster:

   ```bash
   kubectl apply -f {RESOURCE_FILENAME.yaml}
   ```

6. (Optional) Rotate the passphrase by updating the same passphrase secret:

   ```yaml
   apiVersion: v1
   stringData:
     passphrase: newpassphrase
   kind: Secret
   metadata:
     name: my-passphrase
     namespace: cennso-infra
   type: PassphraseSecret
   ```

## Encrypt data at rest on the Management Cluster

The process for the Management Cluster is the same as for the Core Cluster, with one difference:

- Do not set `spec.forProvider.connectionSecretRef`.

On the Management Cluster, the Storage Agent already has direct access to the cluster API, so no connection secret reference is required.

## Verification

After applying the resource or resources, verify that encryption is working correctly. Check the status of the `StorageEncryptionDefinition` resource:

   ```bash
   kubectl get storageencryptiondefinitions.storage.cennso.com -n cennso-infra {ENCRYPTED_VOLUME_NAME} -o yaml
   ```

If the encryption is successful, the status is `Encrypted`.

## Disable encryption

To stop using encryption, remove the Cennso resources and format the disks manually.

1. Remove the `StorageEncryptionDefinition` and `EncryptedStoragePool` resources from the Management Cluster and wait for the Storage Provider to propagate the changes (you can check the Storage Agent logs to confirm that the resource removal is processed):

   ```bash
   kubectl delete encryptedstoragepool {LVM_VOLUME_GROUP_NAME} -n {LVM_VOLUME_GROUP_NAMESPACE}
   kubectl delete storageencryptiondefinition {ENCRYPTED_VOLUME_NAME} -n {ENCRYPTED_VOLUME_NAMESPACE}
   ```

2. Delete all applications that use the encrypted storage-related `StorageClass`.

3. If you used `EncryptedStoragePool`, remove the volume groups and physical volumes from the nodes manually. The exact steps depend on your storage topology, but in general:

   - List the volume groups and physical volumes on the nodes (for example, using `vgdisplay` and `pvdisplay`).
   - Remove the volume groups and physical volumes using LVM tools (for example, `vgremove vg_encrypted` and `pvremove /dev/mapper/cryptlvm`).

4. Close the LUKS container and format the disk to prepare it for new use:

   - Close the LUKS container (for example, `cryptsetup close cryptlvmvdb`).
   - Format the disk (for example, `dd if=/dev/zero of=/dev/vdb bs=1M count=16`).

## Read more

For more details on encrypted storage, refer to the following documentation:

- [Storage concepts](https://docs.cennso.com/cennso/cennso/latest/concepts/storage.md) - Overview of encrypted storage architecture, performance, and security considerations
- [StorageEncryptionDefinition CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/storage.cennso.com_storageencryptiondefinitions.md) - Detailed reference for `StorageEncryptionDefinition` resource fields
- [EncryptedStoragePool CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/storage.cennso.com_encryptedstoragepools.md) - Detailed reference for `EncryptedStoragePool` resource fields
- [Storing credentials best practices](https://docs.cennso.com/cennso/cennso/latest/best-practices/storing-credentials.md) - Recommended approach for managing sensitive secrets

---
title: "Create a Core Cluster"
description: "You can create and configure a Core Cluster using one of the following methods…"
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/install-cc"
---

# Create a Core Cluster

You can create and configure a Core Cluster using one of the following methods:

## Create a Core Cluster (CMC)

## CMC

1. Go to **Cennso Management -> Core Clusters** and click **Create**.
2. Choose **Cennso Basic** composition and select its version. Click **Select**.
3. In the **Metadata** tab, provide a **Name** for the Core Cluster. This name must be unique.
4. Optionally, go to the **Specification** tab, for example to enable [High availability](https://docs.cennso.com/cennso/cennso/latest/concepts/core-cluster.md#high-availability).
5. Click **Create** to finalise the setup.
6. [Attach nodes](https://docs.cennso.com/cennso/cennso/latest/user-guides/connect-nodes.md) to your Core Cluster and wait for its status to become **Ready**.

## Create a Core Cluster (CLI)

## CLI

1. Open your terminal or command-line interface (CLI).
2. Apply the following Core Cluster configuration using kubectl:

   ```bash
   cat <<EOF | kubectl apply -f -
   apiVersion: cccc.cennso.com/v1alpha1
   kind: CoreCluster
   metadata:
     name: {CLUSTER_NAME}
     namespace: cennso-infra
     spec:
       compositionRef:
         name: corecluster-basic
   EOF
   ```

   This composition also uses optional fields. Refer to the [`CoreCluster` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/corecluster_definition.md) for more details.

3. Verify that the configuration is successfully applied by checking the status of the Core Cluster resource:

   ```bash
   kubectl -n cennso-infra get coreclusters.cccc.cennso.com {YOUR_CLUSTER_NAME}
   ```

> [!CAUTION]
> Choose Core Cluster namespaces and names so that no two Core Clusters share the same combined `namespace-name` string. For example, namespace `foo` with name `bar-baz` collides with namespace `foo-bar` with name `baz`. When this happens, some underlying resources conflict.

---
title: "Upgrade a Core Cluster"
description: "For high availability (HA) setups, the upgrade of the control plane is designed to ensure zero downtime for workloads. During the upgrade, the Core Cluster orchestrates a rolling upgrade of its components."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/upgrade-cc"
---

# Upgrade a Core Cluster

For high availability (HA) setups, the upgrade of the control plane is designed to ensure zero downtime for workloads. During the upgrade, the Core Cluster orchestrates a rolling upgrade of its components. Each instance of the Core Cluster and associated storage replicas are upgraded sequentially, ensuring that no single point of failure impacts the workloads. This approach guarantees continuous availability and operational stability throughout the upgrade process.

Follow these steps to upgrade the Core Cluster version on the Management Cluster:

## Upgrade a Core Cluster (CMC)

1. Go to **Cennso Management -> Core Clusters**.
2. Choose the Core Cluster to upgrade. Click **Edit**.
3. Navigate to the **Metadata** tab and in the **Composition** section choose the desired Version using the dropdown menu.
4. Click **Update** to confirm your changes.

## Upgrade a Core Cluster (CLI)

1. Upgrade the cluster version in the `CoreCluster` CR:

   ```bash
   kubectl patch coreclusters.cccc.cennso.com {CLUSTER_NAME} -n {CLUSTER_NAMESPACE} -p '{"spec": {"compositionRevisionSelector": {"matchLabels":{"cennso.com/version": "{VERSION}"}}}}' --type=merge
   ```

2. Verify whether the upgrade was successful and the installation status is `ready`:

   ```bash
   kubectl get coreclusters.cccc.cennso.com {CLUSTER_NAME} -n {CLUSTER_NAMESPACE}
   ```

When all Core Cluster replicas are upgraded, proceed with a [node upgrade](https://docs.cennso.com/cennso/cennso/latest/user-guides/upgrade-reset-node.md#upgrade-a-node).

---
title: "Core Cluster validation"
description: "Cennso provides an automated validation to make sure that clusters and nodes meet system requirements for optimal performance and reliability. You can access validation reports in two ways…"
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/validate-cc"
---

# Validate the Core Cluster

Cennso provides an automated validation to make sure that clusters and nodes meet system requirements for optimal performance and reliability. You can access validation reports in two ways:

- Using Cennso Management Console (CMC) under **Core Clusters -> {CLUSTER_NAME} -> Validation report**.
- Using the Kubernetes REST API that you can access with this CLI command:

   ```bash
   kubectl -n cennso-system get configmap cennso-cluster-{CLUSTER_NAME} -oyaml
   ```

---
title: "Connect nodes to a Core Cluster"
description: "In Cennso, you can connect nodes to Core Clusters through Cennso Management Console (CMC) or a command-line interface (CLI)."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/connect-nodes"
---

# Connect nodes to a Core Cluster

In Cennso, you can connect nodes to Core Clusters through Cennso Management Console (CMC) or a command-line interface (CLI).

## Connect nodes to a Core Cluster (CMC)

## CMC

1. Go to **Cennso Management -> Core Clusters**.
2. Select the **Core Cluster** where the node should be added.
3. Open the **Nodes** tab and select **Node actions** -> **Connect**.
4. Select the node type - Dataplane or Generic - from the tabs in the pop-up window.
5. Copy the connection command and execute it on the machine you want to connect as a node.
6. Wait for the node to be listed in the **Nodes** tab.

## Connect nodes to a Core Cluster (CLI)

## CLI

1. Open your terminal or command-line interface (CLI).
2. Retrieve the connection command using `kubectl`:

   ```bash
   kubectl -n cennso-infra get secret -l "cennso.com/worker-scripts=true,cennso.com/claim-name={CLUSTER_NAME}" -oyaml | yq '.items[0].data."{CONNECTION_COMMAND}"' | base64 -d
   ```

   Where `{CONNECTION_COMMAND}` can be one of:
   - `join-dataplane-worker.sh` - Command to connect Data Plane workers
   - `join-generic-worker.sh` - Command to connect Generic workers

3. Execute the connection command on the machine you want to connect as a node.

---
title: "Upgrade or reset nodes"
description: "In Cennso, you can upgrade or reset nodes through Cennso Management Console (CMC) or a command-line interface (CLI)."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/upgrade-reset-node"
---

# Upgrade or reset nodes

In Cennso, you can upgrade or reset nodes through Cennso Management Console (CMC) or a command-line interface (CLI).

## Upgrade a node

During a Cennso upgrade, it might be necessary to upgrade the nodes, particularly when the Cluster Controller has been updated to a version newer than the nodes. Below are the steps for upgrading a node.

>**CAUTION**: Before upgrading a worker node, consider draining the node to avoid downtime by moving applications to other nodes. After draining, remember to uncordon the node to allow to resume scheduling new workloads on it.

1. Open your terminal or command-line interface.
2. Retrieve the upgrade command using `kubectl`:

   ```bash
   kubectl -n cennso-infra get secret -l "cennso.com/worker-scripts=true,cennso.com/claim-name={CLUSTER_NAME}" -oyaml | yq '.items[0].data."upgrade-worker.sh"' | base64 -d
   ```

3. Execute the upgrade command on the machine to complete the node upgrade.

## Reset a node

>**CAUTION**: When it's necessary to reset a node to its initial state, full node rebootstrap is strongly advised.

If the full rebootstrap is not possible or for development purposes, there is a possibility to remove a node from a Core Cluster by using a script similar to the one used to connect a node. Below are the steps for resetting a node.

1. Drain the Core Cluster Kubernetes node by following the official Kubernetes documentation on [draining a node](https://kubernetes.io/docs/tasks/administer-cluster/safely-drain-node).
2. Retrieve the reset command using `kubectl` in the Management Cluster:

   ```bash
   kubectl -n cennso-infra get secret -l "cennso.com/worker-scripts=true,cennso.com/claim-name={CLUSTER_NAME}" -oyaml | yq '.items[0].data."reset-worker.sh"' | base64 -d
   ```

3. Execute the reset command on the machine to remove the node from the Core Cluster.
4. Remove the Kubernetes node resource from the Core Cluster.

---
title: "Configure Network Attachments"
description: "In Cennso, you can configure network attachments through Cennso Management Console (CMC) or a command-line interface (CLI)."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/configure-network-attachments"
---

# Configure Network Attachments

In Cennso, you can configure network attachments through Cennso Management Console (CMC) or a command-line interface (CLI).

## Configure Network Attachments (CMC)

## CMC

1. Go to **Cennso Management -> Network Attachments**.
2. Choose the type of the Network Attachment.
3. Click **New**.
4. Provide the **Name** of the Network Attachment. This name must be unique.
5. Set the parameters as per your infrastructure and need.
6. Click **Create** to finalise the setup.

## Configure Network Attachments (CLI)

## CLI

1. Open your terminal or command-line interface.
2. Apply a Network Attachment configuration using kubectl:

   ```bash
   kubectl apply -f - <<EOF
   apiVersion: cccc.cennso.com/v1alpha1
   kind: NetworkAttachment
   metadata:
     name: {NETWORK_ATTACHMENT_NAME}
     namespace: cennso-connectivity
   spec:
     connectionSecretRef:
       name: secret-name
       namespace: secret-namespace
     compositionRef:
       name: networkattachment-cni
     type: vlan
     vlanId: 3011
     mtu: 1500
     parentInterface: bond0 
   EOF
   ```

3. Verify that the configuration is successfully applied by checking the status of the NetworkAttachment resource:

   ```bash
   kubectl -n cennso-infra get networkattachments.cccc.cennso.com {NETWORK_ATTACHMENT_NAME}
   ```

---
title: "Enable Whereabouts CNI plugin"
description: "Whereabouts is a CNI IPAM plugin that assigns IP addresses across a Kubernetes cluster. It enables IP address management for Network Attachments, so that each network attachment interface gets a unique IP address from a defined range — even across multiple nodes."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/enable-whereabouts"
---

# Enable Whereabouts CNI plugin on Core Clusters

[Whereabouts](https://github.com/k8snetworkplumbingwg/whereabouts) is a CNI IPAM plugin that assigns IP addresses across a Kubernetes cluster. It enables IP address management for Network Attachments, so that each network attachment interface gets a unique IP address from a defined range — even across multiple nodes.

Cennso 2.11 introduced Whereabouts as a beta feature. This guide describes how to enable it on a Core Cluster.

## Prerequisites

- A running Core Cluster on Cennso 2.11 or later
- `kubectl` access to the Management Cluster

## Enable Whereabouts

Whereabouts is enabled per Core Cluster by setting **customProperties.whereabouts.enabled** to `true` in the CoreCluster resource. Cennso propagates this configuration to the underlying composition resources automatically.

1. Edit the CoreCluster resource:

   ```bash
   kubectl edit coreclusters.cccc.cennso.com {CLUSTER_NAME} -n {NAMESPACE}
   ```

2. Add the following under `spec`:

   ```yaml
   spec:
     customProperties:
       whereabouts:
         enabled: true
   ```

3. Save and apply the changes. The composition reconciles and installs the Whereabouts on the Core Cluster.

---
title: "Set up a private connection between clusters in IBM Cloud"
description: "This document explains how to configure a private connection based on a Management Cluster running in the IBM Cloud infrastructure."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/private-networking"
---

# Set up a private connection between clusters in IBM Cloud

This document explains how to configure a private connection based on a Management Cluster running in the IBM Cloud infrastructure.

1. Create a [Kubernetes Service](https://kubernetes.io/docs/concepts/services-networking/service) of the [LoadBalancer type](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer) for Cennso Data Mesh and expose it on a private IP using the `service.kubernetes.io/ibm-load-balancer-cloud-provider-ip-type` [annotation](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/).

   ```yaml
   apiVersion: v1
   kind: Service
   spec:
     ports:
       - appProtocol: tls
         name: leafnode-conn
         nodePort: 30686
         port: 6237
         protocol: TCP
         targetPort: leafnode-conn
       - appProtocol: tls
         name: client-conn
         port: 4237
         protocol: TCP
         targetPort: client-conn
     selector:
       app.kubernetes.io/name: cdm-node
     type: LoadBalancer
   metadata:
     annotations:
       service.kubernetes.io/ibm-load-balancer-cloud-provider-ip-type: private
     name: cdm-node-private
     namespace: cennso-system
   ```

2. Wait for the IP address assignment and adjust a DNS record for the Cennso Data Mesh domain.
3. Get the list of Application Load Balancers (ALB) for your cluster.

   ```bash
   ibmcloud ks ingress alb ls --cluster {CLUSTER_NAME_OR_ID}
   ```

4. Enable private ALBs (those with `private` prefix).

   ```bash
   ibmcloud ks ingress alb enable classic --alb private-{ALB_ID} --cluster {CLUSTER_NAME}
   ```

5. Configure a private ALB to use the Cennso certificate with the following ConfigMap to specify the TLS certificate from `cennso-system`. See the example:

   ```yaml
   apiVersion: v1
   kind: ConfigMap
   metadata:
     name: ibm-ingress-deploy-config
     namespace: kube-system
     annotations:
       source: "https://cloud.ibm.com/docs/containers?topic=containers-comm-ingress-annotations#comm-customize-deploy"
   data:
     private-<id>-alb1: '{"deepInspect":"true", "defaultCertificate":"cennso-system/cdm-tls-cert", "defaultConfig":"kube-system/ibm-k8s-controller-config","enableSslPassthrough":"false", "ingressClass":"private-iks-k8s-nginx", "enableIngressValidation":"true"}'
     private-<id>-alb2: '{"deepInspect":"true", "defaultCertificate":"cennso-system/cdm-tls-cert", "defaultConfig":"kube-system/ibm-k8s-controller-config","enableSslPassthrough":"false", "ingressClass":"private-iks-k8s-nginx", "enableIngressValidation":"true"}'
     private-<id>-...: '{"deepInspect":"true", "defaultCertificate":"cennso-system/cdm-tls-cert", "defaultConfig":"kube-system/ibm-k8s-controller-config","enableSslPassthrough":"false", "ingressClass":"private-iks-k8s-nginx", "enableIngressValidation":"true"}'
   ```

6. Update ALBs with this command:

   ```bash
   ibmcloud ks ingress alb update -c {CLUSTER_NAME_OR_ID}
   ```

   >**NOTE:** The ALBs may take 5-15 minutes to update.

7. Ensure that Ingresses used by telemetry endpoints use the `private-iks-k8s-nginx` IngressClass instead of `public-iks-k8s-nginx`. You need to adjust Ingresses in the `cennso-monitoring` namespace.

>**NOTE:** If a service was previously public, you must delete it and recreate it as private. Simply adding the annotation does not trigger an IP change.

---
title: "Set up a mixed network connection between clusters"
description: "By default, Cennso configures a single set of Ingresses and an agent-configuration Secret on the Management Cluster."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/mixed-network-connectivity"
---

# Configure mixed network connectivity for Core Clusters

By default, Cennso configures a single set of Ingresses and an `agent-configuration` Secret on the Management Cluster. All Core Clusters then use these endpoints to connect back to the Management Cluster for telemetry (Cennso Telemetry Agent), metrics (Mimir), and Cennso Data Mesh (CDM) traffic. This means every Core Cluster connects over the same network type — either private or public.

In environments where Core Clusters run on different infrastructure providers, some clusters may require a private connection, while others may require a public one. This guide explains how to configure mixed (private and public) network connectivity between Core Clusters and the Management Cluster.

## Prerequisites

- A running Management Cluster with Cennso installed
- The default `agent-configuration` Secret already configured in the `cennso-system` namespace (created automatically by the AgentConfiguration composition)
- DNS management access to create new records for public endpoints

## Overview

To support mixed connectivity, you need to:

1. Create additional Ingresses that expose Cennso Telemetry Agent (CTA) and Mimir endpoints on the public network.
2. Create a public LoadBalancer Service for Cennso Data Mesh (CDM).
3. Create DNS records pointing to the public Ingress and LoadBalancer addresses.
4. Create a separate `agent-configuration` Secret containing the public endpoint values.
5. Reference the public Secret in each Core Cluster that connects over the public network using the `ctaConfigurationSecretRef` field.

Core Clusters that use the private network do not require any changes — they continue to use the default `agent-configuration` Secret.

## Steps

1. Create public Ingresses for CTA and Mimir:

    - Create Ingresses for the `cta-management` and `cta-metrics` services that use a public IngressClass. Replace the placeholders with values matching your environment.

        **CTA Management Ingress:**

        ```yaml
        apiVersion: networking.k8s.io/v1
        kind: Ingress
        metadata:
          name: cta-management-public
          namespace: cennso-monitoring
        spec:
          ingressClassName: {PUBLIC_INGRESS_CLASS}
          rules:
            - host: {CTA_PUBLIC_DOMAIN}
              http:
                paths:
                  - backend:
                      service:
                        name: cta-management
                        port:
                          number: 4317
                    path: /
                    pathType: Prefix        
          tls:
            - hosts:
                - {CTA_PUBLIC_DOMAIN}
              secretName: {CTA_TLS_SECRET_NAME}
        ```

        **Mimir (cta-metrics) Ingress:**

        ```yaml
        apiVersion: networking.k8s.io/v1
        kind: Ingress
        metadata:
          name: cta-metrics-public
          namespace: cennso-monitoring
        spec:
          ingressClassName: {PUBLIC_INGRESS_CLASS}
          rules:
            - host: {MIMIR_PUBLIC_DOMAIN}
              http:
                paths:
                  - backend:
                      service:
                        name: cta-metrics
                        port:
                          number: 9090
                    path: /
                    pathType: Prefix     
          tls:
            - hosts:
                - {MIMIR_PUBLIC_DOMAIN}
              secretName: {MIMIR_TLS_SECRET_NAME}
        ```

    - Apply both Ingresses:

        ```bash
        kubectl apply -f cta-management-public-ingress.yaml
        kubectl apply -f cta-metrics-public-ingress.yaml
        ```

    >**NOTE:** The `{PUBLIC_INGRESS_CLASS}` depends on your infrastructure provider. For example, on IBM Cloud, use `public-iks-k8s-nginx`. Adjust accordingly for your environment.

2. Create a public LoadBalancer Service for CDM:

    - CDM uses a dedicated LoadBalancer Service instead of an Ingress. Create a Service that exposes CDM on a public IP address:

      ```yaml
      apiVersion: v1
      kind: Service
      metadata:
        name: cdm-node-public
        namespace: cennso-system
        annotations:
          service.kubernetes.io/ibm-load-balancer-cloud-provider-ip-type: public
      spec:
        type: LoadBalancer
        selector:
          app.kubernetes.io/name: cdm-node
        ports:
          - name: leafnode-conn
            appProtocol: tls
            port: 6237
            protocol: TCP
            targetPort: leafnode-conn
          - name: client-conn
            appProtocol: tls
            port: 4237
            protocol: TCP
            targetPort: client-conn
      ```

    - Apply the Service:

      ```bash
      kubectl apply -f cdm-node-public-service.yaml
      ```

    >**NOTE:** The annotation `service.kubernetes.io/ibm-load-balancer-cloud-provider-ip-type: public` is specific to IBM Cloud. Adjust the annotation or use provider-specific methods to obtain a public IP on other infrastructure providers.

    >**NOTE:** If CDM was previously exposed only on a private network, the existing `cdm-node` Service remains unchanged. The new `cdm-node-public` Service creates an additional entry point on the public network.

3. Create DNS records for public endpoints:

    - Wait for the external IP addresses to be assigned to the Ingresses and the CDM LoadBalancer Service:

      ```bash
      kubectl -n cennso-monitoring get ingress cta-management-public cta-metrics-public
      kubectl -n cennso-system get service cdm-node-public
      ```

    - Create DNS records:
      - Point `{CTA_PUBLIC_DOMAIN}` to the `cta-management-public` Ingress external IP
      - Point `{MIMIR_PUBLIC_DOMAIN}` to the `cta-metrics-public` Ingress external IP
      - Point `{CDM_PUBLIC_DOMAIN}` to the `cdm-node-public` Service external IP

4. Create a public agent-configuration Secret:

    - Create a new Secret in the `cennso-system` namespace that contains the public endpoint values for CTA, Mimir, and CDM. This Secret mirrors the structure of the default `agent-configuration` Secret but uses the public domains.

        >**NOTE:** The `MIMIR_ENDPOINT` path depends on the monitoring profile installed on the Management Cluster. Use `/api/v1/write` for the Small profile and `/api/v1/push` for the Large profile. You can check the current value in the existing `agent-configuration` Secret.

        ```yaml
        apiVersion: v1
        kind: Secret
        metadata:
          name: agent-configuration-public
          namespace: cennso-system
        type: Opaque
        stringData:
          CTA_ENDPOINT: {CTA_PUBLIC_DOMAIN}:4317
          MIMIR_ENDPOINT: https://{MIMIR_PUBLIC_DOMAIN}/{MIMIR_API_PATH}
          CDM_NODE_ENDPOINT: tls://{CDM_PUBLIC_DOMAIN}:6237
          CDM_NODE_CONNECTION_ENDPOINT: nats://{CDM_PUBLIC_DOMAIN}:4237
          CTA_BASIC_AUTH_USERNAME: {CTA_USERNAME}
          CTA_BASIC_AUTH_PASSWORD: {CTA_PASSWORD}
          CTA_PROMETHEUS_BASIC_AUTH_USERNAME: {MIMIR_USERNAME}
          CTA_PROMETHEUS_BASIC_AUTH_PASSWORD: {MIMIR_PASSWORD}
        ```

      Where `{MIMIR_API_PATH}` is:
        - `api/v1/write` — for the Small monitoring profile
        - `api/v1/push` — for the Large monitoring profile

    - Apply the Secret:

        ```bash
        kubectl apply -f agent-configuration-public.yaml
        ```

      >**NOTE:** Use the same authentication credentials as the default `agent-configuration` Secret unless you have configured separate credentials for the public endpoints.

5. Reference the public Secret in Core Cluster CRs:

    - For each Core Cluster that connects over the public network, set the `ctaConfigurationSecretRef` field to point to the public Secret:

        ```yaml
        apiVersion: cccc.cennso.com/v1alpha1
        kind: CoreCluster
        metadata:
          name: {CLUSTER_NAME}
          namespace: cennso-infra
        spec:
          compositionRef:
            name: {COMPOSITION_NAME}
          ctaConfigurationSecretRef:
            name: agent-configuration-public
            namespace: cennso-system
        ```

    - Apply the configuration:

        ```bash
        kubectl apply -f corecluster-public.yaml
        ```

      The CennsoDeployment composition reads `CTA_ENDPOINT`, `MIMIR_ENDPOINT`, `CDM_NODE_ENDPOINT`, and `CDM_NODE_CONNECTION_ENDPOINT` from the Secret referenced in `ctaConfigurationSecretRef`. When this field is not set, it defaults to the `agent-configuration` Secret in the `cennso-system` namespace.

6. Verify connectivity:

    - Check that the Core Cluster is ready:

        ```bash
        kubectl -n cennso-infra get coreclusters.cccc.cennso.com {CLUSTER_NAME}
        ```

    - Verify that the Cennso Agent on the Core Cluster is using the public endpoints by inspecting its configuration:

        ```bash
        kubectl --kubeconfig={CORE_CLUSTER_KUBECONFIG} -n cennso-system get secret agent-configuration -o yaml
        ```

    Confirm that the `CTA_ENDPOINT`, `MIMIR_ENDPOINT`, `CDM_NODE_ENDPOINT`, and `CDM_NODE_CONNECTION_ENDPOINT` values match the public domains.

---
title: "Use telemetry dashboards"
description: "These instructions describe how to access the dashboards, create new ones, and export the telemetry data."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/use-monitoring"
---

# Use telemetry dashboards

These instructions describe how to access the dashboards, create new ones, and export the telemetry data.

## Access dashboards

1. Go to **Cennso Management -> Dashboards**.
2. Select the desired dashboard folder or **Dashboard** from the available options (for example, Cennso build-in dashboards).

## Create a dashboard

To create a new dashboard in the Cennso Management Console, follow these steps:

1. Go to **Cennso Management -> Dashboards**.
2. Click **New** and select **New dashboard**.
3. Add panels:
    - Click **Add visualization** to insert your first panel.
    - Choose a data source to display in the panel: metrics, logs, or traces. If you enabled Alertmanager in your monitoring profile, you can also select the Alertmanager data source to display alerts.
    - On the right panel, select the type of visualization (for example graph, gauge, heatmap) for your telemetry data.
    - Define the telemetry data selector.
4. Configure Panel Settings:
    - Define the **time range** for the telemetry data you want to monitor.
    - Set up thresholds and limits to highlight important data points.
    - Adjust visual elements, such as colors and panel titles.
5. Save the Dashboard:
    - Once you’ve added all desired panels, click **Save dashboard**.
    - Give the dashboard a meaningful name and a description.

## Export telemetry data

To export telemetry data:

1. Go to the desired dashboard.
2. Click the chevron next to the **Share** button and select how you want to share the data. Click **Share** to copy the dashboard link to clipboard.
3. Choose **Export** and select the desired format (for example CSV, JSON).
4. Download the data for further analysis or sharing with other teams.

---
title: "Install and configure Small Profile"
description: "You can install and configure Small Profile using Cennso Management Console (CMC) or a command-line interface (CLI)."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/monitoring-profile-small"
---

# Install and configure Small profile

You can install and configure Small Profile using Cennso Management Console (CMC) or a command-line interface (CLI).

## Requirements

Small Profile requires the following system resources:

- **CPU**: 5 CPUs
- **Memory**: 5 GB RAM
- **Block Storage**: 60 GB

When you [enable alerting](#enable-alerting), the profile also runs an Alertmanager pod with a `20Gi` volume, which raises the block storage to 80 GB. Alertmanager itself needs a few megabytes for its silences and its notification log. The volume is that large because the block storage classes of the supported providers do not offer smaller volumes. On a provider that does, you can reduce it:

```yaml
spec:
  metricsTSDBChart:
    valuesOverrides:
      alertmanager:
        alertmanagerSpec:
          storage:
            volumeClaimTemplate:
              spec:
                resources:
                  requests:
                    storage: 1Gi
```

### Requirements (CMC)

## CMC

1. Go to **Cennso Management -> Monitoring**.
2. Click **Create** to select the composition.
3. Choose **Small Profile** from the available options. Optionally, choose the composition version. Click **Select**.
4. In the **Metadata** tab, provide a **Name** for the monitoring instance. This name must be unique.
5. Next, go to the **Specification** tab to configure such details as storage, metrics, or Telemetry Agent endpoints and credentials.
6. Click **Create** to finalize the setup.

### Requirements (CLI)

## CLI

1. Open your terminal or command-line interface.

2. Apply the Small Profile configuration using `kubectl`:

   ```bash
   kubectl apply -f - <<EOF
   apiVersion: cccc.cennso.com/v1alpha1
   kind: Monitoring
   metadata:
     name: monitoring-small-profile
     namespace: cennso-monitoring
   spec:
     compositionRef:
       name: monitoring-small-profile
     metricsTSDBChart:
       basicAuth:
         password: {YOUR_PASSWORD}
         username: {YOUR_USERNAME}
       endpoint: {TEST_ENDPOINT_ADDRESS}
       tls: true
     telemetryAgentManagement:
       basicAuth:
         password: {YOUR_PASSWORD}
         username: {YOUR_USERNAME}
       endpoint: {TELEMETRY_ENDPOINT_ADDRESS}
       tls: true
   EOF
   ```

   To change how long the metrics are kept, how much disk they use, or how much CPU and memory the metrics database gets, see [Configure the metrics database](#configure-the-metrics-database).

   You can customize Cennso Telemetry Agent resources to fit your needs. You can set them by adjusting the configuration specification. The default values are in the example below:

   ```yaml
   spec:
     telemetryAgentManagement:
       resources:
         requests:
           cpu: 300m
           memory: 500Mi
         limits:
           cpu: 500m
           memory: 1Gi
     telemetryAgentCore:
       resources:
         requests:
           cpu: 500m
           memory: 1Gi
         limits:
           cpu: "1"
           memory: 4Gi
   ```

3. Verify that the configuration has been successfully applied by checking the Monitoring resource:

   ```bash
   kubectl -n cennso-monitoring get monitorings.cccc.cennso.com monitoring-small-profile
   ```

## Configure the metrics database

The metrics database stores the metrics on a persistent volume and deletes the oldest data when it reaches a retention limit. You set the retention period in a dedicated field. The volume size, the retention size, and the resources come from the Helm values of the chart, which you set with **metricsTSDBChart.valuesOverrides**. These values go to the `kube-prometheus-stack` Release that runs Prometheus and Alertmanager, so write them as the chart expects them.

The following table lists the settings and their defaults:

| Setting | Field | Default |
| --- | --- | --- |
| Retention period | **metricsTSDBChart.retention** | `15d` |
| Retention size | **prometheus.prometheusSpec.retentionSize** in the overrides | `16GiB`, which is 80% of the volume size |
| Volume size | **prometheus.prometheusSpec.storageSpec** in the overrides | `20Gi` |
| CPU and memory | **prometheus.prometheusSpec.resources** in the overrides | Requests `2000m` and `3Gi`, limits `3000m` and `5Gi` |

The following snippet keeps 30 days of metrics on a 50Gi volume, stops the database at 40GiB, and raises the resources:

```yaml
spec:
  metricsTSDBChart:
    retention: 30d
    valuesOverrides:
      prometheus:
        prometheusSpec:
          retentionSize: 40GiB
          storageSpec:
            volumeClaimTemplate:
              spec:
                resources:
                  requests:
                    storage: 50Gi
          resources:
            requests:
              cpu: 3000m
              memory: 4Gi
            limits:
              cpu: 4000m
              memory: 6Gi
```

Prometheus deletes the oldest data as soon as it reaches either the retention period or the retention size. Give the retention size in `GiB`, which counts the same amount of data as the `Gi` of the volume size. The `Prometheus` resource requires the trailing `B`, so it accepts `40GiB` and rejects `40Gi`.

> [!CAUTION]
> Raise the retention size whenever you raise the volume size. The retention size does not follow the volume size on its own, so a larger volume keeps the old limit and stays mostly empty. In the other direction, a retention size above the volume size lets the database fill the volume, and a full volume stops the metrics ingestion. Keep the retention size at roughly 80% of the volume size, so that the write-ahead log and the compaction of blocks keep free space.

A larger volume size applies only to a volume that does not exist yet, because the volume claim template of a `StatefulSet` is immutable. To grow an existing volume, resize the PersistentVolumeClaim directly. Your storage class must support volume expansion.

The exporters run in a second Release of the same chart. To change `kube-state-metrics`, Node Exporter, the kubelet metrics, or the default alert rules, use **kubePrometheusStack.valuesOverrides** instead.

## Enable alerting

The Small Profile evaluates all `PrometheusRule` resources in the cluster and routes firing alerts through Alertmanager. You can enable and configure Alertmanager as part of the monitoring setup. You can define its configuration directly in the `Monitoring` CR or reference it from a Kubernetes Secret.

> [!NOTE]
> When you reference a Secret, store the configuration in the `alertmanager.yaml` key, as required by the `kube-prometheus-stack` chart.

### Enable alerting (CMC)

### CMC

1. Go to **Cennso Management -> Monitoring**.
2. If Monitoring is already deployed, click **Edit**. Otherwise, click **Create**, select **Small Profile**, and follow the [installation guide](#install-and-configure-small-profile).
3. Go to the **Specification** tab.
4. Expand the **Alertmanager** section.
5. Set **Enabled** to `true`.
6. (Optional) Provide the configuration inline or reference a Kubernetes Secret.

   The configuration must follow the [Prometheus Alertmanager](https://prometheus.io/docs/alerting/latest/configuration/) format.
7. Click **Update** to apply the configuration.

### Enable alerting (CLI)

### CLI

1. Open your terminal or command-line interface.
2. If Monitoring is already deployed, edit the existing resource. Otherwise, follow the [installation guide](#install-and-configure-small-profile).

   ```bash
   kubectl edit monitorings.cccc.cennso.com monitoring-small-profile -n cennso-monitoring
   ```

3. Modify the specification to include the Alertmanager settings. The following snippet enables Alertmanager and configures it inline:

   ```yaml
   spec:
     metricsTSDBChart:
       alertmanager:
         # Enables the Alertmanager deployment.
         enabled: true
         # Configuration in Prometheus Alertmanager format.
         config: |-
           receivers:
             - name: default-receiver
           route:
             receiver: default-receiver
   ```

   To keep the configuration in a Kubernetes Secret instead, set **configSecretName**. The composition then ignores **config**:

   ```yaml
   spec:
     metricsTSDBChart:
       alertmanager:
         enabled: true
         configSecretName: {SECRET_NAME}
   ```

4. Check that the composition applied the configuration. Inspect the `Monitoring` resource:

   ```bash
   kubectl -n cennso-monitoring get monitorings.cccc.cennso.com monitoring-small-profile
   ```

> [!CAUTION]
> On an existing Small Profile installation, the upgrade that adds alerting replaces the metrics database with an operator-managed Prometheus. Historical metrics are not migrated automatically, and the upgrade deletes the volume that holds them. If you need to keep existing data, follow [Small Profile metrics storage](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.14_to_2.15.md#small-profile-metrics-storage) before you upgrade.

---
title: "Install and configure Large Profile"
description: "You can install and configure Large Profile using Cennso Management Console (CMC) or a command-line interface (CLI)."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/monitoring-profile-large"
---

# Install and configure Large profile

You can install and configure Large Profile using Cennso Management Console (CMC) or a command-line interface (CLI).

## Requirements

Large Profile requires the following system resources to handle high data volumes and ensure high availability:

- **CPU**: 36 CPUs
- **Nodes**: minimum 3 Kubernetes nodes
- **Memory**: 100 GB RAM
- **Block Storage**: 300 GB, 10 IOPS per GB
- **S3-compatible storage**: 1 TB

### Requirements (CMC)

## CMC

1. Go to **Cennso Management -> Monitoring**.
2. Click **Create** to select the composition.
3. Choose **Large Profile** from the available options. Optionally, choose the composition version. Click **Select**.
4. In the **Metadata** tab, provide a **Name** for the monitoring instance. This name must be unique.
5. Next, go to the **Specification** tab to configure such details as storage, metrics, or Telemetry Agent endpoints and credentials.
6. Click **Create** to finalize the setup.

### Requirements (CLI)

## CLI

1. Open your terminal or command-line interface.

2. Create a Kubernetes secret called `bucket-secret` in the `cennso-monitoring` namespace, with the credentials to connect to the S3-compatible storage:

   ```bash
   kubectl create secret generic bucket-secret \
     --namespace cennso-monitoring \
     --from-literal=S3_SECRET_ACCESS_KEY_ID=<your-access-key-id> \
     --from-literal=S3_SECRET_ACCESS_KEY=<your-secret-access-key> \
     --from-literal=S3_SECRET_BUCKET_ENDPOINT=<your-bucket-endpoint> \
     --from-literal=S3_SECRET_BUCKET_REGION=<your-bucket-region>
   ```

   This secret must contain the following keys:
   - `S3_SECRET_ACCESS_KEY_ID` – Secret access key ID
   - `S3_SECRET_ACCESS_KEY` – Secret access key
   - `S3_SECRET_BUCKET_ENDPOINT` – Endpoint to connect to the buckets
   - `S3_SECRET_BUCKET_REGION` – Region where the buckets are located

3. Apply the Large Profile configuration using `kubectl`:

   ```bash
   kubectl apply -f - <<EOF
   apiVersion: cccc.cennso.com/v1alpha1
   kind: Monitoring
   metadata:
     name: monitoring-large-profile
     namespace: cennso-monitoring
   spec:
     compositionRef:
       name: monitoring-large-profile
     s3Bucket:
       namePrefix: {BUCKET_NAME_PREFIX}
       credentialsSecretName: bucket-secret
     metricsTSDBChart:
       basicAuth:
         password: {YOUR_PASSWORD}
         username: {YOUR_USERNAME}
       endpoint: {TEST_ENDPOINT_ADDRESS}
       tls: true
     telemetryAgentManagement:
       basicAuth:
         password: {YOUR_PASSWORD}
         username: {YOUR_USERNAME}
       endpoint: {TELEMETRY_ENDPOINT_ADDRESS}
       tls: true
   EOF
   ```

   `{BUCKET_NAME_PREFIX}` is the prefix used to generate eight S3 bucket names, each serving a specific purpose for the monitoring stack. The buckets will have the following suffixes:
   - `-loki-admin`
   - `-loki-chunks`
   - `-loki-ruler`
   - `-mimir-alertmanager`
   - `-mimir-blocks`
   - `-mimir-ruler`
   - `-tempo-admin`
   - `-tempo-traces`

   For example, if the `BUCKET_NAME_PREFIX` is set to `monitoring-data`, the final bucket names will be `monitoring-data-loki-admin`, `monitoring-data-loki-chunks`, etc.

   You can customize Cennso Telemetry Agent resources to fit your needs. You can set them by adjusting the configuration specification. The default values are in the example below:

   ```yaml
   spec:
     telemetryAgentManagement:
       resources:
         requests:
           cpu: 500m
           memory: 2Gi
         limits:
           cpu: "2"
           memory: 4Gi
     telemetryAgentCore:
       resources:
         requests:
           cpu: "1"
           memory: 2Gi
         limits:
           cpu: "2"
           memory: 4Gi
   ```

4. Verify that the configuration has been successfully applied by checking the Monitoring resource:

   ```bash
   kubectl -n cennso-monitoring get monitorings.cccc.cennso.com monitoring-large-profile
   ```

## Alertmanager configuration

As part of monitoring setup, you can enable and configure Alertmanager. Its configuration can be defined directly in the Monitoring Custom Resource or referenced from a Kubernetes Secret.

> **NOTE:** When referencing a secret, the configuration must be stored under the `data.config` key.

### Alertmanager configuration (CMC)

### CMC

1. Go to **Cennso Management -> Monitoring**.
2. If Monitoring is already deployed, click **Edit**. Otherwise, click **Create** and select the **Large Profile** and follow the [installation guide](#install-and-configure-large-profile).
3. Go to the **Specification** tab.
4. Expand the **Alertmanager** section.
5. Enable Alertmanager.
6. (Optional) Provide configuration inline or reference a Kubernetes Secret.

   The configuration must follow the [Prometheus Alertmanager](https://prometheus.io/docs/alerting/latest/configuration/) format.
7. Click **Update** or **Apply** to finalize the setup.

### Alertmanager configuration (CLI)

### CLI

1. Open your terminal or command-line interface
2. If Monitoring is already deployed, edit the existing resource. Otherwise, follow the [installation guide](#install-and-configure-large-profile).

   ```bash
   kubectl edit monitorings.cccc.cennso.com monitoring-large-profile -n cennso-monitoring
   ```

3. Modify the specification to include Alertmanager settings:

   ```yaml
   spec:
     metricsTSDBChart:
       alertmanager:
         # (Optional) Inline configuration in Prometheus Alertmanager format
         config: |-
           receivers:
           - name: ignore
           route:
             receiver: ignore
         # (Optional) If provided, `config` is ignored
         configSecretName: example-config
         # Enables Alertmanager deployment
         enabled: true
   ```

4. Verify that the configuration has been successfully applied by checking the Monitoring resource:

   ```bash
   kubectl -n cennso-monitoring get monitorings.cccc.cennso.com monitoring-large-profile
   ```

### Sample configuration: Slack integration

Alertmanager can integrate with various external systems. Below is an sample configuration for a Slack integration:

```yaml
receivers:
  - name: ignore
  - name: example
    slack_configs:
      - api_url: {SLACK_HOOK_URL} 
        channel: '#example'
        link_names: false
        send_resolved: true
        short_fields: false
        text: |-
          {{ range .Alerts -}}
               *Alert:* {{ .Annotations.summary}}{{ if .Labels.severity }} - `{{ .Labels.severity }}`{{ end }}

               *Description:* {{ .Annotations.description }}

               *Details:*
                 {{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}`
                 {{ end }}
               {{ end }}
        title: '     [{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] for core cluster {{ .GroupLabels.k8s_cluster_name }}'
route:
  continue: false
  matchers: []
  mute_time_intervals: []
  receiver: ignore
  routes:
    - continue: false
      group_by:
        - k8s_cluster_name
      mute_time_intervals: []
      receiver: example
      routes: []
```

## Read more

For details on configuring the Large Profile, refer to the specification of the used Custom Resources:

- [`Monitoring` CRD](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/monitoring_definition.md) – This document provides detailed descriptions of the available configuration parameters.

---
title: "Upgrade Cennso"
description: "You can upgrade Cennso through Cennso Management Console (CMC) or a command-line interface (CLI)."
url: "https://docs.cennso.com/cennso/cennso/latest/user-guides/upgrade-cennso"
---

# Upgrade Cennso

You can upgrade Cennso through Cennso Management Console (CMC) or a command-line interface (CLI).

>**WARNING:** Before upgrading Cennso, read first the applicable release notes and the migration guide (if such exists).

To upgrade the Cennso version, follow these steps:

## Upgrade Cennso (CMC)

1. Go to **Cennso Management -> Packages**.
2. Choose **Cennso** and click **Update**.
3. In the appearing drawer panel, navigate to the **Version** section and choose the desired version using the dropdown menu.
4. Click **Update** to confirm your changes.

## Upgrade Cennso (CLI)

1. Upgrade the version in the `clusterinstallation` composition:

   ```bash
   kubectl patch clusterinstallations.extension.cennso.com cennso -p '{"spec": {"forProvider": {"packageRef":{"version":"{VERSION}"}}}}' --type=merge
   ```

2. Verify whether the upgrade was successful and the installation status is `ready`:

   ```bash
   kubectl get clusterinstallations.extension.cennso.com extension-cennso
   ```

>**CAUTION:** Direct upgrades between non-consecutive versions (for example, from `2.4` to `2.6`) are not supported. You must upgrade sequentially through each minor version (for example, `2.4` → `2.5` → `2.6`) to ensure compatibility.

---
title: "GitOps"
description: "This document describes DevOps best practices used in Cennso to provision the infrastructure in a consistent and automated manner."
url: "https://docs.cennso.com/cennso/cennso/latest/best-practices/gitops"
---

# GitOps

This document describes DevOps best practices used in Cennso to provision the infrastructure in a consistent and automated manner.

## What is GitOps?

GitOps is an operational model that uses Git as the single source of truth for defining and managing infrastructure, applications, and configuration. In a GitOps workflow, everything — from deployment manifests to configuration policies — is stored and versioned in Git repositories. Changes to the system are made by updating Git, and automation tools continuously reconcile the actual runtime state with the declared desired state in the repository.

According to the fundamental principles developed by the [OpenGitOps](https://opengitops.dev/) project, a system managed by GitOps is:

- **Declarative** - a system managed by GitOps must have its desired state expressed declaratively.
- **Versioned and immutable** - desired state is stored in a way that enforces immutability, versioning and retains a complete version history.
- **Pulled automatically** - software agents automatically pull the desired state declarations from the source.
- **Continuously reconciled** - software agents continuously observe actual system state and attempt to apply the desired state.

![GitOps workflow](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/gitops-workflow.svg)

## How Cennso supports GitOps?

Cennso has been designed with GitOps principles at its core, ensuring consistent, declarative, and automated management of Cennso environments across clusters.

Key areas of GitOps support in Cennso:

- Declarative configuration management
  - All Cennso resources (extensions, providers, telemetry agents, and connectivity configurations) can be defined as YAML manifests stored in Git.
  - These manifests describe the *desired state* of the Cennso platform, including extensions, connection gateways, and monitoring integrations.
- Continuous reconciliation
  - Cennso controllers (including the Cennso Operator and Extensions Manager) continuously observe both Git and cluster states.
  - When a change is committed to Git, Cennso automatically applies it to the runtime environment, ensuring that the deployed system always reflects what’s declared in Git.
- Integration with GitOps tooling
  - Cennso integrates seamlessly with FluxCD, ArgoCD, and other CNCF GitOps controllers.
  - GitOps tools handle repository monitoring and deployment triggers, while Cennso handles resource orchestration and operational logic.
- Crossplane Provider Support (introduced in Cennso 2.4)
  - With the new Crossplane integration, Cennso can now manage not only its own components but also external cloud resources in a fully GitOps-managed way.
  - Crossplane resources declared in Git can be provisioned, updated, or decommissioned through the same reconciliation loop, giving a unified infrastructure-as-code experience.
- Auditability and Compliance
  - Since all Cennso configurations are version-controlled, teams can review, approve, and audit changes through standard Git workflows (e.g., pull requests and code reviews).

In short, Cennso supports GitOps by allowing you to:

- Define everything declaratively in Git.
- Automatically sync changes to runtime environments.
- Extend GitOps beyond configuration to include operational telemetry, connectivity, and resource provisioning.
- Git becomes your control plane, and Cennso ensures that what’s running always matches what’s declared.

## Benefits and challenges of GitOps

GitOps makes managing systems easier, safer, and more predictable. Because everything is stored in Git, teams always know what changed, when, and by whom. It’s simple to go back to a previous version if something breaks. Automation takes care of most updates, so there is less manual work and fewer mistakes. Developers can use familiar tools like pull requests to make and review changes, which improves teamwork and communication.

However, using GitOps also brings some difficulties. Teams need to learn new habits and make sure their Git repositories stay clean and well organized. Managing many environments can get complicated, and access permissions in Git must be carefully controlled. In addition, not every system works perfectly with a fully automated or declarative approach, so some setups may need extra care.

---
title: "Storing credentials"
description: "To maintain best practices, we recommend storing credentials in an encrypted form. You can achieve it with, for example, External Secrets Operator. This tool allows you to integrate with external secret managers and encrypted vaults."
url: "https://docs.cennso.com/cennso/cennso/latest/best-practices/storing-credentials"
---

# Storing credentials

To maintain best practices, we recommend storing credentials in an encrypted form. You can achieve it with, for example, [External Secrets Operator](https://external-secrets.io/latest/). This tool allows you to integrate with external secret managers and encrypted vaults.

In Cennso, we keep all credentials as encrypted secrets and only reference them in applicable resources.

---
title: "Access a Core Cluster for debugging"
description: "By design, you should not access a Core Cluster. Access is allowed only for debugging purposes and only using the CLI."
url: "https://docs.cennso.com/cennso/cennso/latest/troubleshooting/access-cc"
---

# Access a Core Cluster for debugging

> [!CAUTION]
> By design, you should not access a Core Cluster. Access is allowed only for debugging purposes and only using the CLI.

To access a Core Cluster, first, you need to be authorised to access the Management Cluster and retrieve Secrets. On the Management Cluster, each Core Cluster has a corresponding Kubernetes Secret whose name matches the Core Cluster name. The Secret contains the kubeconfig required to access the Core Cluster. kubeconfig is stored in the **data.kubeconfig** field of that Secret.

> [!NOTE]
> If you do not have access to the Management Cluster, contact your Cennso administrator.

## Steps

To access a Core Cluster using CLI:

1. Run the following command to acquire the Secret with kubeconfig:

   ```bash
   kubectl get secret {CLUSTER_NAME} -n {NAMESPACE} -o jsonpath="{.data.kubeconfig}" | base64 -d
   ```

   where:

   - **{CLUSTER_NAME}** - Name of the Core Cluster you want to access
   - **{NAMESPACE}** - Name of the namespace where the Core Cluster is created and its Secret is stored

2. Save the kubeconfig to a file. For example, `kubeconfig-cc.yaml`.

3. Export the kubeconfig to access the Core Cluster:

   ```bash
   export KUBECONFIG=./kubeconfig-cc.yaml
   ```

## Verification

To verify that you accessed the Core Cluster successfully, run the following command:

```bash
kubectl config current-context
```

The output should be the name of the Core Cluster.

>[!NOTE]
> In the case of any verification errors, make sure that your machine can connect to the Management Cluster API endpoint.

---
title: "Crossplane Helm Release"
description: "This page provides troubleshooting tips for issues with Crossplane Helm Releases."
url: "https://docs.cennso.com/cennso/cennso/latest/troubleshooting/crossplane-helm-release"
---

# Crossplane Helm Releases troubleshooting

This page provides troubleshooting tips for issues with Crossplane Helm Releases.

## Releases are not in the READY state even if all pods are running

This issue may occur when you misconfigure the dependent resources and update them after creating the composition claim. The pods should recognise the update and start working correctly but the Crossplane Helm Release can still not be in the `READY` state. To resolve this issue, follow the steps below. All of these steps may take a while to take effect as Crossplane must notice the change, act on it, and the pods need to restart.

1. List the Releases and check the messages in their statuses:

   ```bash
   kubectl get releases.helm.crossplane.io
   kubectl get releases.helm.crossplane.io {FAILED_RELEASE_NAME} -oyaml
   ```

2. If there is a suggestion in the status messages, follow it. For example, when you see `cannot determine creation result - remove the crossplane.io/external-create-pending annotation if it is safe to proceed`, remove the annotation if all pods are running correctly:

   ```bash
   kubectl -n {NAMESPACE} get pods
   kubectl edit releases.helm.crossplane.io {FAILED_RELEASE_NAME}
   ```

3. If there are no suggestions in the status, check if the failed Releases have the `spec.rollbackLimit` set:

   ```bash
   kubectl get releases.helm.crossplane.io {FAILED_RELEASE_NAME} -oyaml | grep rollbackLimit
   ```

4. If the `spec.rollbackLimit` is not set, set it to a value greater than 0:

   ```bash
   kubectl patch releases.helm.crossplane.io {FAILED_RELEASE_NAME} --type merge -p '{"spec":{"rollbackLimit":100}}'
   ```

5. If the `spec.rollbackLimit` is already set and the `status.failed` is lower than the `spec.rollbackLimit`, just wait. If it's not, you can patch the failure number artificially:

   ```bash
   kubectl patch releases.helm.crossplane.io {FAILED_RELEASE_NAME} --type=json --subresource status -p='[{"op": "replace", "path": "/status/failed", "value":0}]'
   ```

6. If it didn't work, you can delete the failed release and let Crossplane create a new one:

   ```bash
   kubectl delete releases.helm.crossplane.io {FAILED_RELEASE_NAME}
   ```

7. If it didn't work too, consider deleting the whole composition claim and creating a new one. Keep in mind that it could lead to data loss from the current setup.

## Core Cluster deletion is stuck

Cennso deletes a Core Cluster in reverse creation order. If one Crossplane `Release` resource in that order failed permanently, the deletion stops there and never removes the resources created before it.

A `Release` fails permanently when it applies a manifest for a CRD that another component owns and that component never became ready. For example, a `Release` that applies the Multus CRDs from the `k8s.cni.cncf.io` API group fails when Multus is not installed on the target cluster.

To unblock the deletion, follow these steps:

1. Check the status of the failed Release:

2. Remove the finalizer from the failed Release.

   > [!CAUTION]
   > This command force-deletes the `Release`. Crossplane stops tracking the Helm release on the target cluster and never cleans it up. Run it only when you are deleting the whole Core Cluster, and only after you confirm the name of the failed Release.

---
title: "CRs in Cennso"
description: "Cennso allows you to create your network infrastructure using Kubernetes Custom Resources (CRs) as building blocks. Depending on the purpose, there are two types of Custom Resources used in Cennso…"
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/custom-resources"
---

# Custom Resources

Cennso allows you to create your network infrastructure using Kubernetes [Custom Resources](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources) (CRs) as building blocks. Depending on the purpose, there are two types of Custom Resources used in Cennso:

- **Deployment CRs** - these CRs provide a static configuration to create an instance of Cennso components. These CRs monitor the Configuration CRs and are configured by them.
- **Configuration CRs** - these CRs provide a dynamic configuration to configure the deployed component instances. Cennso monitors these CRs, checks if there are corresponding component instances running in the cluster, and applies configuration from the respective Configuration CRs.

[Custom Resource Definitions](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/#customresourcedefinitions) (CRDs) are resources that define Custom Resources and contain the description of all possible parameters that you can specify for the given CR. To learn more about Cennso-related CRDs, explore the following sections under **Technical Reference**, where CRDs are grouped by Cennso component category.

---
title: "Package"
description: "Package Custom Resource (CR) is used to describe extensions for Cennso."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/extension.cennso.com_packages"
---

# Package Custom Resource Definition

Package Custom Resource (CR) is used to describe extensions for Cennso.

## Configuration example

This is a sample `Package` CR that you can use to describe Core extension for Cennso:

```yaml
apiVersion: extension.cennso.com/v1alpha1
kind: Package
metadata:
  labels:
    cennso.com/version: "2.2.0"
    extension.cennso.com/deprecated: "false"
    extension.cennso.com/name: cennso-core
  name: cennso-core-2.2.0
spec:
  display:
    name: Cennso Core
    description: |
      Cennso is a complete platform designed to build and manage next-generation network services. With its globally distributed architecture, centrally managed from a single point, Cennso significantly reduces the costs and operational complexities associated with deploying and maintaining distributed network infrastructures across cloud and edge environments.
    categories:
    - core
  defaultNamespace: cennso-system
  destination: CoreCluster
  documentationURL: https://docs.cennso.com/
  projectURL: https://cennso.com
  sources:
  - name: cennso-core
    provider: Helm
    repository: oci://registry.cennso.com/public/charts
    tag: "2.2.0"
    helmReleaseProperties:
      valueSets:
      - path: imagePullSecrets[0].name
        value: cennso-pull-secret
      - path: configuration.probesContainerRuntime.socketPath
        value: "/run/k0s/containerd.sock"
    properties:
    - variable: nsr.enabled
      default: "true"
      description: Enables NSR installation.
      type: boolean
      label: Enable NSR
    - variable: prometheus.servicemonitor.enabled
      default: "true"
      description: Enables monitoring and Prometheus ServiceMonitor installation for selected Cennso components.
      type: boolean
      label: Enable monitoring
    - variable: tracing.enabled
      default: "true"
      description: Enables tracing in Cennso Core Operator and workloads created by Cennso Core Operator.
      type: boolean
      label: Enable tracing
```

## Configuration parameters

These are all parameters that you can use to configure the `Package` CR:

**CRD specification:** [crd-extension-package.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/crd-extension-package.yaml?form=bundled&kind=crd)

---
title: "Installation"
description: "Installation is a composition responsible for installing the Cennso Packages."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/installation_definition"
---

# Installation Custom Resource Definition

Installation is a composition responsible for installing the Cennso Packages.

## Configuration example

This is a sample `Installation` CR that you can use to install Cennso Core Package:

```yaml
apiVersion: extension.cennso.com/v1alpha1
kind: Installation
metadata:
  name: cennso-core
  namespace: cennso-system
spec:
  values:
    cennso-core:
      nsr:
        enabled: true
      prometheus:
        servicemonitor:
          enabled: true
      tracing:
        enabled: true
  packageRef:
    name: cennso-core
    version: "2.2.0"
```

## Configuration parameters

These are all parameters that you can use to configure the `Installation` CR:

**CRD specification:** [installation_definition.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/installation_definition.yaml?form=bundled&kind=crd)

---
title: "ClusterInstallation"
description: "ClusterInstallation (CR) is used to install Cennso Packages at the cluster level."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/extension.cennso.com_clusterinstallations"
---

# ClusterInstallation Custom Resource Definition

ClusterInstallation (CR) is used to install Cennso Packages at the cluster level.

## Configuration example

This is a sample `ClusterInstallation` CR that you can use to install a package with a specific version:

```yaml
apiVersion: extension.cennso.com/v1alpha1
kind: ClusterInstallation
metadata:
  name: provider-inst
spec:
  forProvider:
    packageRef:
      name: cennso-core
      version: "2.2.0"
    values:
      cennso-core:
        nsr:
          enabled: true
        prometheus:
          servicemonitor:
            enabled: true
        tracing:
          enabled: true
  providerConfigRef:
    name: default
```

## Configuration parameters

These are all parameters that you can use to configure the `ClusterInstallation` CR:

**CRD specification:** [extension.cennso.com_clusterinstallations.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/extension.cennso.com_clusterinstallations.yaml?form=bundled&kind=crd)

---
title: "User"
description: "User Custom Resource (CR) is used to create a user in the Cennso permission system. To learn more, read the User and permission management document."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/authorization.cennso.com_users"
---

# User Custom Resource Definition

User Custom Resource (CR) is used to create a user in the Cennso permission system. To learn more, read the [User and permission management](https://docs.cennso.com/cennso/cennso/latest/configuration/permissions.md) document.

## Configuration example

This is a sample `User` CR that you can use to create and configure permissions for a user:

```yaml
apiVersion: authorization.cennso.com/v1alpha1
kind: User
metadata:
  name: user-sample
spec:
  forProvider:
    email: user@example.com
    permissions:
      cluster:
        rules:
          - apiGroups:
              - ""
            resources:
              - pods
            verbs:
              - get
              - list
      roles:
        - matchLabels:
            authorization.cennso.com/scope: admin
        - matchLabels:
            authorization.cennso.com/group: network-applications
```

## Configuration parameters

These are all parameters that you can use to configure the `User` CR:

**CRD specification:** [authorization.cennso.com_users.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/authorization.cennso.com_users.yaml?form=bundled&kind=crd)

---
title: "Group"
description: "Group Custom Resource (CR) is used to create and manage a user group in the Cennso permission system to categorize users and easily assign them permissions. To learn more, read the User and permissions management document."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/authorization.cennso.com_groups"
---

# Group Custom Resource Definition

Group Custom Resource (CR) is used to create and manage a user group in the Cennso permission system to categorize users and easily assign them permissions. To learn more, read the [User and permissions management](https://docs.cennso.com/cennso/cennso/latest/configuration/extensions.md) document.

## Configuration example

This is a sample `Group` CR that you can use to create and configure permissions for a user group:

```yaml
apiVersion: authorization.cennso.com/v1alpha1
kind: Group
metadata:
  name: group-sample
spec:
  forProvider:
    display:
      name: Sample group
      description: Sample description
      categories:
        - "admins"
    members:
      - kind: User
        name: user-sample
    permissions:
      cluster:
        rules:
          - apiGroups:
              - ""
            resources:
              - pods
            verbs:
              - get
              - list
      roles:
        - matchLabels:
            authorization.cennso.com/scope: admin
        - matchLabels:
            authorization.cennso.com/group: network-applications
```

## Configuration parameters

These are all parameters that you can use to configure the `Group` CR:

**CRD specification:** [authorization.cennso.com_groups.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/authorization.cennso.com_groups.yaml?form=bundled&kind=crd)

---
title: "Role"
description: "Role Custom Resource (CR) is used to create a set of permissions that you can easily assign to users and groups. To learn more, read the User and permissions management document."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/authorization.cennso.com_roles"
---

# Role Custom Resource Definition

Role Custom Resource (CR) is used to create a set of permissions that you can easily assign to users and groups. To learn more, read the [User and permissions management](https://docs.cennso.com/cennso/cennso/latest/configuration/permissions.md) document.

## Configuration example

This is a sample `Role` CR that you can use to create a role that contains a set of permissions:

```yaml
apiVersion: authorization.cennso.com/v1alpha1
kind: Role
metadata:
  name: role-sample
  labels:
    authorization.cennso.com/scope: admin
spec:
  forProvider:
    display:
      name: Sample role
      description: Sample description
      categories:
        - "admin"
    permissions:
      cluster:
        rules:
          - apiGroups:
              - "*"
            resources:
              - '*'
            verbs:
              - "*"
      roles:
        - matchLabels:
            authorization.cennso.com/group: network-applications
```

## Configuration parameters

These are all parameters that you can use to configure the `Role` CR:

**CRD specification:** [authorization.cennso.com_roles.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/authorization.cennso.com_roles.yaml?form=bundled&kind=crd)

---
title: "StorageEncryptionDefinition"
description: "StorageEncryptionDefinition configures LUKS-encrypted storage on selected disks and nodes. It formats and unlocks encrypted devices using a passphrase secret and can be paired with EncryptedStoragePool to manage volume groups and StorageClass creation."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/storage.cennso.com_storageencryptiondefinitions"
---

# StorageEncryptionDefinition Custom Resource Definition

`StorageEncryptionDefinition` configures LUKS-encrypted storage on selected disks and nodes. It formats and unlocks encrypted devices using a passphrase secret and can be paired with `EncryptedStoragePool` to manage volume groups and StorageClass creation.

## Configuration example

This is a sample `StorageEncryptionDefinition` CR that selects nodes and disks and references a passphrase secret:

```yaml
apiVersion: storage.cennso.com/v1alpha1
kind: StorageEncryptionDefinition
metadata:
  name: my-storage-encryption-definition
  namespace: cennso-infra
spec:
  providerConfigRef:
    kind: ProviderConfig
    name: default
  forProvider:
    connectionSecretRef:
      name: my-core-cluster
      namespace: cennso-infra
    nodeSelector:
      matchLabels:
        node-role: storage
        node-role.cennso.net/worker: generic
      matchPatterns:
        - "worker-*"
    diskSelector:
      matchPatterns:
        - "/dev/vd[a-d]"
        - "/dev/vds"
      excludePatterns:
        - "/dev/vdc"
    passphraseSecretRef:
      name: my-passphrase
      namespace: cennso-infra
      key: passphrase
```

>**NOTE:** On the Management Cluster, omit `spec.forProvider.connectionSecretRef` because the Storage Agent already has direct access to the cluster API.

## Configuration parameters

These are all parameters that you can use to configure the `StorageEncryptionDefinition` CR:

**CRD specification:** [storage.cennso.com_storageencryptiondefinitions.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/storage.cennso.com_storageencryptiondefinitions.yaml?form=bundled&kind=crd)

---
title: "EncryptedStoragePool"
description: "EncryptedStoragePool configures physical volume and volume group creation, and StorageClass setup for encrypted disks managed by a StorageEncryptionDefinition."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/storage.cennso.com_encryptedstoragepools"
---

# EncryptedStoragePool Custom Resource Definition

`EncryptedStoragePool` configures physical volume and volume group creation, and `StorageClass` setup for encrypted disks managed by a `StorageEncryptionDefinition`.

## Configuration example

This is a sample `EncryptedStoragePool` CR that references a `StorageEncryptionDefinition` and creates a `StorageClass`:

```yaml
apiVersion: storage.cennso.com/v1alpha1
kind: EncryptedStoragePool
metadata:
  name: my-encrypted-storage-pool
spec:
  providerConfigRef:
    kind: ProviderConfig
    name: default
  forProvider:
    storageEncryptionDefinitionRef:
      name: my-storage-encryption-definition
      namespace: cennso-infra
    volumeGroup:
      name: vg_encrypted
    storageClass:
      name: encrypted-lvm
      fsType: ext4
      reclaimPolicy: Delete
      allowVolumeExpansion: true
```

>**NOTE:** If you manage volume groups yourself, you can omit `EncryptedStoragePool` and only use `StorageEncryptionDefinition` for encryption and unlock.

## Configuration parameters

These are all parameters that you can use to configure the `EncryptedStoragePool` CR:

**CRD specification:** [storage.cennso.com_encryptedstoragepools.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/storage.cennso.com_encryptedstoragepools.yaml?form=bundled&kind=crd)

---
title: "CennsoDeployment"
description: "CennsoDeployment is a composition responsible for installing Cennso Agent components on a target Kubernetes cluster that conforms to the Cennso requirements."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/cennsodeployment_definition"
---

# CennsoDeployment Custom Resource Definition

CennsoDeployment is a composition responsible for installing Cennso Agent components on a target Kubernetes cluster that conforms to the Cennso requirements.

## Prerequisites

The best way to ensure the target cluster is compatible with Cennso requirements is to create it using the [ClusterController composition](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/clustercontroller_definition.md).

## Configuration example

This is a sample `CennsoDeployment` CR that you can use to install Cennso Agent on a target Kubernetes cluster. Cennso Telemetry Agent (CTA), installed in the target cluster in the `core` mode, is by default configured to communicate with CTA and Mimir in the Management Cluster using the Basic-Auth authentication scheme.

```yaml
apiVersion: cccc.cennso.com/v1alpha1
kind: CennsoDeployment
metadata:
   name: cennso
   namespace: cennso-infra
spec:
   connectionSecretRef:
      name: $KUBECONFIG_SECRET_NAME
      namespace: $KUBECONFIG_SECRET_NAMESPACE
      key: $KUBECONFIG_SECRET_KEY # defaults to `kubeconfig` if not supplied
```

The **spec.connectionSecretRef** must be filled with the reference to the Kubernetes secret containing Core Cluster kubeconfig. If the key equals `kubeconfig`, as if this secret was created by the Cluster composition, providing this key is not mandatory.

## Configuration parameters

These are all parameters that you can use to configure the `CennsoDeployment` CR:

**CRD specification:** [cennsodeployment_definition.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/cennsodeployment_definition.yaml?form=bundled&kind=crd)

---
title: "ClusterController"
description: "ClusterController is a composition responsible for creating a Kubernetes control plane that meets the Cennso requirements."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/clustercontroller_definition"
---

# ClusterController Custom Resource Definition

ClusterController is a composition responsible for creating a Kubernetes control plane that meets the Cennso requirements.

## Configuration example

This is a sample `ClusterController` CR that you can use to create a Kubernetes control plane:

```yaml
apiVersion: cccc.cennso.com/v1alpha1
kind: ClusterController
metadata:
  name: clustercontroller
  namespace: cennso-infra
spec:
  compositionRef:
    name: clustercontroller-basic
```

## Configuration parameters

These are all parameters that you can use to configure the `ClusterController` CR:

**CRD specification:** [clustercontroller_definition.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/clustercontroller_definition.yaml?form=bundled&kind=crd)

---
title: "CoreCluster"
description: "CoreCluster is a composition claim for a Cennso Core Cluster that is built on top of ClusterController and CennsoDeployment compositions. It is implemented by the composition for the XCoreCluster kind and provides an ability to use different providers."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/corecluster_definition"
---

# CoreCluster Custom Resource Definition

`CoreCluster` is a composition claim for a Cennso Core Cluster that is built on top of [ClusterController](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/clustercontroller_definition.md) and [CennsoDeployment](https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/cennsodeployment_definition.md) compositions. It is implemented by the composition for the XCoreCluster kind and provides an ability to use different providers.

## Configuration example

This is a sample `CoreCluster` CR that you can use to create a Rancher-based cluster on the IBM Classic infrastructure:

```yaml
apiVersion: cccc.cennso.com/v1alpha1
kind: CoreCluster
metadata:
  name: cc-ibm
  namespace: cennso-infra
spec:
  workerCount: 1
  dataplaneCount: 1
  compositionRef:
    name: corecluster-ibm-classic
```

## Configuration parameters

These are all parameters that you can use to configure the `CoreCluster` CR:

**CRD specification:** [corecluster_definition.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/corecluster_definition.yaml?form=bundled&kind=crd)

---
title: "Monitoring"
description: "Monitoring is a composition claim for the Cennso monitoring stack. It collects metrics, logs, and traces from Core Clusters and stores them in the Management Cluster. All components are installed with an opinionated set of values."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/monitoring_definition"
---

# Monitoring Custom Resource Definition

`Monitoring` is a composition claim for the Cennso monitoring stack. It collects metrics, logs, and traces from Core Clusters and stores them in the Management Cluster. All components are installed with an opinionated set of values.

The stack is available in two profiles, which you select with `compositionRef`:

- `monitoring-small-profile` stores telemetry data locally in the Management Cluster. It installs [Prometheus](https://prometheus.io/) for metrics, [Loki](https://grafana.com/oss/loki/) for logs, and [Tempo](https://grafana.com/oss/tempo/) for traces.
- `monitoring-large-profile` supports a distributed setup with high availability (HA) and S3-compatible storage. It installs [Mimir](https://grafana.com/oss/mimir/) for metrics, Loki for logs, and Tempo for traces.

Both profiles can deploy Alertmanager to route firing alerts. You configure it in the **metricsTSDBChart.alertmanager** section. For installation steps, see [Install and configure Small profile](https://docs.cennso.com/cennso/cennso/latest/user-guides/monitoring-profile-small.md) and [Install and configure Large profile](https://docs.cennso.com/cennso/cennso/latest/user-guides/monitoring-profile-large.md).

## Configuration example

This is a sample `Monitoring` CR that you can use to install the Large profile on S3-compatible storage:

```yaml
apiVersion: cccc.cennso.com/v1alpha1
kind: Monitoring
metadata:
  name: monitoring
  namespace: cennso-monitoring
spec:
  compositionRef:
    name: monitoring-large-profile
  s3Bucket:
    namePrefix: {BUCKET_NAME_PREFIX}
```

## Configuration parameters

These are all parameters that you can use to configure the `Monitoring` CR:

**CRD specification:** [monitoring_definition.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/monitoring_definition.yaml?form=bundled&kind=crd)

---
title: "ManagementConsole"
description: "ManagementConsole is a composition for Grafana with a preinstalled Cennso Management Console plugin. It allows you to observe the validation status of Core Clusters created on the host Management Cluster and use Grafana in its typical fashion."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/managementconsole_definition"
---

# ManagementConsole Custom Resource Definition

ManagementConsole is a composition for Grafana with a preinstalled Cennso Management Console plugin. It allows you to observe the validation status of Core Clusters created on the host Management Cluster and use Grafana in its typical fashion.

## Configuration example

This is a sample `ManagementConsole` CR that you can use to enable the Cennso Management Console plugin in Grafana:

```yaml
apiVersion: cccc.cennso.com/v1alpha1
kind: ManagementConsole
metadata:
  name: mc
  namespace: demo-ns
spec:
  imagePullSecrets:
    - name: registry-credentials
  cennsoAgentURL: $CENNSO_AGENT_URL
  cdmURL: $CDM_URL
  ingress:
    annotations:
      $ANNOTATION_KEY_1: $ANNOTATION_VALUE_1
      $ANNOTATION_KEY_2: $ANNOTATION_VALUE_2
      $ANNOTATION_KEY_N: $ANNOTATION_VALUE_N
    ingressClassName: $INGRESS_CLASS_NAME
    host: $HOST
```

  - **$CDM_URL** - URL to the Cennso Data Mesh, with the scheme set to **nats**. Sample value: `nats://cdm-local.cennso-system.svc.cluster.local:4222`
  - **$CENNSO_AGENT_URL** - URL to Cennso Agent in the management mode. Sample value: `http://cennso-agent.cennso-system.svc.cluster.local:8080`
  - values in `.spec.ingress` map to the values in the created Ingress resource. They depend on your cluster configuration and infrastructure.

## Configuration parameters

These are all parameters that you can use to configure the `ManagementConsole` CR:

**CRD specification:** [managementconsole_definition.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/managementconsole_definition.yaml?form=bundled&kind=crd)

---
title: "NetworkAttachment"
description: "Network attachments are defined to interconnect Cennso Network Functions with each other using virtual networks or to connect to external systems using infrastructure networks."
url: "https://docs.cennso.com/cennso/cennso/latest/technical-reference/crds/networkattachment_definition"
---

# NetworkAttachment Custom Resource Definition

Network attachments are defined to interconnect Cennso Network Functions with each other using virtual networks or to connect to external systems using infrastructure networks. Once created, Cennso Network Functions can reference network attachments in order to attach to the defined networks.

Supported types:

- Virtual FPP overlay networks (require FPP)
- Attachment of virtual FPP overlay network into the external network (require FPP)
- Shared host interfaces using MACVLAN
- IEEE 802.1q tagged VLANs

## Configuration example

This is a sample `NetworkAttachment` CR that you can use to attach Cennso Network Functions to a VLAN:

```yaml
apiVersion: cccc.cennso.com/v1alpha1
kind: NetworkAttachment
metadata:
  name: vlan-pub
  namespace: cennso-connectivity
spec:
  connectionSecretRef:
    name: secret-name
    namespace: secret-namespace
  compositionRef:
    name: networkattachment-cni
  type: vlan
  vlanId: 3011
  mtu: 1500
  parentInterface: bond0
```

## Configuration parameters

These are all parameters that you can use to configure the `NetworkAttachment` CR:

**CRD specification:** [networkattachment_definition.yaml](https://docs.cennso.com/api/spec/cennso/cennso/latest/assets/crds/networkattachment_definition.yaml?form=bundled&kind=crd)

---
title: "2.15.2"
description: "Release date: 2026-09-18. This release bumps Crossplane to 2.1.8, fixing an issue where a deleted and recreated resource could get stuck without being reconciled, and an issue that caused unnecessary composition reconciliation loops."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.15.2"
---

# Cennso 2.15.2

**Release date:** 2026-09-18

This release bumps Crossplane to 2.1.8, fixing an issue where a deleted and recreated resource could get stuck without being reconciled, and an issue that caused unnecessary composition reconciliation loops. There are no breaking changes between 2.15.1 and 2.15.2.

## Fixes

### Recreated resources could get stuck without being reconciled

Crossplane keeps a circuit breaker per resource to stop hammering a reconciler that keeps failing. If you deleted a resource and recreated it with the same name while its circuit breaker was open, the new resource inherited that stale state: no reconcile request was ever enqueued for it, so it stayed un-reconciled until Crossplane's cache resynced, which could take hours.

### Unnecessary composition reconciliation loops from Usage resources

Crossplane's Usage controller only checked the first owner reference on a resource to decide whether to update it. When the resource protected by a `Usage` had other owners listed before it, the controller kept updating it unnecessarily, causing repeated, unneeded composition reconciliations.

This release bumps the Crossplane Helm chart from 2.1.4 to 2.1.8, which fixes both issues above and picks up security updates from the 2.1.5–2.1.8 patches. See the [Crossplane v2.1.5](https://github.com/crossplane/crossplane/releases/tag/v2.1.5), [v2.1.6](https://github.com/crossplane/crossplane/releases/tag/v2.1.6), [v2.1.7](https://github.com/crossplane/crossplane/releases/tag/v2.1.7), and [v2.1.8](https://github.com/crossplane/crossplane/releases/tag/v2.1.8) release notes for the full list of changes in this patch.

---
title: "2.15.1"
description: "Release date: 2026-08-19. This release fixes a problem that left a Core Cluster stuck when you deleted it. There are no breaking changes between 2.15.0 and 2.15.1."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.15.1"
---

# Cennso 2.15.1

**Release date:** 2026-08-19

This release fixes a problem that left a Core Cluster stuck when you deleted it. There are no breaking changes between 2.15.0 and 2.15.1.

## Fixes

### `CoreCluster` deletion getting stuck when Multus is not ready

Cennso deploys the Cennso Agent to a new Core Cluster with a Crossplane `Release` resource. That `Release` applies the Multus CRDs, so it failed permanently when Multus was not yet ready on the target cluster.

Cennso deletes a Core Cluster in reverse creation order. The failed `Release` therefore also blocked every resource created before it, and you had to remove the Core Cluster by hand.

Cennso now deploys the Cennso Agent only after Multus and the local path provisioner are ready. The change applies automatically to Core Clusters that you create after the upgrade, and does not affect existing Core Clusters.

If a Core Cluster is already stuck for this reason, follow [Core Cluster deletion is stuck](https://docs.cennso.com/cennso/cennso/latest/troubleshooting/crossplane-helm-release.md#core-cluster-deletion-is-stuck).

---
title: "2.15.0"
description: "Release date: 2026-08-04. This release exposes a Core Cluster's resolved API endpoint directly on CoreCluster status, distinguishing public from private LoadBalancer addresses. See Core Cluster for how to read it."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.15.0"
---

# Cennso 2.15.0

**Release date:** 2026-08-04

This release exposes a Core Cluster's resolved API endpoint directly on `CoreCluster` status, distinguishing public from private LoadBalancer addresses. See [Core Cluster](https://docs.cennso.com/cennso/cennso/latest/concepts/core-cluster.md) for how to read it.

## Features

### Expose Core Cluster API endpoint in status

`CoreCluster`/`XCoreCluster` status now includes **status.endpoint**, describing the cluster's API endpoint: its resolved **hostname** and the **addresses** backing it, each with its `ip` and, when the underlying LoadBalancer Service carries a **cennso.com/ip-type** annotation, an `ipType` matching that annotation's value (typically `public`/`private`). Downstream compositions and users can read this directly from `CoreCluster.status` instead of observing the underlying ClusterController's Kubernetes Services.

### Enable custom performance-related Storage settings

`StorageEncryptionDefinition` now supports optional **performance** fields (**forceSameCpuCrypt**, **forceSubmitFromCryptCpus**, **forceNoReadWorkqueue**, **forceNoWriteWorkqueue**) mapping to `cryptsetup` performance options. If left unset, the Storage Agent picks them automatically based on CPU count, NUMA node count, and kernel version.

### Enable alerting in the Small Profile

The `monitoring-small-profile` composition now evaluates every `PrometheusRule` resource in the cluster and routes firing alerts through Alertmanager. Enable and configure Alertmanager in the **metricsTSDBChart.alertmanager** section of the `Monitoring` resource, either with an inline configuration or with a reference to a Kubernetes Secret. The Small Profile reads the configuration from the `alertmanager.yaml` key of that Secret. Grafana also receives an Alertmanager data source. See [Enable alerting](https://docs.cennso.com/cennso/cennso/latest/user-guides/monitoring-profile-small.md#enable-alerting).

To evaluate alert rules, the composition replaces the standalone `prometheus` chart with a Prometheus instance that the Prometheus Operator manages. The Cennso Telemetry Agents continue to collect the metrics and write them to this instance.

The new instance also limits the size of the metrics data to `16GiB`, which is 80% of its `20Gi` volume. It deletes the oldest blocks when it reaches that size, so it no longer fills the volume when the ingestion rate is high. See [Configure the metrics database](https://docs.cennso.com/cennso/cennso/latest/user-guides/monitoring-profile-small.md#configure-the-metrics-database) for how to change the volume size and the retention.

Alertmanager keeps its silences and its notification log on a `20Gi` volume, so they survive a restart. This raises the block storage of the profile to 80 GB while alerting is enabled.

> [!CAUTION]
> The new Prometheus instance uses a new PersistentVolumeClaim and starts with an empty database, so historical metrics are not migrated automatically. Back up the existing volume and read [Small Profile metrics storage](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.14_to_2.15.md#small-profile-metrics-storage) before you upgrade an existing Small Profile installation.

## Deprecations

### CDM-node removal

The `cdm-node` Helm Release has been removed from the CennsoDeployment composition, as announced in [2.11.0](https://docs.cennso.com/cennso/cennso/latest/releases/2.11.0.md#cdm-node-removal). Use the Mesh resource from the CDM Extension instead.

> [!NOTE]
> Removing the `cdm-node` Helm Release does not remove its PersistentVolumeClaims (PVCs) or the PersistentVolumes (PVs) behind them. See [CDM Node PVC cleanup](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.14_to_2.15.md#cdm-node-pvc-cleanup) in the migration guide to check for and remove them.

### Crossplane removal

The nested Crossplane instance deployed as part of the CennsoDeployment composition has been removed, as announced in [2.11.0](https://docs.cennso.com/cennso/cennso/latest/releases/2.11.0.md#crossplane-deployment-on-core-cluster).

### Site API removal

> [!WARNING]
> This removal was not previously announced as deprecated.

The Site API component deployed as part of the CennsoDeployment composition has been removed, as it is not used by Cennso.

### Correction to the 2.11.0 CDM secrets deprecation

[2.11.0](https://docs.cennso.com/cennso/cennso/latest/releases/2.11.0.md#cdm-secrets-deprecation) incorrectly grouped `cdm-node-grey`, `fpp-grey`, `upg-grey`, `netcap-collector-grey`, and `netcap-sink-grey` with the secrets only required by `cdm-node`. These five secrets remain supported and are not removed:

- `cdm-node-grey`, still required by the `storage-agent` component
- `fpp-grey`, `upg-grey`, `netcap-collector-grey`, `netcap-sink-grey`, still required by other components

The following secrets, which were only required by the now-removed `cdm-node` and Site API components, have been removed from the CennsoDeployment composition:

- `acc-blue`
- `cdm-node-blue`
- `netcap-collector-blue`
- `netcap-sink-blue`
- `siteapi-grey`

---
title: "2.14.0"
description: "Release date: 2026-06-05. Cennso 2.14.0 upgrades the Extension Provider and the Cennso Data Mesh Extension to the latest versions, which include the full migration of the Crossplane packages to the Crossplane v2.0 API and the latest bug fixes and improvements."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.14.0"
---

# Cennso 2.14.0

**Release date:** 2026-06-05

Cennso 2.14.0 upgrades the Extension Provider and the Cennso Data Mesh Extension to the latest versions, which include the full migration of the Crossplane packages to the Crossplane v2.0 API and the latest bug fixes and improvements.

[!WARNING]
Breaking change: The **spec.publishConnectionDetailsTo** field has been removed from the ClusterInstallation CRD. The field was not used by Cennso and there is no migration guide for this change. If you used this field in your ClusterInstallation, read about `writeConnectionSecretToRef` in the Crossplane documentation and update your ClusterInstallation accordingly.

## Maintenance

This release upgrades the Extension Provider and the Cennso Data Mesh Extension to the latest versions, which include the full migration of the Crossplane packages to the Crossplane v2.0 API and the latest bug fixes and improvements.

### Extension Provider updated to version 1.1.7

Cennso 2.14.0 ships Extension Provider version 1.1.7, replacing version 1.1.6. The new version is automatically applied on the Cennso upgrade.

### Cennso Data Mesh Extension updated to version 1.7.0

Cennso 2.14.0 ships Cennso Data Mesh Extension version 1.7.0, replacing version 1.6.0, which updates the bundled CDM Provider to version 1.3.1. To pick up the new version, upgrade the CDM ClusterInstallation as described in the Cennso Data Mesh Extension upgrade guide.

---
title: "2.13.2"
description: "Release date: 2026-05-22. Cennso 2.13.2 fixes problems with pull secrets in the CCCC compositions that could cause issues with the Core Cluster and Monitoring installations."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.13.2"
---

# Cennso 2.13.2

**Release date:** 2026-05-22

Cennso 2.13.2 fixes problems with pull secrets in the CCCC compositions that could cause issues with the Core Cluster and Monitoring installations.

> [!CAUTION]
> Before upgrading to 2.13.2, follow the instructions in the [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.11_to_2.13.md).

## Fixes

This release fixes problems with pull secrets in the CCCC compositions that could cause issues with the Core Cluster and Monitoring installations.

### Pull secrets fixed in CCCC compositions

The CCCC compositions shipped with the previous Cennso versions had pull secrets configured in a way that could cause issues with the Core Cluster and Monitoring installations. Cennso 2.13.2 corrects the pull secret configuration in the CCCC compositions, so the installations can properly pull the required images from the registry. The new CCCC configuration is automatically applied on the Cennso upgrade.

---
title: "2.13.1"
description: "Release date: 2026-05-07. Cennso 2.13.1 fixes problems with the monitoring-large composition and improves the security of Cennso Telemetry Agent."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.13.1"
---

# Cennso 2.13.1

**Release date:** 2026-05-07

Cennso 2.13.1 fixes problems with the `monitoring-large` composition and improves the security of Cennso Telemetry Agent.

> [!CAUTION]
> Before upgrading to 2.13.1, follow the instructions in the [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.11_to_2.13.md).

## Fixes

This release fixes a Cennso Telemetry Agent configuration issue in the `monitoring-large` composition, fixes potential issues with the Cennso Telemetry Agent configuration, and updates the agent to a newer, independently maintained version.

### Cennso Telemetry Agent configuration fixed in Monitoring compositions and the Core Cluster

The `monitoring-large` composition shipped Cennso Telemetry Agent with wrong configuration. Cennso 2.13.1 corrects the configuration in both the Monitoring compositions and the Core Cluster deployment, so the agent is properly connected to the monitoring stack and securely scraping metrics. To pick up the new configuration, upgrade the Monitoring composition as described in the migration guides. To pick up the new configuration on the Core Cluster, upgrade the Core Cluster as described in the migration guides.

### Cennso Telemetry Agent version updated

Cennso Telemetry Agent has moved out of the main Cennso repository and is now released as a separate project with its own lifecycle. Cennso 2.13.1 ships agent version 1.0.0, replacing the version inherited from Cennso 2.9.0. To pick up the new version, upgrade the Monitoring composition as described in the migration guides.

---
title: "2.13.0"
description: "Release date: 2026-05-01. Cennso 2.13.0 extends observability with additional metrics scraped by Cennso Telemetry Agent and improves storage encryption with renamed Custom Resources and support for multiple instances per cluster."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.13.0"
---

# Cennso 2.13.0

**Release date:** 2026-05-01

Cennso 2.13.0 extends observability with additional metrics scraped by Cennso Telemetry Agent and improves storage encryption with renamed Custom Resources and support for multiple instances per cluster.

> [!CAUTION]
> Before upgrading to 2.13.0, follow the instructions in the [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.11_to_2.13.md).

## Features

This release enhances Cennso Telemetry Agent with additional container and Kubernetes metrics and improves the flexibility of storage encryption configuration.

### Additional metrics scraped by Cennso Telemetry Agent

Cennso Telemetry Agent now supports additional metrics related to CPU, memory, filesystem, labels, and annotations. You can also configure within a Core Cluster which annotations and labels should be scraped as metrics.

The new metrics include:

- `container_cpu_system_seconds_total`
- `container_cpu_cfs_throttled_seconds_total`
- `container_fs_io_time_seconds_total`
- `container_fs_io_time_weighted_seconds_total`
- `container_fs_reads_merged_total`
- `container_fs_sector_reads_total`
- `container_fs_sector_writes_total`
- `container_fs_writes_merged_total`
- `container_memory_mapped_file`
- `kube_pod_labels`
- `kube_pod_annotations`

### Storage encryption Custom Resource naming updated

Previously, the Custom Resources were named `EncryptedVolume` and `LVMVolumeGroup`. They have been renamed to `StorageEncryptionDefinition` and `EncryptedStoragePool`, respectively. The new names better reflect the purpose of these resources and align with common naming conventions.

### Storage encryption support with multiple Custom Resources per cluster

Previously, only one of each Custom Resource was supported per cluster. Now, Cennso Storage Agent supports multiple `StorageEncryptionDefinition` and `EncryptedStoragePool` Custom Resources. This allows for greater flexibility in managing encrypted storage across different nodes and disks within the same cluster.

## Fixes

This release improves the usability of extension management resources.

### ClusterInstallation print columns cleaned up

The `ClusterInstallation` resource print columns have been cleaned up to provide more relevant information at a glance. The new columns include `PACKAGE` and `VERSION`, which display the name and version of the package associated with the cluster installation. The previous columns have been removed to streamline the output and focus on key details.

---
title: "2.12.1"
description: "If you are upgrading from Cennso 2.11, skip Cennso 2.12.1 and upgrade directly to Cennso 2.13.1. Before upgrading to 2.13.1, follow the instructions in the migration guide."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.12.1"
---

# Cennso 2.12.1

**Release date:** 2026-03-25

> [!CAUTION]
> If you are upgrading from Cennso 2.11, skip Cennso 2.12.1 and upgrade directly to Cennso 2.13.1.
> Before upgrading to 2.13.1, follow the instructions in the [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.11_to_2.13.md).

## Fixes

### OpenEBS CRDs fix

Disable installing OpenEBS CSI VolumeSnapshot CRDs as they are already included in k0s.

### Worker scripts sudo fix

Fix missing `sudo` in the generated worker join and reset scripts. The `mkdir`, `tee`, `rm -rf`, and `reboot` commands now run with elevated privileges, preventing failures on non-root worker nodes.

---
title: "2.12.0"
description: "If you are upgrading from Cennso 2.11, skip Cennso 2.12.0 and upgrade directly to Cennso 2.13.1. Before upgrading to 2.13.1, follow the instructions in the migration guide."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.12.0"
---

# Cennso 2.12.0

**Release date:** 2026-03-20

> [!CAUTION]
> If you are upgrading from Cennso 2.11, skip Cennso 2.12.0 and upgrade directly to Cennso 2.13.1.
> Before upgrading to 2.13.1, follow the instructions in the [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.11_to_2.13.md).

## Features

### Add support for storage encryption at rest

This Cennso release adds support for storage encryption at rest. It allows you to encrypt your data stored in the Management Cluster and Core Clusters using a specified encryption key. The nodes, disks, and volume groups are configurable. The encryption is implemented using LUKS and is supported by the OpenEBS LocalPV storage engine.

### Install OpenEBS on Management Clusters and Core Clusters

This Cennso release adds OpenEBS as the default LVM operator for both Management Clusters and Core Clusters. The Local Path Provisioner is marked as deprecated and will be removed in a future release. OpenEBS is a production-ready solution that provides improved reliability and customizability as compared to the Local Path Provisioner. It also enables the use of storage encryption at rest.

## Fixes

### Security fixes

CNI Installer plugins have been updated to address security vulnerabilities.

### ClusterInstallation stability fixes

Provider-extension has been updated with several fixes improving ClusterInstallation reliability:

- Added handling for missing CRDs to prevent blocking installations
- Pending resources are now treated as not-to-create resources
- Fixed stuck ClusterInstallations by properly removing stale annotations
- Added self-healing mechanism for stale ClusterInstallations

---
title: "2.11.1"
description: "Release date: 2026-03-17. Cennso 2.11.1 disables the Whereabouts CNI plugin by default on Core Clusters and fixes the ingestion rate limit configuration in the Large monitoring profile."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.11.1"
---

# Cennso 2.11.1

**Release date:** 2026-03-17

Cennso 2.11.1 disables the Whereabouts CNI plugin by default on Core Clusters and fixes the ingestion rate limit configuration in the Large monitoring profile.

> **CAUTION:** If you are upgrading from Cennso 2.10, skip Cennso 2.11.0 and upgrade directly to Cennso 2.11.1.

> **CAUTION:** Before upgrading to 2.11, follow the instructions in the [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.10_to_2.11.md).

## Fixes

### Whereabouts CNI plugin disabled by default

The Whereabouts CNI plugin is now disabled by default on Core Clusters to support backward compatibility and avoid colliding with existing deployments. Previously, in Cennso 2.11.0, it was installed by default during Core Cluster creation and upgrade, and it was a bug. This change prevents Whereabouts from interfering with existing CNI IPAM setups until the plugin reaches General Availability status.

To enable Whereabouts on a Core Cluster, follow the [Enable Whereabouts CNI plugin on Core Clusters](https://docs.cennso.com/cennso/cennso/latest/user-guides/enable-whereabouts.md) guide.

### Fixed ingestion rate limit configuration in the Large monitoring profile

Previously, the ingestion rate limit in the Large monitoring profile was not configurable, which caused Mimir to drop metrics when the ingestion rate exceeded the default limit. This release exposes two new fields in the Monitoring resource to allow tuning the ingestion capacity:

- **ingestionRateLimit** — Mimir distributor ingestion rate limit in samples per second. This is a global limit distributed across all Mimir distributors.
- **ingestionBurstSize** — maximum token bucket size, which allows temporarily exceeding the ingestion rate limit. It is recommended to set this to at least 10 times the ingestion rate limit.

---
title: "2.11.0"
description: "Release date: 2026-03-05. Cennso 2.11.0 introduces support for CNI plugin upgrade, adds the Whereabouts CNI plugin and IPAM configuration for Network Attachments, upgrades Kubernetes to version 1.34.4 in Core Clusters, and addresses 201 CVEs through image and dependency updates."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.11.0"
---

# Cennso 2.11.0

**Release date:** 2026-03-05

Cennso 2.11.0 introduces support for CNI plugin upgrade, adds the Whereabouts CNI plugin and IPAM configuration for Network Attachments, upgrades Kubernetes to version 1.34.4 in Core Clusters, and addresses 201 CVEs through image and dependency updates.

> **CAUTION:** If you are upgrading from Cennso 2.10, skip Cennso 2.11.0 and upgrade directly to Cennso 2.11.1.

> **CAUTION:** Before upgrading to 2.11.0, follow the instructions in the [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.10_to_2.11.md).

## Features

### CNI plugins upgrade procedure

This release introduces a custom mechanism for CNI plugins installation. It enables automatic upgrade of CNI plugins during Core Cluster upgrade without the need for any manual intervention.

### Add support for Whereabouts CNI plugin

This release adds support for the Whereabouts CNI plugin, which is installed by default during Core Cluster creation. Cennso also installs it automatically during Core Cluster upgrade from the previous version.

> **CAUTION:** The default installation of Whereabouts CNI plugin on Core Clusters is disabled by default in Cennso 2.11.1 until it achieves the General Availability status.

### Add support for IPAM configuration in Network Attachments

Previously, it was not possible to configure an IPAM section for Network Attachments. This release adds support for IPAM configuration in Network Attachments, which also allows configuration of Whereabouts CNI plugin.

### Introduction of sequential deletion resources in compositions

The upgraded Sequencer Function introduces sequential deletion of resources in compositions which allows graceful removal of compositions. It also automatically creates usages based on a defined sequence.

### Add support for namespaced Releases, Objects and Workspaces

The upgraded Crossplane Providers introduce support for namespaced resources like Releases, Objects and Workspaces.

### Upgrade Kubernetes version in Core Clusters to version 1.34.4

This release upgrades the Kubernetes version in Core Clusters to version 1.34.4, which improves the security of the cluster and adds new features from the latest Kubernetes release.

### Add default ServiceMonitor and PodMonitor to Core Clusters

The new version of Core Clusters adds ServiceMonitor and PodMonitor resources by default, which monitor the resources deployed in the Core Cluster.

To enable monitoring, the Service or Pod must have the following labels configured:

- Service

   ```yaml
   labels:
     monitoring.cennso.com/enabled: "true"
     monitoring.cennso.com/monitor-type: "servicemonitor"
   ```

- Pod

   ```yaml
   labels:
     monitoring.cennso.com/enabled: "true"
     monitoring.cennso.com/monitor-type: "podmonitor"
   ```

The Service or Pod must also expose a port named `http-metrics` with metrics available on the `/metrics` path.

### Update of Cennso dependencies

This release upgrades the following Cennso dependencies:

- Crossplane: 2.0.6 → 2.1.4
- Helm Provider: 0.20.4 → 1.2.0
- Kubernetes Provider: 0.18.0 → 1.2.0
- Terraform Provider: 0.20.0 → 1.1.1
- OpenTofu Provider: 1.0.1 → 1.1.0
- Extra Resources Function: 0.0.3 → 0.3.0
- Auto Ready Function: 0.3.0 → 0.6.1
- Go Template Function: 0.8.0 → 0.11.4
- Patch and Transform Functions: 0.7.0 → 0.10.1
- Sequencer Function: 0.2.2 → 0.5.0
- Status Transformer Function: 0.4.0 → 0.5.1
- K0smotron: 1.6.2 → 1.10.3
- Kubernetes Replicator: 2.12.0 → 2.12.3
- cert-manager: 1.15.1 → 1.19.4

## Fixes

### Fixed incorrect Provider conditions in ClusterInstallation status

Cennso 2.11.0 fixed an issue where the Provider conditions in the **ClusterInstallation** status did not update correctly. The fix ensures accurate status reporting for any Provider-related operations.

### Enhanced Provider installation loop in the Extension Provider

We improved the installation loop for Providers in the Extension Provider for better handling of Provider Config deployment.

### Fixed Core Cluster deletion

During Core Cluster deletion, the composition did not delete every resource. This release fixes this issue and ensures the composition deletes all resources during Core Cluster deletion.

### Fixed Crossplane image repository

This release fixes the Crossplane image repository to use the registry configured in Management Cluster configuration.

### Fixed CDM certificate renewal

This release fixes the CDM certificate renewal process to ensure that the system automatically rolls out the certificate to all CDM nodes.

### Fixed node registration script permissions

The node registration script failed due to incorrect permissions, and not every command ran with sudo. This release fixes the script permissions and ensures that the script runs every command with sudo.

### Fixed the issue with Core Cluster creation due to a failing API server

This release fixes an issue during initial Core Cluster creation caused by a failing API server.

## Security

This release addresses 201 confirmed CVEs across image and dependency upgrades (5 Critical, 40 High, 106 Medium, 46 Low). The table below lists Critical and High severity CVEs.

| CVE | Severity | Description |
|---|---|---|
| CVE-2025-68121 | Critical | `crypto/tls`: TLS session resumption authentication bypass |
| CVE-2025-15467 | Critical | `openssl`: remote code execution or denial of service via oversized Initialization Vector in CMS parsing |
| CVE-2024-45337 | Critical | `golang.org/x/crypto/ssh`: authorization bypass via misuse of `ServerConfig.PublicKeyCallback` |
| CVE-2024-24790 | Critical | `golang net/netip`: unexpected behavior from `Is` methods for IPv4-mapped IPv6 addresses |
| CVE-2023-45853 | Critical | `zlib`: integer overflow and heap-based buffer overflow in `zipOpenNewFileInZip4_6` |
| CVE-2026-24051 | High | `opentelemetry-go`: arbitrary code execution via PATH hijacking |
| CVE-2026-0861 | High | `glibc`: integer overflow in `memalign` leads to heap corruption |
| CVE-2025-69421 | High | `openssl`: denial of service via malformed PKCS#12 file |
| CVE-2025-69419 | High | `openssl`: arbitrary code execution via out-of-bounds write in PKCS#12 processing |
| CVE-2025-68973 | High | `gnupg`: information disclosure and potential arbitrary code execution via out-of-bounds write |
| CVE-2025-66564 | High | `sigstore/timestamp-authority`: denial of service via excessive OID or Content-Type header parsing |
| CVE-2025-61730 | High | `crypto/tls`: TLS 1.3 handshake messages processed at wrong encryption level |
| CVE-2025-61729 | High | `crypto/x509`: denial of service via excessive resource consumption with crafted certificate |
| CVE-2025-61728 | High | `archive/zip`: excessive CPU consumption when building archive index |
| CVE-2025-61726 | High | `net/url`: memory exhaustion in query parameter parsing |
| CVE-2025-6020 | High | `linux-pam`: directory traversal vulnerability |
| CVE-2025-58183 | High | `archive/tar`: unbounded memory allocation when parsing GNU sparse map |
| CVE-2025-53547 | High | `helm.sh/helm/v3`: Helm chart code execution |
| CVE-2025-52881 | High | `runc/opencontainers-selinux`: container escape and denial of service via arbitrary write |
| CVE-2025-48385 | High | `git`: arbitrary file writes |
| CVE-2025-48384 | High | `git`: arbitrary code execution |
| CVE-2025-47907 | High | `database/sql`: Postgres scan race condition |
| CVE-2025-46334 | High | `git-gui`: arbitrary code execution via malicious repository |
| CVE-2025-4802 | High | `glibc`: static setuid binary `dlopen` may incorrectly search `LD_LIBRARY_PATH` |
| CVE-2025-32990 | High | `gnutls`: vulnerability in `certtool` template parsing |
| CVE-2025-32988 | High | `gnutls`: vulnerability in `otherName` SAN export |
| CVE-2025-31498 | High | `c-ares`: use-after-free in `read_answers()` |
| CVE-2025-31115 | High | `xz`: heap-use-after-free in threaded `.xz` decoder |
| CVE-2025-30204 | High | `golang-jwt/jwt`: excessive memory allocation during JWT header parsing |
| CVE-2025-26519 | High | `musl libc`: out-of-bounds write vulnerability |
| CVE-2025-22869 | High | `golang.org/x/crypto/ssh`: denial of service via slow key exchange |
| CVE-2025-22868 | High | `golang.org/x/oauth2/jws`: unexpected memory consumption during token parsing |
| CVE-2024-8176 | High | `libexpat`: improper restriction of XML entity expansion depth |
| CVE-2024-56406 | High | `perl`: heap buffer overflow when transliterating non-ASCII bytes |
| CVE-2024-34156 | High | `encoding/gob`: panic via deeply nested structures in `Decoder.Decode` |
| CVE-2024-33599 | High | `glibc`: stack-based buffer overflow in netgroup cache |
| CVE-2024-2961 | High | `glibc`: out-of-bounds write in `iconv` may lead to remote code execution |
| CVE-2024-25621 | High | `containerd`: local privilege escalation |
| CVE-2024-12797 | High | `openssl`: RFC7250 handshakes with unauthenticated servers don't abort as expected |
| CVE-2023-50868 | High | `bind9`: preparing an NSEC3 closest encloser proof can exhaust CPU resources |
| CVE-2023-50387 | High | `bind9`: KeyTrap — extreme CPU consumption in DNSSEC validator |
| CVE-2023-45288 | High | `golang net/http, x/net/http2`: unlimited number of CONTINUATION frames causes DoS |
| CVE-2023-45283 | High | `golang filepath`: paths with `\??\` prefix not recognized on Windows |
| CVE-2023-31484 | High | `perl`: CPAN.pm does not verify TLS certificates when downloading distributions over HTTPS |
| CVE-2011-10007 | High | `perl-file-find-rule`: arbitrary code execution via `File::Find::Rule` |

## Deprecations

### Crossplane deployment on Core Cluster

The Crossplane deployment on the Core Cluster is deprecated and will be removed in a future release as it is not used by Cennso.

### CDM secrets deprecation

The following CDM Manager secrets are now deprecated and should not be used:

- `acc-blue`
- `cdm-node-blue`
- `cdm-node-grey`
- `fpp-grey`
- `upg-grey`
- `netcap-collector-grey`
- `netcap-collector-blue`
- `netcap-sink-grey`
- `netcap-sink-blue`

These secrets will be removed from the CennsoDeployment composition, as they are either unused or were only required by cdm-node, which will also be removed.

To create new OAM CDM credentials, use One Time Token functionality from CDM extension instead.

The following secrets remain supported:

- `acc-grey`
- `cdm-operator`
- `cdm-operator-sys`
- `cdm-operator-sys-user`
- `cennso-agent-grey`
- `siteapi-grey`

### CDM-node Removal

The `cdm-node` Helm Release will be removed from the CennsoDeployment composition. `cdm-node` will no longer be deployed as part of CennsoDeployment. Use Mesh resource from CDM Extension instead.

---
title: "2.10.3"
description: "Release date: 2026-03-12. Cennso 2.10.3 introduces configurable Cennso Telemetry Agent (CTA) secret references in CennsoDeployment."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.10.3"
---

# Cennso 2.10.3

**Release date:** 2026-03-12

Cennso 2.10.3 introduces configurable Cennso Telemetry Agent (CTA) secret references in `CennsoDeployment`.

## Features

### Configurable CTA secret reference in `CennsoDeployment`

The `CennsoDeployment` composition now supports overriding the Secret used for CTA configuration through the **ctaConfigurationSecretRef** field. This feature enables [configuring mixed network connectivity between clusters](https://docs.cennso.com/cennso/cennso/latest/user-guides/mixed-network-connectivity.md).

Previously, the MIMIR endpoint and CDM Node endpoint were read from a hardcoded `agent-configuration` Secret in the `cennso-system` namespace. The defaults remain unchanged for backward compatibility.

---
title: "2.10.2"
description: "Release date: 2025-12-15. Cennso 2.10.2 introduces enhancements to provider configuration flexibility and Helm release naming, as well as simplifies Package definitions."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.10.2"
---

# Cennso 2.10.2

**Release date:** 2025-12-15

Cennso 2.10.2 introduces enhancements to provider configuration flexibility and Helm release naming, as well as simplifies Package definitions.

## Features

### Overriding ProviderConfig kind in defaultProviderConfig

This release introduces a new optional **kind** field to the **DefaultProviderConfig** parameter that allows overriding the **ProviderConfig** kind. The new **kind** defaults to `ProviderConfig` for backward compatibility. This enables more flexibility when configuring different types of provider configurations.

### ClusterInstallation name included in Helm release name

Helm release names now include the **ClusterInstallation** name as a prefix (format: `<clusterinstallation-name>-<source-name>`). This prevents naming collisions when multiple **ClusterInstallations** deploy the same package source.

### packageSource.HelmReleaseProperties becomes optional

The **HelmReleaseProperties** field in the **PackageSource** parameter is no longer required. When not provided, an empty **HelmReleaseProperties** object is used as a default. This simplifies Package definitions when default Helm release settings are acceptable.

## Fixes

### Fixed Package CRD printing columns

Fixed the printing columns in the `Package` CRD for an improved `kubectl get` output.

---
title: "2.10.1"
description: "Release date: 2025-12-10. Cennso 2.10.1 release addresses the issue with handling Extension Provider Helm Releases."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.10.1"
---

# Cennso 2.10.1

**Release date:** 2025-12-10

Cennso 2.10.1 release addresses the issue with handling Extension Provider Helm Releases.

## Fixes

### Fix Extension Provider Helm Releases handling

Previously, Extension Provider mishandled Helm Release sources installed on Core Clusters, leading to failures during installations and upgrades. This release resolves the issue by ensuring that Helm Releases are correctly identified and managed, preventing any upgrade failures.

---
title: "2.10.0"
description: "Release date: 2025-11-19. Cennso 2.10 focuses mainly on a new architecture, that puts more focus to modularisation, and a new installation procedure."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.10.0"
---

# Cennso 2.10.0

**Release date:** 2025-11-19

Cennso 2.10 focuses mainly on a new architecture, that puts more focus to modularisation, and a new installation procedure.

## Features

### New installation procedure and Cennso modularisation

This release introduces a new installation procedure which follows the Cennso modularisation strategy and improves the installation progress indicator. You can monitor the installation progress in Cennso Cloud with step-by-step visualisation.

![Cennso installation progress visualisation](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/release-2.10/cennso-cloud-installation-progress.png)

Also, this release separates Cennso Management Console and Cennso Data Mesh from the Cennso extension package, which allows you to have more granular control over the upgrade process.

Read the [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.9_to_2.10.md) for more details on how to migrate to the new Cennso version and modules.

### New extension management

One of the major improvements in this release is the new manner of extension management. It introduces a new `ClusterInstallations.extension.cennso.com` CRD which improves the overview of the package installation with the status of all sources in the package. Also, it configures proper ownership of the created underlying resources so you can check all the created resources with the `kubectl tree clusterinstallations.extension.cennso.com {name} -A` command.

Together with the new extension management, we also introduce the new visualisation of packages in Cennso Management Console.

![New packages view](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/release-2.10/view-packages.png)

With the introduction of `ClusterInstallations.extension.cennso.com` CRD, the `Installations.extension.cennso.com` CRD is deprecated. Read [the deprecation](#deprecation-of-installationsextensioncennsocom-crd) section for more details.

### Migration to Crossplane 2

This release upgrades the Crossplane installation to version 2 which introduces multiple improvements, such as the ability to directly use Custom Resources in compositions without `Objects.kubernetes.crossplane.io` CRDs.

### Upgrade of OpenTofu provider

With this release, we upgraded the built-in OpenTofu provider to version 1.0.1. This introduces a namespace-scope `Workspaces.opentofu.m.upbound.io` CRD which allows you to isolate your instances in a namespace.

### Support for Cennso upgrade from Cennso Management Console

Starting with this release, you can upgrade Cennso from CMC just like you upgrade any other extension. It also allows you to reconfigure your Cennso instance.

![Cennso upgrade from UI](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/release-2.10/view-cennso-2.10-upgrade.png)

### Introduction of a new Cert Manager contrib package

With this release we introduced a new Cert Manager contrib package which allows you to easily install Cert Manager on the Management Cluster. With new installations, it is installed by default.

Read the [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.9_to_2.10.md) for more details on how to migrate your existing Cert Manager installations to the new package.

## Deprecations

### Deprecation of `installations.extension.cennso.com` CRD

This release deprecates the `installations.extension.cennso.com` CRD in favour of the new `clusterinstallations.extension.cennso.com` CRD.

Read the [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.9_to_2.10.md) for more details on how to migrate your existing installations to the new CRD.

## Fixes

### Built-in dashboards showing error about unknown `DS_METRICS` datasource

The built-in dashboards were showing an error about an unknown `DS_METRICS` datasource. This issue was fixed in this release and dashboards should show metrics again.

### Not possible to configure authentication for Cennso Management Console

Due to a bug in Grafana, it was not possible to configure authentication for Cennso Management Console (CMC). In this release, we fixed the issue and you can now configure authentication in the CMC UI.

## Known issues

### Kubelet fails to recover after node reboot

When you reboot a node, you might experience that kubelet does not come up afterwards and the Node resource remains `NotReady`. The cause might be some stale state files for the static CPU and memory manager policies. To spawn the node, delete the old state files:

```bash
rm /var/lib/k0s/kubelet/cpu_manager_state /var/lib/k0s/kubelet/memory_manager_state
```

### Not possible to define registry for some OCI artefacts

For the following OCI artefacts, it is not possible to configure a registry:

- k0sproject/k0s:v1.33.4-k0s.0
- registry.cennso.com/public/bitnami/multus-cni:4.1.0-debian-12-r1
- registry.cennso.com/public/jetstack/cert-manager-cainjector:v1.15.1
- registry.cennso.com/public/jetstack/cert-manager-controller:v1.15.1
- registry.cennso.com/public/jetstack/cert-manager-webhook:v1.15.1
- quay.io/k0sproject/apiserver-network-proxy-agent:v0.30.3
- quay.io/k0sproject/calico-cni:v3.27.3-0
- quay.io/k0sproject/calico-kube-controllers:v3.27.3-0
- quay.io/k0sproject/calico-node:v3.27.3-0
- quay.io/k0sproject/coredns:1.11.3
- quay.io/k0sproject/etcd:v3.5.13
- quay.io/k0sproject/kube-proxy:v1.30.4
- quay.io/k0sproject/metrics-server:v0.7.1-0
- quay.io/k0sproject/prometheus:v2.44.0

We are actively working on addressing this limitation in future releases.

---
title: "2.9.0"
description: "Release date: 2025-10-16. Cennso 2.9.0 improves configuration management and the security of Core Clusters connections."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.9.0"
---

# Cennso 2.9.0

**Release date:** 2025-10-16

Cennso 2.9.0 improves configuration management and the security of Core Clusters connections.

>**IMPORTANT:** Cennso 2.9.0 requires cert-manager to be installed in the Management Cluster.

## Features

### Enabled WireGuard for Core Clusters by default

Starting from this release, WireGuard is enabled by default for Core Clusters, which secures the communication between Core Clusters nodes.

### Enabled dynamic generation of CDM credentials per Core Cluster

This release improves the security of Core Clusters connection to the Management Cluster. Now, CDM credentials are generated dynamically per Core Cluster during cluster creation.

### Added RBAC support for Cennso Extensions packages definition

To simplify the process of creating RBAC rules for Cennso Extensions packages, we added support for RBAC rules definition in the Package definition.

### Added support for default values in Cennso Extensions packages definition

Now, you can define default values for Cennso Extensions packages in the YAML format, not only as value sets, which simplifies the definition.

### Introduced NOP Provider

This release introduces a new NOP Provider, which can be used to create conditional sequences in compositions.

### Dedicated All resources view per Core Cluster in CMC

The **Resources** view has been renamed to **All resources** and separated into Core Cluster and Management Cluster. To see resources in a Core Cluster, go to the Core Cluster details page and select the **All resources** tab.

### Hid managed fields in manifest view in CMC

This release improves the rendering of resource manifests in CMC. By default, the **managedFields** parameter is hidden in the manifest view, which makes it easier to read the resource definition.

### Supported union/oneOf in custom forms in CMC

With this release, Cennso Management Console is now able to render `union`/`oneOf` field types in the custom forms.

### Showed error details during resource management in CMC

With this release, CMC is able to show error details when a resource cannot be edited or deleted.

### Updated to Grafana 12

This release updated the Grafana version used by CMC to version 12. This added new features and improved the user experience.

### Added support for CMC branding

You can now brand Cennso Management Console with a custom logo and icon.

### Updated Kubernetes on Core Clusters to version 1.33.4

This release updated the Kubernetes version on Core Clusters to 1.33.4.

## Fixes

### Cennso Agent configuration not documented

The Cennso Agent configuration was not documented, and it was not communicated how to configure it. The issue has been fixed by generating the Cennso Agent configuration based on the Monitoring specification and its connection details, and the CDM configuration, which can be managed in CMC and through CLI.

### It is not possible to open CMC in an organisation different from Main

When opening CMC in an organisation other than Main, CMC showed an error. We limited the rendering of the CMC left navigation to the Main organisation only.

### Lack of Management Cluster metrics in CMC

The monitoring large profile was missing a metrics collector for Management Cluster. This has been fixed, and now you can have a Management Cluster overview in CMC and see metrics.

### CDM nodes name collision across Core Clusters

The CDM nodes deployed on Core Clusters had the same name, which caused issues with the CDM communication. This has been fixed, and now the CDM nodes in Core Clusters have unique names.

## Known issues

### Not possible to define registry for some OCI artefacts

For the following OCI artefacts, it is not possible to configure a registry:

- k0sproject/k0s:v1.33.4-k0s.0
- registry.cennso.com/public/bitnami/multus-cni:4.1.0-debian-12-r1
- registry.cennso.com/public/jetstack/cert-manager-cainjector:v1.15.1
- registry.cennso.com/public/jetstack/cert-manager-controller:v1.15.1
- registry.cennso.com/public/jetstack/cert-manager-webhook:v1.15.1
- quay.io/k0sproject/apiserver-network-proxy-agent:v0.30.3
- quay.io/k0sproject/calico-cni:v3.27.3-0
- quay.io/k0sproject/calico-kube-controllers:v3.27.3-0
- quay.io/k0sproject/calico-node:v3.27.3-0
- quay.io/k0sproject/coredns:1.11.3
- quay.io/k0sproject/etcd:v3.5.13
- quay.io/k0sproject/kube-proxy:v1.30.4
- quay.io/k0sproject/metrics-server:v0.7.1-0
- quay.io/k0sproject/prometheus:v2.44.0

We are actively working on addressing this limitation in future releases.

### VFIO issues with kernel versions `6.8.0-64-generic` and later

We have observed that VFIO devices do not function correctly on kernel versions `6.8.0-64-generic` and later.

Error logs indicate issues such as failed VFIO device initialisation and the inability to install a memory event callback, which prevent proper allocation of VFIO resources. Applications that depend on VFIO and DPDK, such as Cennso Data Plane components like Fast Path Provider and User Plane Gateway, may crash or fail to start.

For more information on the supported kernel versions, read the [Kernel version and modules](https://docs.cennso.com/travelping/cennso/2.9/usage/network-topology/requirements.md#kernel-version-and-modules) section in Cennso requirements.

---
title: "2.8.3"
description: "Release date: 2025-09-30. Cennso 2.8.3 fixes the issue of Core Clusters not starting due to missing OCI artefacts."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.8.3"
---

# Cennso 2.8.3

**Release date:** 2025-09-30

Cennso 2.8.3 fixes the issue of Core Clusters not starting due to missing OCI artefacts.

## Fixes

### Solved issue with missing OCI artefacts that prevented Core Clusters from starting

In the previous versions, Core Clusters failed to start after OCI artefacts were removed from Docker Hub. To fix this, we added the missing OCI artefacts back to the Cennso registry and updated the Core Cluster manifests to use them.

## Known issues

### Not possible to define registry for some OCI artefacts

For the following OCI artefacts, it is not possible to configure a registry:

- k0sproject/k0s:v1.30.4-k0s.0
- registry.cennso.com/public/bitnami/multus-cni:4.1.0-debian-12-r1
- registry.cennso.com/public/jetstack/cert-manager-cainjector:v1.15.1
- registry.cennso.com/public/jetstack/cert-manager-controller:v1.15.1
- registry.cennso.com/public/jetstack/cert-manager-webhook:v1.15.1
- quay.io/k0sproject/apiserver-network-proxy-agent:v0.30.3
- quay.io/k0sproject/calico-cni:v3.27.3-0
- quay.io/k0sproject/calico-kube-controllers:v3.27.3-0
- quay.io/k0sproject/calico-node:v3.27.3-0
- quay.io/k0sproject/coredns:1.11.3
- quay.io/k0sproject/etcd:v3.5.13
- quay.io/k0sproject/kube-proxy:v1.30.4
- quay.io/k0sproject/metrics-server:v0.7.1-0
- quay.io/k0sproject/prometheus:v2.44.0

We are actively working on addressing this limitation in future releases.

### VFIO issues with kernel versions `6.8.0-64-generic` and later

We have observed that VFIO devices do not function correctly on kernel versions `6.8.0-64-generic` and later.

Error logs indicate issues such as failed VFIO device initialisation and the inability to install a memory event callback, which prevent proper allocation of VFIO resources. Applications that depend on VFIO and DPDK, such as Cennso Data Plane components like Fast Path Provider and User Plane Gateway, may crash or fail to start.

For more information on the supported kernel versions, read the [Kernel version and modules](https://docs.cennso.com/travelping/cennso/2.8/usage/network-topology/requirements.md#kernel-version-and-modules) section in Cennso requirements.

---
title: "2.8.2"
description: "Release date: 2025-07-24. The Cennso 2.8.2 release resolves issues with workload restarts when a Core Cluster node temporarily loses connection to the Management Cluster API server."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.8.2"
---

# Cennso 2.8.2

**Release date:** 2025-07-24

The Cennso 2.8.2 release resolves issues with workload restarts when a Core Cluster node temporarily loses connection to the Management Cluster API server.

## Fixes

### Improved toleration timeout for unreachable nodes

Previously, when a Core Cluster node lost connection to the Management Cluster for more than five minutes, pods running on that node were rescheduled. This behaviour could disrupt running network functions as they were forcibly moved to other nodes.

This release increases the default toleration timeout to one hour, reducing unnecessary rescheduling. The timeout value is configurable per Core Cluster in the `spec.clusterController.apiServerConfig` section.

>**CAUTION**: To make this fix effective, you need to reschedule pods on the Core Cluster after the upgrade.

## Known issues

### Not possible to define registry for some OCI artefacts

For the following OCI artefacts, it is not possible to configure a registry:

- docker.io/bitnami/multus-cni:4.1.0-debian-12-r1
- k0sproject/k0s:v1.30.4-k0s.0
- quay.io/jetstack/cert-manager-cainjector:v1.15.1
- quay.io/jetstack/cert-manager-controller:v1.15.1
- quay.io/jetstack/cert-manager-webhook:v1.15.1
- quay.io/k0sproject/apiserver-network-proxy-agent:v0.30.3
- quay.io/k0sproject/calico-cni:v3.27.3-0
- quay.io/k0sproject/calico-kube-controllers:v3.27.3-0
- quay.io/k0sproject/calico-node:v3.27.3-0
- quay.io/k0sproject/coredns:1.11.3
- quay.io/k0sproject/etcd:v3.5.13
- quay.io/k0sproject/kube-proxy:v1.30.4
- quay.io/k0sproject/metrics-server:v0.7.1-0
- quay.io/k0sproject/prometheus:v2.44.0

We are actively working on addressing this limitation in future releases.

### VFIO issues with kernel versions `6.8.0-64-generic` and later

We have observed that VFIO devices do not function correctly on kernel versions `6.8.0-64-generic` and later.

Error logs indicate issues such as failed VFIO device initialisation and the inability to install a memory event callback, which prevent proper allocation of VFIO resources. Applications that depend on VFIO and DPDK, such as Cennso Data Plane components like Fast Path Provider and User Plane Gateway, may crash or fail to start.

For more information on the supported kernel versions, read the [Kernel version and modules](https://docs.cennso.com/travelping/cennso/2.8/usage/network-topology/requirements.md#kernel-version-and-modules) section in Cennso requirements.

---
title: "2.8.1"
description: "Release date: 2025-07-14. The Cennso 2.8.1 release addresses monitoring-related issues and improves the configuration handling for the Cennso Agent."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.8.1"
---

# Cennso 2.8.1

**Release date:** 2025-07-14

The Cennso 2.8.1 release addresses monitoring-related issues and improves the configuration handling for the Cennso Agent.

## Fixes

### Fix Alertmanager configuration handling

Previously, it was not possible to reconfigure Alertmanager if its configuration had been modified via Grafana, as Cennso stopped applying the declarative configuration. This release ensures that the configuration defined in the Monitoring Custom Resource or provided via a referenced secret is enforced consistently.

### Fix Mimir chart repository

The Mimir Distributed chart was previously pulled from a public community repository, ignoring the configured Cennso registry. This issue has been resolved — Cennso now pulls the chart from the configured registry, consistent with other components.

## Known issues

### It is not possible to define a registry for some OCI artefacts

For the following OCI artefacts, it is not possible to configure a registry:

- docker.io/bitnami/multus-cni:4.1.0-debian-12-r1
- k0sproject/k0s:v1.30.4-k0s.0
- quay.io/jetstack/cert-manager-cainjector:v1.15.1
- quay.io/jetstack/cert-manager-controller:v1.15.1
- quay.io/jetstack/cert-manager-webhook:v1.15.1
- quay.io/k0sproject/apiserver-network-proxy-agent:v0.30.3
- quay.io/k0sproject/calico-cni:v3.27.3-0
- quay.io/k0sproject/calico-kube-controllers:v3.27.3-0
- quay.io/k0sproject/calico-node:v3.27.3-0
- quay.io/k0sproject/coredns:1.11.3
- quay.io/k0sproject/etcd:v3.5.13
- quay.io/k0sproject/kube-proxy:v1.30.4
- quay.io/k0sproject/metrics-server:v0.7.1-0
- quay.io/k0sproject/prometheus:v2.44.0

We are actively working on addressing this limitation in future releases.

---
title: "2.8.0"
description: "Release date: 2025-07-04. The Cennso 2.8.0 release focuses on enhancements to extension package delivery and improvements in monitoring capabilities."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.8.0"
---

# Cennso 2.8.0

**Release date:** 2025-07-04

The Cennso 2.8.0 release focuses on enhancements to extension package delivery and improvements in monitoring capabilities.

## Features

### Automatic propagation of extension packages from Cennso Cloud to Management Clusters

This release significantly improves the process of delivering extension packages to Management Clusters. The procedure is now automated—any Management Cluster connected to the Cennso Cloud will automatically receive information about new extension packages and available Cennso versions.

### Configurable telemetry data retention

The configuration of data retention for telemetry storage has been simplified. Previously, this required manual tuning of underlying components. Now, you can set retention policies directly within the Monitoring Custom Resource and the Cennso Management Console.

### Global configuration of telemetry storage class

You can now define the storage class for telemetry components globally within the Monitoring Custom Resource. This replaces the previous approach that required individual overrides for each component.

### S3 credentials configuration in monitoring (large profile)

It is now possible to configure S3 credentials and bucket settings directly in the Monitoring Custom Resource and via the Cennso Management Console. You can also reference an existing Kubernetes secret that contains these credentials.

### Alertmanager support for monitoring

This release introduces full support for deploying and configuring Alertmanager. Configuration options are available in the Monitoring Custom Resource and the Cennso Management Console, including the ability to provide custom configurations or reference an existing secret.

### Cluster-scoped "All Resources" view

The "All Resources" view has been updated to reflect cluster context. In the left navigation pane, this view shows resources from the Management Cluster. In the Core Cluster details, the same view now displays only resources from the selected Core Cluster.

## Known issues

### It is not possible to define a registry for some OCI artefacts

For the following OCI artefacts, it is not possible to configure a registry:

- docker.io/bitnami/multus-cni:4.1.0-debian-12-r1
- k0sproject/k0s:v1.30.4-k0s.0
- quay.io/jetstack/cert-manager-cainjector:v1.15.1
- quay.io/jetstack/cert-manager-controller:v1.15.1
- quay.io/jetstack/cert-manager-webhook:v1.15.1
- quay.io/k0sproject/apiserver-network-proxy-agent:v0.30.3
- quay.io/k0sproject/calico-cni:v3.27.3-0
- quay.io/k0sproject/calico-kube-controllers:v3.27.3-0
- quay.io/k0sproject/calico-node:v3.27.3-0
- quay.io/k0sproject/coredns:1.11.3
- quay.io/k0sproject/etcd:v3.5.13
- quay.io/k0sproject/kube-proxy:v1.30.4
- quay.io/k0sproject/metrics-server:v0.7.1-0
- quay.io/k0sproject/prometheus:v2.44.0

---
title: "2.7.1"
description: "Make sure Cennso 2.7.0 is installed before upgrading to this version."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.7.1"
---

# Cennso 2.7.1

**Release date:** 2025-06-25

> **CAUTION:** Make sure Cennso 2.7.0 is installed before upgrading to this version.

## Fixes

### Compositions sometimes hang even if underlying resources are ready

It happens that compositions hang with a false state when underlying resources are ready. This release improves the situation and improves the detection of the composition ready state.

### It was not possible to define a registry for functions OCI artefacts

It was not possible to define the registry domain and project for functions OCI artefacts. This release adds the ability to configure it for the following containers:

- registry.cennso.com/public/crossplane/function-auto-ready:v0.3.0
- registry.cennso.com/public/crossplane/function-cel-filter:v0.1.1
- registry.cennso.com/public/crossplane/function-go-templating:v0.8.0
- registry.cennso.com/public/crossplane/function-patch-and-transform:v0.7.0
- registry.cennso.com/public/crossplane/function-sequencer:v0.2.2
- registry.cennso.com/public/crossplane/function-status-transformer:v0.4.0
- registry.cennso.com/public/crossplane/provider-helm:v0.20.4
- registry.cennso.com/public/crossplane/provider-kubernetes:v0.16.3
- registry.k8s.io/pause:3.9

## Experimental

### Introduction of OpenTofu provider

This release introduces experimental support for OpenTofu provider. It can be used as a replacement for Terraform provider in compositions.

## Known issues

### It is not possible to define a registry for some OCI artefacts

For the following OCI artifacts, it is not possible to configure a registry:

- docker.io/bitnami/multus-cni:4.1.0-debian-12-r1
- k0sproject/k0s:v1.30.4-k0s.0
- quay.io/jetstack/cert-manager-cainjector:v1.15.1
- quay.io/jetstack/cert-manager-controller:v1.15.1
- quay.io/jetstack/cert-manager-webhook:v1.15.1
- quay.io/k0sproject/apiserver-network-proxy-agent:v0.30.3
- quay.io/k0sproject/calico-cni:v3.27.3-0
- quay.io/k0sproject/calico-kube-controllers:v3.27.3-0
- quay.io/k0sproject/calico-node:v3.27.3-0
- quay.io/k0sproject/coredns:1.11.3
- quay.io/k0sproject/etcd:v3.5.13
- quay.io/k0sproject/kube-proxy:v1.30.4
- quay.io/k0sproject/metrics-server:v0.7.1-0
- quay.io/k0sproject/prometheus:v2.44.0

---
title: "2.7.0"
description: "Release date: 2025-06-23. The Cennso 2.7.0 release introduces significant improvements to security, high availability, and platform architecture, along with important bug fixes and performance enhancements."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.7.0"
---

# Cennso 2.7.0

**Release date:** 2025-06-23

The Cennso 2.7.0 release introduces significant improvements to security, high availability, and platform architecture, along with important bug fixes and performance enhancements.

## Features

### Global registry configuration

You can now configure not only credentials for the Cennso registry but also specify the source locations for artefact retrieval. This enhancement provides greater control over OCI container sources, significantly improving security posture.

**Migration Required:** This feature requires updating existing registry credentials. Please refer to the migration guide for detailed instructions on adjusting your registry configuration.

### Enhanced Management Cluster and Core Cluster communication

The updated Cennso Data Mesh (CDM) architecture delivers improved security and communication between Management Clusters and Core Clusters. Platform communication is now separated from application layers, enabling better data isolation and independent configuration management for application-specific requirements.

**Migration Required:** This architectural change requires manual intervention during the Cennso upgrade process. Please follow the migration guide to ensure a successful upgrade of your Cennso instance.

### High Availability Support for Core Cluster API Endpoints

This release adds support for multiple cluster API endpoints, enabling more resilient and robust configurations through zone distribution. Additionally, you can now provide cluster API connectivity across multiple networks for enhanced availability.

**Migration Required:** Manual actions are required during the Core Cluster upgrade process. Please consult the migration guide for proper upgrade procedures for your Core Cluster instances.

### Default Provider Config Support in extensions

Extensions can now include the default Provider Config during installation. To enable this functionality, add the `providerProperties.defaultProviderConfig` object to your package source definition.

## Fixes

### Cennso Management Console not visible for non-admin users

Resolved an issue where the Cennso Management Console was only visible to Grafana administrators. The CMC is now properly accessible to users with appropriate permissions without compromising Grafana security settings.

### Core Cluster all resources view not visible for non-default namespaces

Resolved an issue where the "All resources" view was missing for Core Clusters created in non-default namespaces.

### Cennso Management Console performance improvements

Enhanced performance of the Cennso Management Console for better user experience and responsiveness.

### Cennso Agent release stuck during the Core Cluster basic creation

In previous releases, the Cennso Agent release could get stuck during Core Cluster creation, preventing the process from completing. It mainly occurred when the first node was attached to the Core Cluster after a long time. This release introduces a pre-check to verify that at least one node is attached to the Core Cluster before installing the Cennso Agent chart on the Core Cluster, which prevents the issue.

## Known issues

### It is not possible to define a registry for some OCI artefacts

For the following OCI artifacts, it is not possible to configure a registry:

- docker.io/bitnami/multus-cni:4.1.0-debian-12-r1
- k0sproject/k0s:v1.30.4-k0s.0
- quay.io/jetstack/cert-manager-cainjector:v1.15.1
- quay.io/jetstack/cert-manager-controller:v1.15.1
- quay.io/jetstack/cert-manager-webhook:v1.15.1
- quay.io/k0sproject/apiserver-network-proxy-agent:v0.30.3
- quay.io/k0sproject/calico-cni:v3.27.3-0
- quay.io/k0sproject/calico-kube-controllers:v3.27.3-0
- quay.io/k0sproject/calico-node:v3.27.3-0
- quay.io/k0sproject/coredns:1.11.3
- quay.io/k0sproject/etcd:v3.5.13
- quay.io/k0sproject/kube-proxy:v1.30.4
- quay.io/k0sproject/metrics-server:v0.7.1-0
- quay.io/k0sproject/prometheus:v2.44.0
- registry.cennso.com/public/crossplane/function-auto-ready:v0.3.0
- registry.cennso.com/public/crossplane/function-cel-filter:v0.1.1
- registry.cennso.com/public/crossplane/function-go-templating:v0.8.0
- registry.cennso.com/public/crossplane/function-patch-and-transform:v0.7.0
- registry.cennso.com/public/crossplane/function-sequencer:v0.2.2
- registry.cennso.com/public/crossplane/function-status-transformer:v0.4.0
- registry.cennso.com/public/crossplane/provider-helm:v0.20.4
- registry.cennso.com/public/crossplane/provider-kubernetes:v0.16.3
- registry.k8s.io/pause:3.9

---
title: "2.6.2"
description: "Release date: 2025-05-16. The Cennso 2.6.2 release fixes issues related to updating and deleting Cennso packages through the Cennso Management Console (CMC) UI."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.6.2"
---

# Cennso 2.6.2

**Release date:** 2025-05-16

The Cennso 2.6.2 release fixes issues related to updating and deleting Cennso packages through the Cennso Management Console (CMC) UI.

## Fixes

### Cennso package updates and deletions disabled in CMC UI

As the Cennso upgrade is not yet supported in the Cennso Management Console, we disabled the update and delete buttons to protect users from breaking the Management Cluster. To upgrade Cennso, follow the [Upgrade Cennso](https://docs.cennso.com/cennso/cennso/latest/user-guides/upgrade-cennso.md) document.

## Known issues

### `All Resources` view in CMC missing for Core Clusters in namespaces other than `cennso-infra`

In the `All Resources` view, users can see all resources in a given cluster (both Core Clusters and the Management Cluster). While Core Cluster creation is now supported in any namespace within the Management Cluster in CMC, the `All Resources` view currently does not support listing resources for Core Clusters created in namespaces other than `cennso-infra`.

---
title: "2.6.1"
description: "Release date: 2025-05-15. The Cennso 2.6.1 release fixes issues with Crossplane fields being deleted during resource updates and corrects form and metadata rendering in the CMC wizard catalog."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.6.1"
---

# Cennso 2.6.1

**Release date:** 2025-05-15

The Cennso 2.6.1 release fixes issues with Crossplane fields being deleted during resource updates and corrects form and metadata rendering in the CMC wizard catalog. It also adds support for configuring resource limits and etcd storage in Cluster Controllers. Due to current limitations, the Cennso Package cannot be updated via the CMC UI and must be managed through the CLI.

## Fixes

### Fixed losing resource references when updating via Cennso Management Console

This release fixes an issue with losing resource references when updating configuration via the Cennso Management Console. The issues lead to duplicated resources on the cluster and conflicts.

### Fixed rendering of the form and metadata in the wizard catalog in CMC

An incorrect correlation check between `CustomResourceDefinition` and `CompositeResourceDefinition` led to incorrect rendering of the form and metadata in the wizard catalogue in CMC. The issue is now resolved. This release solves that issue and renders the form from the selected composition in resource details.

### Fixed resource allocations and limits for Core Clusters control plane components

With this patch release, the API server of Core Clusters has the allocated resources, which solves the problem of assigning a pod to a full node in the Management Cluster when the Core Cluster is created. Also, it is possible to adjust the resources with the Core Cluster resource.

## Known issues

### Cennso package cannot be updated using CMC UI

Due to the introduced limits on Package forms, the user is not able to delete or edit the Cennso Package from CMC. Cennso Package should be updated using CLI as documented.

---
title: "2.6.0"
description: "Release date: 2025-05-09. The Cennso 2.6 release introduces customization options for rendering resources in Cennso Management Console (CMC), new dashboards for monitoring infrastructure, and the ability to set custom resource requirements for Cennso Telemetry Agent."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.6"
---

# Cennso 2.6

**Release date:** 2025-05-09

The Cennso 2.6 release introduces customization options for rendering resources in Cennso Management Console (CMC), new dashboards for monitoring infrastructure, and the ability to set custom resource requirements for Cennso Telemetry Agent. It also fixes issues with the Connectivity Gateway dashboard and the default pull secret in CMC.

## Features

### Support for rendering additional resources in Cennso Management Console

You can now render additional or custom resources in Cennso Management Console. This enhancement allows you to see new resource types when extending Cennso. Currently, two resource types are supported: `configuration` and `network-application`.

### Support for custom forms in Cennso Management Console

Previously, it was not possible to control the layout of forms used for creating and updating resources. With this release, you can customize these forms using the `extension.cennso.com/form` annotation. You can apply this annotation at the Custom Resource Definition or Composition level, allowing full control over the user interface.

### Introduction of monitoring infrastructure dashboards

To improve observability, new infrastructure monitoring dashboards are introduced. When configuring Monitoring, you will now see dashboards that provide an overview of the monitoring infrastructure.

### Resource configuration for Cennso Telemetry Agents

It is now possible to configure resource requirements for Cennso Telemetry Agents. Previously, these agents used static resource values when deployed to Management and Core Clusters. With this release, you can fine-tune their resource settings to meet your specific needs.

## Fixes

### Corrected default pull secret in the Cennso Management Console

The default pull secret for resources created through CMC is fixed. It now correctly references the secret propagated from the Management Cluster to the Core Clusters, based on the registry configuration.

### Fixed missing values in Connectivity Gateway dashboards

An incorrect filter for CGW instances prevented values from appearing in the Connectivity Gateway dashboards. This issue is now resolved.

## Known issues

### Core Clusters with the same name across namespaces are not supported

Creating two Core Clusters with the same name across namespaces leads to naming conflicts in global resources. To avoid this issue, always use unique names for Core Clusters, even when they are in separate namespaces.

---
title: "2.5"
description: "Release date: 2025-04-11. The Cennso 2.5 release introduces support for a permission system and connection secrets in Core Clusters."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.5"
---

# Cennso 2.5

**Release date:** 2025-04-11

The Cennso 2.5 release introduces support for a permission system and connection secrets in Core Clusters.

## Features

### Support for a permission system in Cennso

This release introduces a role-based access control system for Cennso. It allows you to grant specific permissions to system resources. For easier access management, you can define sets of permissions (roles) and assign them to users and user groups. To learn more, read the [User and permission management](https://docs.cennso.com/travelping/cennso/2.5/administration/permissions.md) document.

>[!CAUTION]
>You must assign permissions to the existing Cennso Management Control (CMC) users, as their default permissions will not allow them to see any content after an upgrade.

### Support for connection secrets in Core Cluster

Starting with this release, Core Clusters expose details about connections in a connection secret. This secret contains a kubeconfig and scripts for joining, upgrading, and deleting nodes. You can specify which secret should store the connection information by specifying `spec.writeConnectionSecretToRef.name` on the CoreCluster resource.

```yaml
apiVersion: cccc.cennso.com/v1alpha1
kind: CoreCluster
metadata:
  name: example-connection
  namespace: cennso-infra
spec:
  compositionRef:
    name: corecluster-basic
  writeConnectionSecretToRef:
    name: {CONNECTION_DETAILS}
```

---
title: "2.4"
description: "Release date: 2025-03-14. The Cennso 2.4 release enhances Cennso Extensions with Crossplane Providers support and refines the support of Connectivity Gateway."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.4"
---

# Cennso 2.4

**Release date:** 2025-03-14

The Cennso 2.4 release enhances Cennso Extensions with Crossplane Providers support and refines the support of Connectivity Gateway.

## Features

### Support for Crossplane Providers in Extensions

With this release, we introduced support for Crossplane Providers. Now, with Cennso extensions, you can install Helm charts, Configuration Packages, as well as Crossplane-compatible providers.

### Support for Connectivity Gateway 1.9

Cennso 2.4.0 release provides compatibility with Connectivity Gateway (CGW) 1.9. The IPSec and X509 Certificate information is now available in the metrics. The CGW dashboard was updated to support the new metrics.

![IPSec parameters](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/cgw-ipsec-ike.png)

![IPSec traffic stats](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/cgw-ipsec-traffic.png)

![Certificate information](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/cgw-ipsec-certs.png)

### Control over dependency resolving for Configuration Packages and Providers

Starting from this release, you can control dependency resolution for Crossplane Configuration Packages and Providers. This option helps you control the version of packages and the registry from which they are installed when managed by Cennso Extensions. Dependency resolution is disabled by default.

## Fixes

### Issue with the names of releases created by extension installation

The Release Custom Resource created during package installation didn't have a unique name when the functionality of Helm Release name override was used. In this release, we make sure that the names are unique, while custom Helm Release names are still supported. 

### Cennso Agent is crashing with Out Of Memory error on Management Cluster

This release fixes the issue with Cennso Agent crashing on Management Clusters due to an out-of-memory error. To solve the problem, the Cennso Agent cache was tuned to reduce the memory footprint.

---
title: "2.3.1"
description: "Release date: 2025-02-26. This patch release restores the display of validation reports in Cennso Management Console. It also corrects how versions are labelled on the underlying Cennso resources."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.3.1"
---

# Cennso 2.3.1

**Release date:** 2025-02-26

This patch release restores the display of validation reports in Cennso Management Console. It also corrects how versions are labelled on the underlying Cennso resources.

## Fixes

### Cennso Management Console didn't show validation reports

Due to a misconfigured integration with Cennso Agent, validation reports for the connected Core Clusters were not visible in Cennso Management Console (CMC). This patch release resolves the issue by properly configuring the Cennso Agent endpoint for CMC, ensuring validation reports are displayed correctly.

### Underlying resources were labelled with a tag instead of a version

Cennso-managed underlying resources were incorrectly labelled using a prefixed `v` tag instead of the actual Cennso version. This patch ensures the labels now reflect the correct version format, improving the consistency and version tracking.

---
title: "2.3.0"
description: "Release date: 2025-02-21. This Cennso 2.3 release is focused mainly on the introduction of Cennso Extensions and improvements in the upgrade process."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.3"
---

# Cennso 2.3

**Release date:** 2025-02-21

This Cennso 2.3 release is focused mainly on the introduction of Cennso Extensions and improvements in the upgrade process. Also, it improves the stability of Core Clusters by introducing the High Availability mode and exposure by Load Balancers instead of Node Port.

## Features

### Introduction of Cennso Extensions

Cennso 2.3 simplifies customisation with [Cennso Extension Packages](https://docs.cennso.com/travelping/cennso/2.3/administration/extensions.md), which enable new capabilities on the connected Core Clusters. Extensions can also enhance the Management Cluster and Cennso Management Console UI, providing a more flexible and modular platform.

![Cennso Core Packages](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/cmc-core-packages.png)

Each extension installation is tracked separately, giving you full control over the installation and upgrades per Core Cluster, ensuring a seamless and controlled deployment process.

![Package configuration](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/cmc-package-config.png)

### Simplified Cennso upgrade process

The launch of Cennso Extension Packages has streamlined the [upgrade process](https://docs.cennso.com/travelping/cennso/2.3/installation/cennso-cloud.md#upgrade-cennso). During the installation, Cennso automatically creates a `Package` Custom Resource (CR) and an `Installation` CR, which are listed alongside other Management Cluster Packages.

To upgrade, update the version in the `Installation` CR, ensuring a controlled and predictable upgrade process.

### Simplified Core Clusters upgrade

Core Clusters are now versioned, similarly to Cennso and other Extensions. When creating a new Core Cluster, you can select a version from a predefined list.

Upgrades are now simplified — just switch to a new version from the list and the system automatically updates the Cluster Controller instance and Cennso Agents on the Core Cluster.

![Core Cluster upgrade](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/cmc-core-details.png)

### Introduction of node labelling

Cennso 2.3 introduces node labelling, allowing users to assign custom labels to the connected nodes. Labels can be managed programmatically through the `CoreClusters` CR or directly through the Cennso Management Console.

This feature provides more flexibility in organising and managing nodes, enabling users to categorise them based on specific attributes and use cases.

### Introduction of Network Attachments

Previously, network connectivity between Cennso Network Functions was predefined. With Cennso 2.3, you can now configure VLANs, VXLANs, MACVLANs, and even establish direct connections to external systems.

This enhancement allows for more granular network control, enabling better customisation and support for a wider range of use cases out of the box.

### Introduction of Cluster Controllers

Cennso 2.3 introduces Cluster Controllers, which are responsible for configuring the Core Cluster control plane. The Cluster Controller ensures that all necessary control plane components are deployed, configured, and maintained within each Core Cluster to meet the Cennso requirements.

This addition enhances automation and reliability, ensuring consistent and efficient Core Cluster operations.

### Expose Cluster Controller through Load Balancer instead of Node Port

Previous releases exposed the Core Cluster control plane using Node Ports, requiring free ports on Management Cluster nodes. This approach also caused the control plane IP address to change if a node went down.

With Cennso 2.3, Cluster Controllers are now exposed through Load Balancers, which provides a more reliable and predictable control plane connection and improves stability and accessibility.

### Introduction of Cluster Controller High Availability mode

Previously, the Cluster Controller operated in a single-instance mode, making it a potential single point of failure. With Cennso 2.3, we have introduced the High Availability (HA) mode, ensuring a stable connection between the control plane and the connected nodes.

This enhancement improves fault tolerance and reliability, ensuring uninterrupted Core Cluster operations even if one instance fails.

### Add the ability to disconnect a node from the Core Cluster

Previously, once a node was added to a Core Cluster, it was unclear how to disconnect it. With Cennso 2.3, nodes can now be safely removed, ensuring a clean decommissioning process.

This improvement prevents orphaned resources, enhances cluster maintainability, and simplifies infrastructure management.

## Fixes

### Grafana Dashboards and Data Sources stopped working after changing admin credentials

Due to a bug in **Cennso Management Console**, changing **admin credentials** caused issues with the **installation and modification of dashboards and data sources**. This release fixes the issue, ensuring proper functionality after credential updates.

>**NOTE:** Read the **migration guide** before upgrading.

### Restart Network Performance Probes monitors after the target pod restart

In the previous release, Network Performance Probes monitors took a long time to detect that the target pod had restarted or been recreated. With this release, monitors are restarted immediately after the monitored pod changes status, ensuring they always operate in the correct network namespace of the monitored instance.  

## Other improvements

### Add `nftables` to the Cennso node requirements

Cennso 2.3 introduces `nftables` as a requirement for Cennso nodes. This change ensures improved network security and traffic filtering capabilities, aligning with modern firewalling standards.

Nodes must have `nftables` installed and enabled to meet the updated system requirements.

### Improve the built-in providers and functions installation

Cennso now installs and manages built-in Crossplane Providers and Functions used by its compositions. This ensures that compatible versions are always available and automatically upgraded when needed, improving stability and maintainability.

### Add documentation on how to expose and connect Management Cluster and Core Clusters in private networks

New documentation has been added to guide users on exposing and connecting the Management Cluster and Core Clusters in [private network environments](https://docs.cennso.com/travelping/cennso/2.3/administration/private-networking.md). This ensures proper cross-cluster communication while maintaining security and compliance with private infrastructure requirements.

### Auto-propagate Cennso default registry credentials across namespaces on Core Clusters

Cennso 2.3 introduces the automatic propagation of default registry credentials across all namespaces within Core Clusters. This ensures seamless access to container images without requiring manual credential configuration for each namespace.

### Introduction of telemetry data visualisation about connected nodes from Core Clusters and Management Cluster

This release adds new built-in dashboards providing detailed insights into connected nodes across Core Clusters and the Management Cluster. Additionally, a pod-level dashboard has been introduced, offering granular visibility into the running workloads.

![Node metrics](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/cmc-dashboards-node.png)

![Pod metrics](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/cmc-dashboards-pod.png)

These enhancements provide a better system overview, improving monitoring and troubleshooting capabilities.

### Rename Sites to Core Clusters in Cennso Management Console

With this release, Cennso Management Console naming has been aligned with the underlying API. Sites are now referred to as Core Clusters, matching the CoreCluster Custom Resource that was already in use under the hood.

This change improves consistency and clarity across the platform.

## Breaking changes

### Secret with OCI registry credentials renamed and moved to `cennso-system` namespace

Previously, the default OCI registry credentials secret was named `cccc-pull-secret` and stored in the `cccc-system` namespace. As part of the ongoing CCCC decomposition, the secret has been renamed to `cennso-pull-secret` and moved to the `cennso-system` namespace.

During the upgrade process, Cennso automatically copies the existing `cccc-pull-secret` to the new location with the updated name. However, the old secret must be removed manually after the upgrade.

### Secret with Cennso Agent configuration and credentials moved to `cennso-system` namespace

Previously, the Cennso Agent configuration and credentials secret (`agent-configuration`) was stored in the `cccc-system` namespace. As part of the CCCC decomposition, it has been moved to the `cennso-system` namespace while keeping the same name.

During the upgrade process, Cennso automatically copies the secret to the new location. However, the old secret must be removed manually after the upgrade.

### Deprecation of `cccc-infra` namespace and introduction `cennso-infra` namespace

As part of the CCCC decomposition, Cennso has changed the default namespace for resource creation. The `cccc-infra` namespace has been deprecated and replaced with `cennso-infra`.

The existing resources in the `cccc-infra` namespace will continue to function and remain unchanged. However, they must be manually migrated to the new namespace.

### Cennso 5G Core Operator and Fast Path Provider are no longer installed with Core Clusters

Previously, Cennso Core Operator and Fast Path Provider were automatically installed with Core Clusters. Starting with Cennso 2.3, these components are no longer included by default and must be installed separately if required. Follow the applicable [migration guide](https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.2_to_2.3.md) to install Cennso 5G Core Operator and create a Fast Path Provider node.

The issue with having Cennso Core Operator and Fast Path Provider installed by default was that they only worked with specific hardware configurations and had limited compatibility.

Now, necessary components can be installed on-demand using Cennso Extensions, allowing for greater flexibility and customized deployments based on the specific requirements of each Core Cluster.

---
title: "2.1"
description: "Release date: 2024-04-19. The Cennso 2.1 release is focused around the integration with external interfaces which enable the launch of online charging. Additionally, the integration between Management and Core Clusters has been improved."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.1"
---

# Cennso 2.1

**Release date:** 2024-04-19

The Cennso 2.1 release is focused around the integration with external interfaces which enable the launch of online charging. Additionally, the integration between Management and Core Clusters has been improved. There has also been a UX enhancement in the form of Cennso Management Console, which is used to visualise information about cluster validation.

## Features

### Enhanced service monitoring and management

In this release, we're introducing [Service Level Indicators (SLIs)](https://docs.cennso.com/travelping/cennso/2.1/technical-reference/slis/overview.md) for all Cennso Core components including SMC, UPG, FPP, CDF, ChF GW, and NAS GW. These indicators provide valuable insights into the performance of your system, enabling you to make informed decisions about your service levels.

![Dashboard for Cennso component SLIs](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/rn-sli.png)

With Cennso 2.1.0, you have the flexibility to create customised [Service Level Objectives (SLOs)](https://docs.cennso.com/travelping/cennso/2.1/usage/network-solutions/pgw-slo.md) based on these indicators, tailoring them to meet your specific requirements. Cennso 2.1.0 empowers you to set goals that align with your organisation's priorities.

![Dashboard for Cennso component SLOs](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/rn-slo.png)

Furthermore, our integration with Grafana allows you to effortlessly visualise your SLIs and SLOs through customisable dashboards. Gain a comprehensive overview of your system's performance, track trends over time, and drive improvements with confidence.

### Introducing Cennso Data Mesh (CDM)

Cennso 2.1 introduces Cennso Data Mesh (CDM), evolving how Core Clusters communicate with the Management Cluster. This feature creates a mesh network, enabling seamless information, such as events or notifications, exchange between clusters, independent of their environments. Experience streamlined cluster management, breaking down communication barriers for more efficient operations.

![CDM overview dashboard](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/rn-cdm.png)

### Introducing support for the distributed PGW

You can now deploy network functions across multiple clusters and establish connections between them using Fast Path Provider (FPP). This means you can, for instance, deploy Control Plane and User Plane on different clusters. The primary goal is to optimise performance by locating the User Plane as close to the end-user as possible. Experience enhanced network performance and flexibility with Cennso 2.1.

### Default deployment of FPP cross-node connectivity

The new release of Cennso 2.1 provides FPP node deployment with cross-node in-cluster connectivity out of the box. Simply deploy the Equinix Metal cluster with Data Plane nodes and the rest will be automatically configured for you to take advantage of Travelping's Fast Path Provider network acceleration.

### Introducing Cennso Management Console

With Cennso 2.1.0, we're unveiling Cennso Management Console. The console provides users with a visual representation of the attached Core Clusters, along with comprehensive cluster validation results.

Additionally, starting with this release, cluster validation results are propagated to the Management Cluster through Cennso Data Mesh. These results are stored and used by Cennso Management Console to enhance data visualisation capabilities, offering users a more streamlined and insightful management experience.

![Cennso Management Console](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/cennso-management-console.png)

#### Improve SMC runtime configuration

We introduced Custom Resource Definitions (CRDs) in the `smc.cennso.com` API group that allow you to change the SMC runtime configuration. These CRDs are as follows:

- [`APN`](https://docs.cennso.com/travelping/cennso/2.1/technical-reference/crds/smc.cennso.com_apns.md)
- [`ChargingBehaviour`](https://docs.cennso.com/travelping/cennso/2.1/technical-reference/crds/smc.cennso.com_chargingbehaviours.md)
- [`ChgDec`](https://docs.cennso.com/travelping/cennso/2.1/technical-reference/crds/smc.cennso.com_chgdecs.md)
- [`IPPool`](https://docs.cennso.com/travelping/cennso/2.1/technical-reference/crds/smc.cennso.com_ippools.md)
- [`PCCRule`](https://docs.cennso.com/travelping/cennso/2.1/technical-reference/crds/smc.cennso.com_pccrules.md)
- [`TraffContDec`](https://docs.cennso.com/travelping/cennso/2.1/technical-reference/crds/smc.cennso.com_traffcontdecs.md)

Additionally, as part of the SMC Custom Resource (CR), you can now define a selector for runtime configuration CRs. The applied configuration is presented in the SMC status. The `AccessPoint` CR has been removed.

---
title: "2.0"
description: "In the latest Cennso 2.0 release, we provide a significant upgrade that enhances the lifecycle management of components, providing a smoother experience compared to Helm-based deployments."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/2.0"
---

# Cennso 2.0.0

In the latest Cennso 2.0 release, we provide a significant upgrade that enhances the lifecycle management of components, providing a smoother experience compared to Helm-based deployments. This release introduces declarative configuration for components and simplifies the setup of new systems. Additionally, Cennso is now divided into three key parts: Cennso Agent, Cennso Core, and Cennso Composable Cloud Core.

## Cennso Agent

### Telemetry data propagation to the central endpoint

Cennso Agent includes a key function – collecting and sending telemetry data to the central OpenTelemetry-compatible endpoint. This task is managed by Cennso Telemetry Agent, an integral part of Cennso Agent. To learn more about Cennso Agent functionalities and sub-components, read the [Cennso Agent](https://docs.cennso.com/components/agent/latest.md) documentation.

### Cluster configuration and verification

To ensure Cennso's stability, proper cluster configuration is essential. For this reason, Cennso provides you with tools to verify and configure the cluster. Cennso Node Agent, an integral part of Cennso Agent, is crucial in confirming that your cluster is set up correctly for running Cennso.

### Recording rules propagation to Mimir

Cennso contributes to Management Cluster configuration by supporting the dynamic registration of recording rules into the [Grafana Mimir](https://grafana.com/docs/mimir/latest/) storage. Cennso Telemetry Agent actively monitors `PrometheusRule` CRs registered in the cluster and propagates them to Mimir.

## Cennso Core

### Support for multiple APN configurations of the same deployments

With Cennso 2.0, you can add and reconfigure User Equipment configurations without restarting Session Management Controller (SMC) and User Plane Gateway (UPG). This feature allows you to manage multiple configurations on shared workloads, which optimises cluster resource usage and IP allocation.

### Introduction of declarative configuration

Cennso 2.0 is now based on Kubernetes operators and the configuration is provided with declarative Custom Resources. This change makes it easy to work with GitOps and simplifies how you set up the system.

### Introduction of lifecycle management

Cennso 2.0 is based on Kubernetes controllers, which changes how function instances are managed. By default, everything is updated automatically, but it might disrupt services. To solve this problem, you can switch to the manual update policy, which sets a lock. When the lock is set, the user must manually start the component upgrade process.

### Introduction of Session Management Controller

Cennso 2.0 introduces the new version of Session Management Controller (SMC). It adopts a more distributed approach, using HTTP/2 communication between components in line with the 3GPP Service-based Architecture standards. Additionally, Cennso handles it through the `SMC` Custom Resource (CR), offering a simple and declarative configuration.

### Introduction of User Plane Gateway

Cennso 2.0 also introduces the new version of User Plane Gateway (UPG), which works as a User Plane Function. It is managed using the `UPG` CR.

### Introduction of Policy Provisioning Engine

Cennso 2.0 introduces a new component called Policy Provisioning Engine (PPE). As a PCF endpoint, it adheres to the 3GPP SBI specification and communicates seamlessly with SMC using HTTP/2.

### Introduction of Charging Data Function

Cennso introduces the new Charging Data Function (CDF), which currently is backed by the database engine. Aligned with the CHF endpoint specification from 3GPP SBI interfaces, it seamlessly communicates with the SMC using HTTP/2.

### Introduction of Fast Path Provider

The latest version of Fast Path Provider (FPP) handles the networking in Cennso where the performance is crucial. It is configured and managed by `FPP` CR.

### Introduction of Network Performance Probes

Network Performance Probes (NPP), previously a separate component, is now an integral part of Cennso. You can deploy its monitors using CRs in the NPP API group.

### Dynamic registration of User Plane Functions

With Cennso, the registration of UPFs is no longer static and is handled dynamically. When you deploy UPG, it is automatically registered in Network Service Registry, from which SMC gets information about the UPF configurations and availability. You can also register the external UPF using the `UPF` CR.

### Introduction of OpenTelemetry-compatible traces

In Cennso 2.0, we introduced an alpha version of tracing. You can trace requests exchanged between SMC, PPE, NSR, and CDF to introspect your system. The traces are compatible with the OpenTelemetry format and are propagated to the central LGTM stack.

## Cennso Composable Cloud Core

### Introduction of Cennso Composable Cloud Core

To quickly start with Cennso, it comes with a built-in solution called Cennso Composable Cloud Core (CCCC). This solution allows you to easily set up a new Cennso instance and properly configure the cluster according to the requirements. With CCCC, you can create a new Cennso Core Cluster, install the Cennso stack on top of it, and quickly configure your first basic packet gateway.

### Introduction of the CoreCluster composition

As part of CCCC, the CoreCluster composition allows you to properly create and configure the Core Cluster instances that fulfil Cennso requirements to run a basic packet gateway. This composition is compatible with IBM and EQXM.

### Introduction of the BasicPGW composition

The BasicPGW composition is designed for easy setup of the basic packet gateway. Using this composition, you can swiftly set up SMC, UPG, PPE, and FPP with the right configurations for a basic packet gateway. It serves as a handy introduction to getting started with Cennso.

### Rancher cluster labels and badges

Every Core Cluster based on Rancher is assigned a label `infra.cccc.cennso.com/provider`, indicating the infrastructure provider hosting the cluster. This information is conveniently displayed as a cluster badge in the Rancher web UI next to the cluster name.

### CPU, memory, and NUMA policies

For every Core Cluster based on Rancher, the generic worker nodes are configured with the static CPU management policy in accordance with Cennso requirements. Similarly, the Data Plane nodes are equipped with static CPU and memory manager policies, along with a single-numa-node topology management policy. The CPU and memory reservations are aligned with the specific requirements of each node type.

### Use n3.xlarge.x86 for Equinix Metal Data Plane

The node instance type for Equinix Metal Data Plane nodes is changed to `n3.xlarge.x86`, which comprises a 4-port NIC and allows for configurations resembling production setups with bonded interfaces. Moreover, this instance type is always equipped with the Intel E810 NIC.

### Hugepages on single-node clusters

Every Core Cluster based on Rancher provides hugepages for single-node clusters. For IBM, a slightly larger size is chosen for the master node when configured as a single node. This adjustment aims to support small-scale development and functional test setups.

### ArgoCD integration

The ArgocdCluster composition allows you to integrate a Core Cluster with an ArgoCD instance to automatically deploy additional applications or configurations to the cluster.

---
title: "2.15"
description: "Cennso 2.15 replaces XClusterController's status.ingress with status.endpoint, which has a resolved hostname and a list of addresses (ip, and ipType of public/private when known) backing it."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.14_to_2.15"
---

# Migration guide from Cennso 2.14 to Cennso 2.15

## ClusterController status endpoint

Cennso 2.15 replaces `XClusterController`'s **status.ingress** with **status.endpoint**, which has a resolved **hostname** and a list of **addresses** (`ip`, and `ipType` of `public`/`private` when known) backing it.

If you have any automation reading **status.ingress** directly — for example the [Core Cluster upgrade](https://docs.cennso.com/travelping/cennso/2.7/usage/network-topology/core-cluster.md#core-cluster-upgrade) node-upgrade instructions for versions before 2.7, which read its **hostname** field — update it to read `status.endpoint` instead:

Before:

```sh
kubectl get xclustercontrollers.cccc.cennso.com {YOUR_CLUSTER_NAME} -ojsonpath="{.status.ingress}"
```

After:

```sh
kubectl get xclustercontrollers.cccc.cennso.com {YOUR_CLUSTER_NAME} -ojsonpath="{.status.endpoint}"
```

## Small Profile metrics storage

Cennso 2.15 replaces the standalone `prometheus` chart in the `monitoring-small-profile` composition with a Prometheus instance that the Prometheus Operator manages. This change adds alert-rule evaluation and Alertmanager support (see [Enable alerting in the Small Profile](https://docs.cennso.com/cennso/cennso/latest/releases/2.15.0.md#enable-alerting-in-the-small-profile)). The upgrade replaces the Helm release in place: it deletes the PersistentVolumeClaim of the old Prometheus and creates a new, empty one.

> [!CAUTION]
> The upgrade destroys the metrics history unless you keep the volume first. Set the reclaim policy of the underlying PersistentVolume to `Retain` before you upgrade. With the `Delete` policy, which dynamic provisioning normally assigns, no later step can recover the data.

To keep the history, retain the old volume, upgrade with the new Prometheus stopped, and give it a claim that already holds the data. The following steps describe that procedure.

### 1. Retain the old volume

Find the namespace of the `Monitoring` instance, the PersistentVolumeClaim (PVC) of the old Prometheus, and the `PersistentVolume` behind it. Names depend on the release name and the `fullnameOverride`, so discover them instead of assuming fixed values:

```bash
kubectl -n {NAMESPACE} get deploy,pvc
```

Note down the claim of the old Prometheus as `{OLD_PVC}`, then read the volume behind it:

```bash
kubectl -n {NAMESPACE} get pvc {OLD_PVC} -o jsonpath='{.spec.volumeName}{"\n"}'
```

Note that volume as `{OLD_PV}`, then keep it when its claim goes away:

```bash
kubectl patch pv {OLD_PV} -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
```

Confirm the policy before you continue:

```bash
kubectl get pv {OLD_PV} -o custom-columns=NAME:.metadata.name,POLICY:.spec.persistentVolumeReclaimPolicy,CLAIM:.spec.claimRef.name
```

If your storage class supports the Container Storage Interface (CSI) snapshot API, also create a `VolumeSnapshot` of `{OLD_PVC}`. A snapshot protects the data if a later step goes wrong.

### 2. Stop the new Prometheus before it starts

Set the replica count to zero now, before the upgrade. The new Prometheus then never runs, so it collects no metrics that the migration would discard, and the metrics have no gap around the upgrade. The old chart ignores this value, so you can set it in advance.

```bash
kubectl -n {NAMESPACE} patch monitorings.cccc.cennso.com {MONITORING_NAME} --type merge \
  -p '{"spec":{"metricsTSDBChart":{"valuesOverrides":{"prometheus":{"prometheusSpec":{"replicas":0}}}}}}'
```

### 3. Upgrade the Monitoring instance

> [!CAUTION]
> This step deletes the PVC of the old Prometheus. Complete [Retain the old volume](#1-retain-the-old-volume) first, or the metrics history is lost here.

Upgrade Cennso to 2.15 as usual, which installs the new `cccc` configuration and moves the `Monitoring` resource to the new composition revision. The upgrade terminates the old Prometheus pod, which flushes the write-ahead log, and then replaces the release.

Confirm that the old volume survived with the status `Released`:

```bash
kubectl get pv {OLD_PV}
```

The Prometheus Operator has now created the `StatefulSet` with no replicas, which is enough to read the names and the layout that the new Prometheus expects:

```bash
kubectl -n {NAMESPACE} get statefulset,prometheus.monitoring.coreos.com
kubectl -n {NAMESPACE} get statefulset {NEW_STATEFULSET} -o jsonpath='{.spec.volumeClaimTemplates[0].metadata.name}{"\n"}'
kubectl -n {NAMESPACE} get statefulset {NEW_STATEFULSET} -o yaml | grep -B3 subPath
```

Note down:

- `{NEW_STATEFULSET}` is the `StatefulSet` that the operator created.
- `{VOLUME_CLAIM_TEMPLATE}` is the name of its volume claim template.
- `{NEW_PVC}` is the claim that it expects, which Kubernetes composes as `{VOLUME_CLAIM_TEMPLATE}-{NEW_STATEFULSET}-0`.
- `{DATA_SUBPATH}` is the `subPath` of the volume mount that uses `{VOLUME_CLAIM_TEMPLATE}`. The operator keeps the database in this directory of the volume, and uses `prometheus-db` in this release. Leave it empty if the mount has no `subPath`.

Read the user and the group that the new Prometheus runs as, because the next steps hand the files over to them:

```bash
kubectl -n {NAMESPACE} get statefulset {NEW_STATEFULSET} -o jsonpath='{.spec.template.spec.securityContext}{"\n"}'
```

Note `runAsUser` as `{DATA_UID}` and `fsGroup` as `{DATA_GID}`. This release uses `1000` and `2000`, while the old chart wrote the database as the `nobody` user.

> [!CAUTION]
> The old chart kept the database at the root of its volume, and the operator may keep it in a subdirectory. If `{DATA_SUBPATH}` is not empty, the database has to move into that directory, which step 5 does. Prometheus starts with an empty database if the files sit anywhere else, even though the volume holds them.

### 4. Give the retained volume to the new Prometheus

The upgrade deleted the claim of the old Prometheus, which leaves the retained volume with a reference to a claim that no longer exists. Confirm both:

```bash
kubectl -n {NAMESPACE} get pvc {OLD_PVC}
kubectl get pv {OLD_PV} -o custom-columns=NAME:.metadata.name,STATUS:.status.phase,CLAIM:.spec.claimRef.name
```

The claim is gone and the volume has the status `Released`. If the claim still exists, delete it now. The `Retain` policy from step 1 keeps the data.

> [!CAUTION]
> The next command deletes the claim that holds the metrics history. Confirm first that `{OLD_PV}` has the reclaim policy `Retain`, as set in [Retain the old volume](#1-retain-the-old-volume). Under the `Delete` policy, deleting the claim destroys the data.

```bash
kubectl -n {NAMESPACE} delete pvc {OLD_PVC}
```

A `Released` volume cannot be bound again while it references its old claim, so clear that reference:

```bash
kubectl patch pv {OLD_PV} -p '{"spec":{"claimRef":null}}'
```

The volume now has the status `Available`. Create the claim that the new Prometheus expects and point it at that volume. Take `{NEW_PVC}` from step 3, and `{SIZE}` and `{STORAGE_CLASS}` from `kubectl get pv {OLD_PV}`:

```yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: "{NEW_PVC}"
  namespace: "{NAMESPACE}"
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: "{STORAGE_CLASS}"
  volumeName: "{OLD_PV}"
  resources:
    requests:
      storage: "{SIZE}"
```

A `StatefulSet` creates a claim only when one with that name is missing, so it adopts this claim, and with it the metrics history. No copy is needed, because the data never leaves the volume. Confirm that the claim is bound:

```bash
kubectl -n {NAMESPACE} get pvc {NEW_PVC}
```

> [!NOTE]
> The new Prometheus keeps the capacity of the reused volume. A larger volume size in **metricsTSDBChart.valuesOverrides** applies to a volume that the operator provisions itself, so resize the claim afterwards if you need more space.

### 5. Move the database into the directory the operator expects

Skip this step if `{DATA_SUBPATH}` from step 3 is empty, because the database already sits where the new Prometheus reads it.

Otherwise move the files once, while Prometheus still has no replicas. The following Job mounts the claim from step 4, which is the retained volume, moves the database into `{DATA_SUBPATH}`, and hands the files to the user and the group that Prometheus runs as. It runs as root, because the old chart wrote the files as a different user and only root can change their owner.

Save it as `prometheus-tsdb-relocate-job.yaml` and replace `{NAMESPACE}`, `{NEW_PVC}`, `{DATA_SUBPATH}`, `{DATA_UID}`, and `{DATA_GID}`:

```yaml
apiVersion: batch/v1
kind: Job
metadata:
  name: prometheus-tsdb-relocate
  namespace: "{NAMESPACE}"
spec:
  backoffLimit: 0
  template:
    spec:
      restartPolicy: Never
      securityContext:
        runAsUser: 0
      containers:
        - name: relocate-tsdb
          image: busybox:1.37
          command: ["sh", "-c"]
          args:
            - |
              set -eu
              cd /data
              echo "--- before"; ls -la
              mkdir -p "{DATA_SUBPATH}"
              for entry in * .[!.]*; do
                [ -e "$entry" ] || continue
                # Keep the target directory, and keep lost+found, which belongs
                # to the file system rather than to the database.
                case "$entry" in
                  "{DATA_SUBPATH}"|lost+found) continue ;;
                esac
                mv "$entry" "{DATA_SUBPATH}/"
              done
              chown -R {DATA_UID}:{DATA_GID} "{DATA_SUBPATH}"
              echo "--- after"; ls -la; ls -la "{DATA_SUBPATH}"
          volumeMounts:
            - name: data
              mountPath: /data
      volumes:
        - name: data
          persistentVolumeClaim:
            claimName: "{NEW_PVC}"
```

> [!CAUTION]
> This Job moves the only copy of the metrics history. Create the `VolumeSnapshot` from step 1 first, so that an interrupted move does not cost the data.

```bash
kubectl -n {NAMESPACE} apply -f prometheus-tsdb-relocate-job.yaml
kubectl -n {NAMESPACE} wait --for=condition=complete job/prometheus-tsdb-relocate --timeout=10m
kubectl -n {NAMESPACE} logs job/prometheus-tsdb-relocate
```

The log prints the volume before and after the move. Confirm that the database directories, which have names of 26 characters, together with `wal`, `wbl`, and `chunks_head`, now sit inside `{DATA_SUBPATH}` and belong to `{DATA_UID}`.

If the namespace enforces the `restricted` Pod Security Standard, it rejects a Job that runs as root. Relax the standard for the duration of the migration, or run the Job in a namespace that allows it and mount the same claim.

### 6. Start the new Prometheus

Remove the `replicas` override that you added in step 2, so the Prometheus Operator scales the `StatefulSet` up onto the claim that holds the history:

```bash
kubectl -n {NAMESPACE} patch monitorings.cccc.cennso.com {MONITORING_NAME} --type json \
  -p '[{"op":"remove","path":"/spec/metricsTSDBChart/valuesOverrides/prometheus/prometheusSpec/replicas"}]'
kubectl -n {NAMESPACE} rollout status statefulset/{NEW_STATEFULSET} --timeout=5m
```

This path removes only the replica count, so any other override you set stays in place.

Confirm that Prometheus opened the volume instead of starting an empty database:

```bash
kubectl -n {NAMESPACE} logs {NEW_STATEFULSET}-0 -c prometheus | grep -iE "replay|Starting TSDB|TSDB started"
```

### Verification

Confirm that the new Prometheus is healthy and that the history is present before you remove anything.

Reach the query API of the new Prometheus. List the services and note the one that the operator created for the `Prometheus` custom resource as `{PROMETHEUS_SERVICE}`, then forward its port:

```bash
kubectl -n {NAMESPACE} get svc
kubectl -n {NAMESPACE} port-forward svc/{PROMETHEUS_SERVICE} 9090:80
```

1. Check that the Telemetry Agents write metrics again:

   ```bash
   curl -sG localhost:9090/api/v1/query --data-urlencode 'query=count(up)'
   ```

   Compare the result, and the result of `count(up == 1)`, against the values you observed before the migration.

2. Check that the history survived. Query the number of targets at a moment that predates the migration, for example three days ago:

   ```bash
   curl -sG localhost:9090/api/v1/query --data-urlencode 'query=count(up)' \
     --data-urlencode "time=$(date -u -d '3 days ago' +%s)"
   ```

   A result greater than zero proves that the old blocks are in place. Do not replace this query with a range query such as `count_over_time(up[3d])`. A few minutes of samples from after the upgrade already satisfy a range query, so it reports a success even when the history is gone.

   If the result is empty, Prometheus did not pick up the old blocks. Confirm that the pod mounts `{NEW_PVC}`, and that the database sits in the directory that `{DATA_SUBPATH}` names.

3. Check that a test alert fires. The following `PrometheusRule` always fires:

   ```yaml
   apiVersion: monitoring.coreos.com/v1
   kind: PrometheusRule
   metadata:
     name: migration-test-alert
     namespace: "{NAMESPACE}"
   spec:
     groups:
       - name: migration-test
         rules:
           - alert: MigrationTestAlert
             expr: vector(1) == 1
             for: 0m
   ```

   Confirm that the alert shows up as firing in Prometheus, with the query `ALERTS{alertname="MigrationTestAlert"}`, and in Alertmanager. Then delete the rule:

   ```bash
   kubectl -n {NAMESPACE} delete prometheusrule migration-test-alert
   ```

### Cleanup

The new Prometheus now uses `{OLD_PV}`, so the volume stays. Only the Job and the snapshot are left to remove:

```bash
kubectl -n {NAMESPACE} delete job/prometheus-tsdb-relocate
```

Delete the `VolumeSnapshot` from step 1 when you no longer need it.

> [!CAUTION]
> Do not delete `{OLD_PV}` or `{NEW_PVC}`. They hold the metrics that the new Prometheus serves. Their names still refer to the old installation, which makes them look like leftovers.

The reclaim policy of `{OLD_PV}` stays `Retain`, so the volume outlives its claim from now on. Keep that policy to protect the data during a later upgrade, or set it back to `Delete` if you want the volume to disappear together with the `Monitoring` instance:

```bash
kubectl patch pv {OLD_PV} -p '{"spec":{"persistentVolumeReclaimPolicy":"Delete"}}'
```

## CDM Node PVC cleanup

Cennso 2.15 removes the `cdm-node` Helm Release from the CennsoDeployment composition on Core Clusters (see [CDM-node removal](https://docs.cennso.com/cennso/cennso/latest/releases/2.15.0.md#cdm-node-removal)). Removing the release deletes the `cdm-node` `StatefulSet`, but Kubernetes does not delete the PersistentVolumeClaims (PVCs) that a `StatefulSet`'s volume claim templates create, and the `cdm-node` chart also sets its own retention policy to keep them. Every Core Cluster that ran `cdm-node` before the upgrade is left with three orphaned PVCs, one for each `cdm-node` replica, and the PersistentVolumes (PVs) that back them.

Run the following steps against each Core Cluster that ran `cdm-node` before the upgrade.

### 1. Check for leftover PVCs

`cdm-node` ran in the `cennso-system` namespace and named its PVCs `cdm-node-cdm-node-{0,1,2}`. Its PVCs carry the **app.kubernetes.io/name=cdm-node** label. Do not filter on **app.kubernetes.io/instance**: Crossplane generates that label's value per deployment, so it is not the literal string `cdm-node`. List the PVCs by label:

```bash
kubectl -n cennso-system get pvc -l app.kubernetes.io/name=cdm-node
```

On a Core Cluster that ran `cdm-node`, this returns three claims: `cdm-node-cdm-node-0`, `cdm-node-cdm-node-1`, and `cdm-node-cdm-node-2`. An empty result means the Core Cluster never ran `cdm-node`, or its PVCs are already removed.

Confirm that no `StatefulSet` claims them anymore:

```bash
kubectl -n cennso-system get statefulset cdm-node
```

This returns `NotFound`. If it returns a `StatefulSet` instead, `cdm-node` is still deployed on this Core Cluster; do not continue until the 2.15 upgrade has completed and removed it.

### 2. Delete the PVCs

Read the PersistentVolume (PV) behind each PVC and its reclaim policy first, because that determines what happens to the underlying storage when you delete the claim:

```bash
kubectl -n cennso-system get pvc -l app.kubernetes.io/name=cdm-node -o custom-columns=PVC:.metadata.name,PV:.spec.volumeName
kubectl get pv {PV_NAME} -o custom-columns=NAME:.metadata.name,POLICY:.spec.persistentVolumeReclaimPolicy,STATUS:.status.phase
```

With the `Delete` policy, deleting the PVC also deletes the PV and its backing storage. With the `Retain` policy, the PV survives with the status `Released` and you remove it separately in the next step.

The data on these volumes is `cdm-node`'s own NATS JetStream state. It belongs to no other component, and Cennso does not use it after the migration to the Mesh resource from the CDM Extension.

> [!CAUTION]
> The following command permanently deletes the PVCs and, for any PV using the `Delete` reclaim policy, the underlying storage. Confirm step 1 first, so you are not deleting claims still in use.

```bash
kubectl -n cennso-system delete pvc cdm-node-cdm-node-0 cdm-node-cdm-node-1 cdm-node-cdm-node-2
```

### Verification

Confirm the PVCs are gone:

```bash
kubectl -n cennso-system get pvc -l app.kubernetes.io/name=cdm-node
```

Any PV that used the `Retain` policy is still present with the status `Released`. Delete it explicitly if you no longer need it:

> [!CAUTION]
> This command permanently deletes the PV. Confirm the reclaim policy was `Retain` and that you no longer need the `cdm-node` JetStream state before running it.

```bash
kubectl delete pv {PV_NAME}
```

---
title: "2.13"
description: "This release introduces a custom Helm Provider image and additional metrics scraped by Cennso Telemetry Agent. During upgrade, a minor downtime to the workloads in the Core Clusters may occur as they are reconciled by the new Helm Provider."
url: "https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.11_to_2.13"
---

# Migration guide from Cennso 2.11 to Cennso 2.13

This release introduces a custom Helm Provider image and additional metrics scraped by Cennso Telemetry Agent. During upgrade, a minor downtime to the workloads in the Core Clusters may occur as they are reconciled by the new Helm Provider. To minimise the downtime, ensure that the Core Clusters are healthy before starting the upgrade and monitor their status during the upgrade process.

## CDM LoadBalancer migration

Requirements:

- Cennso in version 2.11 installed and healthy
- All the `releases.helm.crossplane.io` resources are synced and ready

To upgrade CDM LoadBalancer so it is compatible with version 2.13, follow these steps:

1. Ensure that CDM LoadBalancer is healthy and has an external IP address assigned.
2. Update CDM LoadBalancer to have both `6237` and `4237` ports open and pointing to the right target ports of CDM Node.

   ```yaml
   ports:
     - appProtocol: tls
       name: leafnode-conn
       port: 6237
       protocol: TCP
       targetPort: leafnode-conn
     - appProtocol: tls
       name: client-conn
       port: 4237
       protocol: TCP
       targetPort: client-conn
   ```

3. Wait for the LoadBalancer to update and ensure that both ports are open and pointing to the right target ports. Check the LoadBalancer status and connectivity to both ports.

   ```sh
   kubectl get svc -n cennso-system
   ```

4. Update the `agent-configuration` Secret in the `cennso-system` namespace to include the new `CDM_NODE_CONNECTION_ENDPOINT` key with the appropriate value (`nats://{CENNSO_DATA_MESH_DOMAIN}:4237`).

   ```yaml
   apiVersion: v1
   stringData:
    CDM_NODE_CONNECTION_ENDPOINT: nats://{CENNSO_DATA_MESH_DOMAIN}:4237
   data:
    CDM_NODE_ENDPOINT: ...
    ...
   kind: Secret
   metadata:
    name: agent-configuration
    namespace: cennso-system
   type: Opaque
   ```

## Cennso Package upgrade

Requirements:

- Cennso in version 2.11 installed and healthy
- All the `releases.helm.crossplane.io` resources are synced and ready

1. Proceed with the Cennso upgrade to version 2.13.

2. After the upgrade, verify if all the `releases.helm.crossplane.io` resources are synced and ready. If not, remove the `crossplane.io/external-create-pending` annotation from the `releases.helm.crossplane.io` resource (for example, `cennso-openebs` or `cennso-cennso-agent`) and wait for them to be reconciled. It may take a few minutes for the reconciliation to complete. If some `releases.helm.crossplane.io` are deployed but still not in `READY` state, you could restart the Helm Provider pod to trigger reconciliation. Ensure all the releases are healthy before proceeding.

   ```sh
   kubectl get releases.helm.crossplane.io
   kubectl annotate releases.helm.crossplane.io {RELEASE_NAME} crossplane.io/external-create-pending-
   helm list -A
   kubectl -n cennso-system delete po -l pkg.crossplane.io/provider=provider-helm
   ```

> [!CAUTION]
> No payload downtime is expected during the upgrade. It's expected to see restarts of the `provider-cennso-permissions`, `provider-extension`, `crossplane-contrib-function-go-templating`, `provider-helm`, `cennso-agent` pods in the `cennso-system` namespace. It's also expected to see creation of the `openebs`, `storage-agent` pods in the `cennso-system` namespace.

Remember to upgrade the Monitoring composition to version `2.13.1` to regain access to the Cennso Telemetry Agent dashboards in the CMC UI and to use the latest Cennso Telemetry Agent fixes.

## Core Clusters upgrade

Requirements:

- Cennso in version 2.13 installed and healthy
- The Core Clusters are healthy and reconciled

To use the latest Cennso features, such as storage encryption at rest and additional metrics scraped by Cennso Telemetry Agent, on your existing Core Cluster, update the `spec.compositionRevisionSelector.matchLabels` of the `CoreCluster` resource to point to the new composition version created by Cennso 2.13.

   ```sh
   kubectl edit coreclusters.cccc.cennso.com {CORE_CLUSTER_NAME} -n {CORE_CLUSTER_NAMESPACE}
   ```

   ```yaml
   apiVersion: cccc.cennso.com/v1alpha1
   kind: CoreCluster
   metadata:
     name: {CORE_CLUSTER_NAME}
     namespace: {CORE_CLUSTER_NAMESPACE}
   spec:
     compositionRevisionSelector:
       matchLabels:
         cennso.com/version: 2.13.1
     ...
   ```

If some `releases.helm.crossplane.io` resources are deployed but not in `READY` state after the upgrade (for example, `cennso-agent` or `cdm-node`), you could restart the Helm Provider pod to trigger reconciliation. Ensure the Core Cluster is healthy and reconciled after the upgrade.

   ```sh
   kubectl get releases.helm.crossplane.io
   kubectl -n cennso-system delete po -l pkg.crossplane.io/provider=provider-helm
   ```

> [!CAUTION]
> No payload downtime is expected during the upgrade, but the Core Cluster metrics may be temporarily unavailable as the Cennso Telemetry Agent Core is being updated. Monitor the Core Cluster status and metrics availability during the upgrade process. It's expected to see restarts of the `cennso-cni-installer`, `cdm-node`, `cennso-agent-init-cdm-creds`, `cennso-agent-siteapi`, `cennso-agent`, `provider-kubernetes`, `provider-helm` pods in the `cennso-system` namespace. It's also expected to see creation of the `cta-core`, `openebs`, `storage-agent` pods, and deletion of the `cennso-telemetry-agent` pods in the `cennso-system` namespace.

## Monitoring upgrade

Requirements:

- Cennso in version 2.13 installed and healthy
- The Monitoring composition is installed and healthy

To use the latest Cennso Telemetry Agent features and fixes, update the Monitoring composition to version `2.13.1`. Follow [the default upgrade procedure](https://docs.cennso.com/cennso/cennso/latest/configuration/extensions.md#update-extensions) for the Monitoring composition. Update the `spec.compositionRevisionSelector.matchLabels` of the `Monitoring` resource to point to the new composition version created by Cennso 2.13.1.

   ```sh
   kubectl edit monitoring.cccc.cennso.com {MONITORING_NAME} -n {MONITORING_NAMESPACE}
   ```

   ```yaml
   apiVersion: cccc.cennso.com/v1alpha1
   kind: Monitoring
   metadata:
     name: {MONITORING_NAME}
     namespace: {MONITORING_NAMESPACE}
   spec:
     compositionRevisionSelector:
       matchLabels:
         cennso.com/version: 2.13.1
     ...
   ```

If some `releases.helm.crossplane.io` resources are deployed but not in `READY` state after the upgrade, you could restart the Helm Provider pod to trigger reconciliation. Ensure the Monitoring is healthy and reconciled after the upgrade.

   ```sh
   kubectl get releases.helm.crossplane.io
   kubectl -n cennso-system delete po -l pkg.crossplane.io/provider=provider-helm
   ```

> [!CAUTION]
> No payload downtime is expected during the upgrade, but the metrics may be temporarily unavailable as the Cennso Telemetry Agent Core and Cennso Telemetry Agent Management are being updated. Monitor the Monitoring status and metrics availability during the upgrade process. It's expected to see restarts of the `kube-state-metrics`, `cta-core`, `cta-management` pods in the Monitoring namespace.

## CMC Package upgrade

Requirements:

- Cennso in version 2.13 installed and healthy

To enable the Storage-related features in the CMC UI, upgrade the CMC Package to version `1.4.0`. Follow [the default upgrade procedure](https://docs.cennso.com/cennso/cennso/latest/configuration/extensions.md#update-extensions) for the CMC Package.

---
title: "2.11"
description: "Before starting the upgrade, ensure the following…"
url: "https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.10_to_2.11"
---

# Migration guide from Cennso 2.10 to Cennso 2.11

## Prerequisites

Before starting the upgrade, ensure the following:

- All Release resources are synced and ready.
- All Core Clusters are on Cennso version 2.10.
- All Core Clusters are synced and ready.

> **CAUTION:** Skip Cennso 2.11.0 and upgrade to Cennso 2.11.1 if you are using the Whereabouts CNI plugin on CoreClusters.

## Upgrade procedure

1. Annotate all XClusterController resources with the `crossplane.io/paused: "true"` annotation. Without this annotation, compositions lose access to the Core Cluster during the upgrade.

   ```bash
   kubectl annotate xclustercontrollers.cccc.cennso.com --all crossplane.io/paused="true"
   ```

2. Upgrade Cennso to version 2.11.1.

3. After the upgrade completes, check for any Release resources that are not synced. If you find any, follow the [Crossplane Helm Release troubleshooting guide](https://docs.cennso.com/cennso/cennso/latest/troubleshooting/crossplane-helm-release.md) to bring them to the synced and ready state.

4. For each Core Cluster, perform the following steps one at a time:

   a. Bump the Core Cluster to version 2.11.1.

   b. Remove the pause annotation from the XClusterController resource with the same name as the Core Cluster:

      ```bash
      kubectl annotate xclustercontrollers.cccc.cennso.com <core-cluster-name> crossplane.io/paused-
      ```

   c. Follow the [Core Cluster upgrade procedure](https://docs.cennso.com/cennso/cennso/latest/user-guides/upgrade-cc.md).

5. Repeat step 4 for all remaining Core Clusters.

---
title: "2.10"
description: "To upgrade Cennso from version 2.9 to 2.10, follow these steps…"
url: "https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.9_to_2.10"
---

# Migration guide from Cennso 2.9 to Cennso 2.10

## Cennso Installation migration

Requirements:

- Cennso in version 2.9 installed and healthy
- all `releases.helm.crossplane.io` and `objects.kubernetes.crossplane.io` resources in the `SYNCED` and `READY` state - the Crossplane and the Providers are going to be upgraded and restarted a couple of times, they could have problems with the resources that were not healthy and ready before the upgrade
- gzip, jq, yq - required to run the provided scripts

To upgrade Cennso from version 2.9 to 2.10, follow these steps:

1. Ensure the `cennso-system/cennso` Installation in `2.9.0` version is healthy.
2. Download all the upgrade assets. You will need the following files:
    - [installation-2.10.0-upgrade1.yaml](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.10.0/installation-2.10.0-upgrade1.yaml)
    - [installation-2.10.0-upgrade2.yaml](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.10.0/installation-2.10.0-upgrade2.yaml)
    - [installation-2.10.0.yaml](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.10.0/installation-2.10.0.yaml)
    - [pre-manual-steps-2.10.0-upgrade.sh](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.10.0/pre-manual-steps-2.10.0-upgrade.sh)
    - [pre-final-installation-2.10.0-upgrade.sh](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.10.0/pre-final-installation-2.10.0-upgrade.sh)
    - [provider-extension.yaml](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.10.0/provider-extension.yaml)
    - [provider-extension-config.yaml](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.10.0/provider-extension-config.yaml)
    - [provider-helm-rbac.yaml](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.10.0/provider-helm-rbac.yaml)
3. Replace all occurrences of `{MANAGEMENT_CLUSTER_NAME}` in the `installation-2.10.0.yaml` file with your actual Management Cluster name.
4. Replace all occurrences of `{MANAGEMENT_CLUSTER_SOLUTION}` in the `installation-2.10.0.yaml` file with your actual Management Cluster solution name.
5. Replace all occurrences of `{MANAGEMENT_CLUSTER_HOST}` in the `installation-2.10.0.yaml` file with your actual Management Cluster host (for example: `my-mc.cccc.cns.cennso.net`). You can get the host by running [get-console-host.sh](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.10.0/get-console-host.sh) script:

    ```sh
    chmod +x ./get-console-host.sh
    ./get-console-host.sh
    ```

6. Replace `{OTT_PLACEHOLDER}` in the `installation-2.10.0.yaml` file with your actual Cennso Data Mesh Registration Token. You can find it in the Cennso Cloud Portal by clicking **Reconnect**.

7. Detach all the resources from the existing `Installation` and remove the old `Installation`, detach all the subcharts from the old Cennso Agent chart, and label the resources as adoptable by the new `ClusterInstallation`. To do so, run the `pre-manual-steps-2.10.0-upgrade.sh` script:

    ```sh
    chmod +x ./pre-manual-steps-2.10.0-upgrade.sh
    ./pre-manual-steps-2.10.0-upgrade.sh
    ```

8. Manually add the necessary RBAC for the `provider-helm` as it is needed while using Crossplane 2.0. Label its Provider Config as adoptable by the new `ClusterInstallation`. To do so, run the following commands:

    ```sh
    kubectl apply -f provider-helm-rbac.yaml
    kubectl label providerconfigs.helm.crossplane.io default extension.cennso.com/clusterinstallation-name=cennso extension.cennso.com/source-name=provider-helm --overwrite
    ```

9. Manually apply the `provider-extension` and its configuration. The configuration Custom Resource Definition (CRD) is added after the Provider is applied, so make sure to wait a few seconds between applying the two manifests:

    ```sh
    kubectl apply -f provider-extension.yaml
    ```

    ```sh
    kubectl apply -f provider-extension-config.yaml
    ```

10. Patch the `XAgentConfiguration` resource to set **spec.compositionUpdatePolicy** to `Automatic`. This ensures that the composition updates are applied automatically during the upgrade:

    ```sh
    kubectl patch xagentconfigurations.cennso.com cennso-agent --type='merge' -p '{"spec":{"compositionUpdatePolicy":"Automatic"}}'
    ```

11. Remove the Cennso 2.10.0 Packages present on the Management Cluster (it won't affect anything as nothing uses them yet), then wait for Cennso Agent to fetch all the new ones (`cennso-2.10.0-upgrade1`, `cennso-2.10.0-upgrade2`, and `cennso-2.10.0`). It may take a few minutes. Run:

    ```sh
    kubectl delete packages.extension.cennso.com cennso-2.10.0
    kubectl delete packages.extension.cennso.com cennso-2.10.0-upgrade1
    kubectl delete packages.extension.cennso.com cennso-2.10.0-upgrade2
    ```

    ```sh
    kubectl get packages.extension.cennso.com | grep cennso-2.10.0
    ```

12. Apply the first upgrade Package and `ClusterInstallation` to upgrade Crossplane to version 2.0.2. At this point `provider-helm` won't have problems with upgrading the Crossplane as it already has the necessary RBACs applied:

    ```sh
    kubectl apply -f installation-2.10.0-upgrade1.yaml
    ```

    > **NOTE**: After applying each `ClusterInstallation`, make sure it's reconciled successfully before proceeding to the next step. Check if the upgraded pods are restarted and the `ClusterInstallation` status is healthy. You can use these commands: `kubectl -n cennso-system get pods`, `kubectl get releases.helm.crossplane.io`, and `kubectl get clusterinstallations.extension.cennso.com`. At this point, providers such as `provider-cennso-permissions` could fail due to the lack of additional RBACs. They will recover after the last upgrade step.

13. Apply the second upgrade Package and `ClusterInstallation` to adopt the `provider-helm`, and the `provider-extension`. After this step, both Providers will be managed by the new `ClusterInstallation` and should not restart, causing problems with the `releases.helm.crossplane.io`, or the `Package` CRD annotations overwrites during the next upgrades:

    ```sh
    kubectl apply -f installation-2.10.0-upgrade2.yaml 
    ```

14. Run the `pre-final-installation-2.10.0-upgrade.sh` script to annotate the `Package` CRD and Crossplane resources so they won't be removed while upgrading the Cennso Agent:

    ```sh
    chmod +x ./pre-final-installation-2.10.0-upgrade.sh
    ./pre-final-installation-2.10.0-upgrade.sh
    ```

    > **NOTE**: Make sure all Functions and Providers are running fine before proceeding to the final upgrade step. You can use these commands: `kubectl -n cennso-system get pods`, `kubectl get providers.pkg.crossplane.io`, and `kubectl get functions.pkg.crossplane.io`.

15. Finally, apply the final `Package` and `ClusterInstallation` to complete the upgrade to Cennso 2.10:

    ```sh
    kubectl apply -f installation-2.10.0.yaml
    ```

> **NOTE**: Keep in mind that Cennso Management Console, CDM Manager, CDM Node, and Cert Manager are no longer part of Cennso `ClusterInstallation`. To manage them, you must adopt the running resources by creating `ClusterInstallation` for the appropriate Extension Packages. The migration guides are described in the following sections.

### Common troubleshooting tips

This section provides troubleshooting for some most common issues.

#### Stuck Helm Releases

If a `releases.helm.crossplane.io` resource is stuck with a `crossplane.io/external-create-pending` annotation, you can remove it by running: `kubectl annotate releases.helm.crossplane.io <resource-name> crossplane.io/external-create-pending-`.

#### Regenerating TLS secrets for additional Crossplane Providers or Functions

If you had some additional Crossplane Providers or Crossplane Functions present in your cluster (for example, as a part of another Extension), you may need to regenerate their TLS secrets because of the Crossplane 2.0 upgrade. The Crossplane certificates are regenerated during the upgrade, and the old Providers' or Functions' certificates may not be valid anymore. To regenerate the TLS secrets, delete the existing Provider or Function secrets and then restart their pods. For example, to regenerate the TLS secret for the `crossplane-contrib-function-auto-ready` function, you can run:

```sh
kubectl -n cennso-system delete secret crossplane-contrib-function-auto-ready-tls-server
```

```sh
kubectl -n cennso-system delete pod -l pkg.crossplane.io/function=crossplane-contrib-function-auto-ready
```

#### No deployments for Helm Releases in the `READY` state

If some `releases.helm.crossplane.io` resources are in the `READY` state, but there are no corresponding Deployments, you can try to force the Helm Release reconciliation by deleting the Helm Release and the `releases.helm.crossplane.io` resource. The Extension Provider will recreate the `releases.helm.crossplane.io` resource, and the Helm Release will be reinstalled.

## Cennso Data Mesh

### Adoption of the CDM resources to CDM Extension 1.0.1

After the migration of Cennso 2.9 to Cennso 2.10, the CDM resources are running in the Management Cluster. They are orphaned and not managed by any `Installation` or `ClusterInstallation`. To adopt them and upgrade to CDM Extension 1.0.1, follow the steps below:

> **Note**: CDM adoption may require removing the old Persistent Volume Claims of the CDM Node, which store the CDM data. It will cause loss of CDM data, including PCAP files, routings, and resolvers.

1. Ensure Cennso 2.10 is installed and running.
2. Ensure the CDM pods are running in the Management Cluster:

    ```sh
    kubectl -n cennso-system get pods -l app.kubernetes.io/name=cdm-node
    ```

3. Remove the CDM 1.0.1 Package that is present on the Management Cluster (it won't affect anything as nothing uses it yet), then wait for the Cennso Agent to fetch a new one:

    ```sh
    kubectl delete packages.extension.cennso.com cdm-1.0.1
    ```

    ```sh
    kubectl get packages.extension.cennso.com | grep cdm
    ```

4. Download the [cdm-clusterinstallation-1.0.1.yaml](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/installation-to-clusterinstallation/cdm-clusterinstallation-1.0.1.yaml) file.
5. Replace the `{MANAGEMENT_CLUSTER_NAME}` placeholder in the `cdm-clusterinstallation-1.0.1.yaml` file with the name of your Management Cluster.
6. Replace the `{MANAGEMENT_CLUSTER_SOLUTION}` placeholder in the `cdm-clusterinstallation-1.0.1.yaml` file with the solution of your Management Cluster.
7. Apply the `cdm-clusterinstallation-1.0.1.yaml` file:

    ```sh
    kubectl apply -f cdm-clusterinstallation-1.0.1.yaml
    ```

    > **Note**: You can check if the CDM pods are restarted by observing them with the `kubectl -n cennso-system get pods -l app.kubernetes.io/name=cdm-node` command.

8. If some CDM Node pods cannot run properly, remove the old Persistent Volume Claims of the CDM Node and restart the pods. It will cause loss of the CDM data such as pcap files, routings, and resolvers. Run:

    ```sh
    kubectl -n cennso-system delete pvc -l app.kubernetes.io/name=cdm-node --force
    ```

    ```sh
    kubectl -n cennso-system delete pods -l app.kubernetes.io/name=cdm-node --force
    ```

    > **Note**: You may need to detach from the first command with CTRL+C, as it may wait for the PVCs to be detached from the pods you are deleting.

9. Wait until the `ClusterInstallation` is ready: `kubectl get clusterinstallations.extension.cennso.com cdm`.

## Cert Manager

### Adoption of the Cert Manager resources to Cert Manager Extension 1.0.0

After the migration of Cennso 2.9 to Cennso 2.10, the Cert Manager resources are running in the Management Cluster. They are orphaned and not managed by any `Installation` or `ClusterInstallation`. To adopt them and upgrade to Cert Manager Extension 1.0.0, follow the steps below:

1. Ensure Cennso 2.10 is installed and running.
2. Ensure the Cert Manager pods are running in the Management Cluster:

    ```sh
    kubectl -n cert-manager get pods -l app.kubernetes.io/instance=cert-manager
    ```

3. Remove the Cert Manager 1.0.0 Package that is present on the Management Cluster (it won't affect anything as nothing uses it yet), then wait for the Cennso Agent to fetch a new one:

    ```sh
    kubectl delete packages.extension.cennso.com cert-manager-1.0.0
    ```

    ```sh
    kubectl get packages.extension.cennso.com | grep cert-manager
    ```

4. Download the [migrate-cert-manager-1.0.0.sh](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/installation-to-clusterinstallation/migrate-cert-manager-1.0.0.sh) script and run it to label the existing Cert Manager resources to be adopted by the new `ClusterInstallation`:

    ```sh
    chmod +x ./migrate-cert-manager-1.0.0.sh
    ./migrate-cert-manager-1.0.0.sh
    ```

5. Download the [cert-manager-clusterinstallation-1.0.0.yaml](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/installation-to-clusterinstallation/cert-manager-clusterinstallation-1.0.0.yaml) file and apply it:

    ```sh
    kubectl apply -f cert-manager-clusterinstallation-1.0.0.yaml
    ```

6. Wait until `ClusterInstallation` is ready:

    ```sh
    kubectl get clusterinstallations.extension.cennso.com cert-manager
    ```

## Cennso Management Console

With Cennso 2.10.0, Cennso Management Console (CMC) uses Grafana based on a Cennso extension instead of plain Management Console Crossplane composition. A migration procedure is required to keep the existing configuration, such as authentication SSO settings, users, or manually created dashboards.

### Migration steps

1. Remove the Cennso Management Console 1.2.2 Package that is present on the Management Cluster (it won't affect anything as nothing uses it yet), then wait for the Cennso Agent to fetch a new one:

    ```sh
    kubectl delete packages.extension.cennso.com cmc-1.2.2
    ```

    ```sh
    kubectl get packages.extension.cennso.com | grep cmc
    ```

2. Get the name of the Management Console Helm release, Grafana's Deployment, and Grafana's PVC:

    ```bash
    export MC_RELEASE_NAME=$(kubectl get managementconsoles management-console -n cennso-system -o jsonpath='{.spec.resourceRef.name}')
    export GRAFANA_DEPLOYMENT=$(kubectl get deployment -n cennso-system -l app.kubernetes.io/instance=$MC_RELEASE_NAME -o jsonpath="{.items[*].metadata.name}")
    export GRAFANA_PVC=$(kubectl get pvc -n cennso-system -l app.kubernetes.io/instance=$MC_RELEASE_NAME -o jsonpath="{.items[*].metadata.name}")
    ```

3. Copy the administrator credentials and Grafana Service Account token for use in the next steps:

    ```bash
    export CMC_ADMIN_PASSWORD=$(kubectl get secret management-console -n cennso-system -o jsonpath="{.data.admin-password}")
    export CMC_SERVICE_ACCOUNT_TOKEN=$(kubectl get secret grafana-operator-token -n cennso-system -o jsonpath="{.data.token}")
    ```

4. To ensure data integrity, shut down your Grafana instance before backing up the SQLite database by scaling down Deployment replicas to 0 in the Management Console composition instance:

    ```bash
    kubectl patch deployment $GRAFANA_DEPLOYMENT -n cennso-system --type='merge' -p '{"spec":{"replicas":0}}'
    ```

    > **Impact**: Management Console becomes unavailable. It will be started again after the migration is completed.

5. Create a temporary pod to retrieve data from Grafana's PVC:

    ```bash
    kubectl apply -n cennso-system -f - <<EOF
    apiVersion: v1
    kind: Pod
    metadata:
      name: grafana-db-migration
      namespace: cennso-system
    spec:
      containers:
        - name: grafana-db-migration
          image: alpine:3.21
          command: [ "/bin/sh", "-c", "tail -f /dev/null" ]
          volumeMounts:
          - name: volume1
            mountPath: "/mnt/volume1"
      volumes:
      - name: volume1
        persistentVolumeClaim:
          claimName: ${GRAFANA_PVC}
      restartPolicy: Never
    EOF
    ```

6. Copy the Grafana database file to your host machine using the pod's name from the previous step:

    ```bash
    kubectl cp -n cennso-system grafana-db-migration:/mnt/volume1/grafana.db ./grafana.db
    ```

7. Edit database permissions:

    ```bash
    sudo chmod u=rw,g=rw,o=r ./grafana.db
    sudo chown 472 ./grafana.db
    ```

8. Remove the temporary pod:

    ```bash
    kubectl delete pod -n cennso-system grafana-db-migration
    ```

9. Using the [script](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.10.0/create-cmc-installation-manifest.sh), create a `ClusterInstallation` resource to apply in the next steps:

    ```bash
    chmod +x ./create-cmc-installation-manifest.sh
    ./create-cmc-installation-manifest.sh
    ```

10. Delete the old Management Console instance to clean up old managed resources:

    ```bash
    kubectl delete managementconsoles management-console -n cennso-system
    ```

    > **Note**: If the ManagementConsole cannot be removed, remove the xmanagementconsole resource forcefully and then remove the ManagementConsole finalizers.

11. Wait until all resources of the old Management Console instance are removed:

    ```bash
    kubectl get xmanagementconsoles
    ```

    If you didn't receive any data, the old Management Console should be removed.

12. Create a new CMC instance using the previously created `ClusterInstallation` resource:

    ```bash
    kubectl apply -f ./cmc-installation.yaml
    ```

13. Wait for the new Grafana's PVC readiness:

    ```bash
    kubectl get pvc cmc -n cennso-system
    ```

14. Scale the CMC instance to 0 replicas:

    ```bash
    kubectl scale deployment cmc -n cennso-system --replicas=0
    ```

15. Edit the newly created secrets using the old values saved in step 2:

    ```bash
    kubectl patch secret cmc -n cennso-system -p "{\"data\": {\"admin-password\": \"${CMC_ADMIN_PASSWORD}\"}}"
    ```

    If the secret `cmc-grafana-operator-token` has already been created, replace its token:

    ```bash
    kubectl get secret cmc-grafana-operator-token -n cennso-system
    ```

    If you see it, then:

    ```bash
    kubectl patch secret cmc-grafana-operator-token -n cennso-system -p "{\"data\": {\"token\": \"${CMC_SERVICE_ACCOUNT_TOKEN}\"}}"
    ```

16. Attach the new PVC to the temporary pod that will be used to upload the old Grafana database values:

    ```bash
    kubectl apply -n cennso-system -f - <<EOF
    apiVersion: v1
    kind: Pod
    metadata:
      name: grafana-db-migration
      namespace: cennso-system
    spec:
      containers:
        - name: grafana-db-migration
          image: alpine:3.21
          command: [ "/bin/sh", "-c", "tail -f /dev/null" ]
          volumeMounts:
          - name: volume1
            mountPath: "/mnt/volume1"
      volumes:
      - name: volume1
        persistentVolumeClaim:
          claimName: cmc
      restartPolicy: Never
    EOF
    ```

17. Using the pod's name from the previous step, copy the Grafana database file into the new volume:

    ```bash
    kubectl cp -n cennso-system ./grafana.db grafana-db-migration:/mnt/volume1/grafana.db
    ```

    > **Note**: Ensure that the database file was mounted successfully. You can check the file size with `kubectl exec -n cennso-system grafana-db-migration -- ls -la /mnt/volume1`.

18. Remove the temporary pod:

    ```bash
    kubectl delete pod -n cennso-system grafana-db-migration
    ```

19. Scale the CMC instance to 1 replica:

    ```bash
    kubectl scale deployment cmc -n cennso-system --replicas=1
    ```

20. Wait for the CMC's Pod readiness:

    ```bash
    kubectl get pod -n cennso-system | grep cmc
    ```

    If Pod has a `Ready` status, you can access the CMC instance at the same address as before.

21. Remove unccessary files:

    ```bash
    rm -f ./cmc-installation.yaml
    rm -f ./grafana.db
    ```

22. Remove the leftover resources coming from the old Management Console composition:

    ```bash
    kubectl get configmaps -n cennso-system | grep ^management-console- | awk '{print $1}' | xargs kubectl delete configmaps -n cennso-system
    kubectl get jobs -n cennso-system | grep ^management-console- | awk '{print $1}' | xargs kubectl delete jobs -n cennso-system
    kubectl get clusterroles | grep ^management-console- | awk '{print $1}' | xargs kubectl delete clusterroles
    kubectl get clusterrolebindings | grep ^management-console- | awk '{print $1}' | xargs kubectl delete clusterrolebindings
    kubectl get serviceaccounts -n cennso-system | grep ^management-console- | awk '{print $1}' | xargs kubectl delete serviceaccounts -n cennso-system
    kubectl get grafanas.grafana.integreatly.org -n cennso-system | grep ^management-console- | awk '{print $1}' | xargs kubectl delete grafanas.grafana.integreatly.org -n cennso-system
    kubectl delete secrets grafana-operator-token -n cennso-system
    ```

    > [!NOTE]
    > Because some resources may no longer exist, an error may occur during removal.

### Troubleshooting tips

#### Cennso Dashboards not working properly

If the Cennso Dashboards don't work properly, restart them by deleting them. The Cennso Dasboards release will recreate them automatically. Download the [restart-cennso-dashboards.sh](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/installation-to-clusterinstallation/restart-cennso-dashboards.sh) script and run it:

```bash
chmod +x ./restart-cennso-dashboards.sh
./restart-cennso-dashboards.sh
```

## Other `Installation` migration to `ClusterInstallation`

With the release of Cennso 2.10, the `Installation` resource has been deprecated. It's recommended to use the new `ClusterInstallations` instead. If you have any `Installations` in your cluster left, migrate them to `ClusterInstallations`.

To do so, you must mark the existing underlying resources so they are orphaned by the Installation controller, delete the existing `Installation`, label the resources to be adopted by the new `ClusterInstallation`, and create a new `ClusterInstallation` that adopts the running resources. To do so, follow these steps:

> **NOTE**: This is a generic guide. Some extensions may require additional steps to be fully migrated. Refer to the specific extension documentation for more details.

1. Check the name and the namespace of your existing `Installation` you want to migrate: `kubectl get installations.extension.cennso.com -A`.
2. Save your `Installation` and change it to `ClusterInstallation`. You can use [the provided script `convert-installation-to-clusterinstallation.sh`](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/installation-to-clusterinstallation/convert-installation-to-clusterinstallation.sh) to do so:

    ```sh
    export INSTALLATION_NAME=<your-installation-name>
    export INSTALLATION_NAMESPACE=<your-installation-namespace>
    chmod +x ./convert-installation-to-clusterinstallation.sh
    ./convert-installation-to-clusterinstallation.sh
    ```

3. Mark the existing resources managed by the `Installation` as `Orphaned` so they are not deleted when you delete the `Installation`. Delete the `Installation` afterwards. You can use [the provided script `orphan-installation-resources.sh`](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/installation-to-clusterinstallation/orphan-installation-resources.sh) to do so. The script assumes you have set the `INSTALLATION_NAME` and `INSTALLATION_NAMESPACE` environment variables in the previous step:

    ```sh
    chmod +x ./orphan-installation-resources.sh
    ./orphan-installation-resources.sh
    ```

4. Find the Crossplane Configurations orphaned by the `Installation` (not necessarily all the listed resources will be owned by your `Installation`): `kubectl get configurations.pkg.crossplane.io -A -o name`
5. Label each `configurations.pkg.crossplane.io` found in the previous step to be adopted by the new `ClusterInstallation`. You must know the source name from the package reference, then run: `kubectl label configurations.pkg.crossplane.io <resource-name> extension.cennso.com/clusterinstallation-name=$INSTALLATION_NAME extension.cennso.com/source-name=<source-name-from-packageRef> app.kubernetes.io/managed-by- --overwrite`
6. Find the Crossplane Providers orphaned by the `Installation` (not necessarily all the listed resources will be owned by your Installation): `kubectl get providers.pkg.crossplane.io -A -o name`
7. Label each `providers.pkg.crossplane.io` found in the previous step to be adopted by the new `ClusterInstallation`. You must know the source name from the package reference, then run: `kubectl label providers.pkg.crossplane.io <resource-name> extension.cennso.com/clusterinstallation-name=$INSTALLATION_NAME extension.cennso.com/source-name=<source-name-from-packageRef> app.kubernetes.io/managed-by- --overwrite`
8. Apply the new `ClusterInstallation`: `kubectl apply -f clusterinstallation.yaml`
9. Monitor the status of `ClusterInstallation`: `kubectl get clusterinstallation.extension.cennso.com $INSTALLATION_NAME -oyaml | yq '.status' -P`.

### Common troubleshooting tips

If some `releases.helm.crossplane.io` is stuck with the `crossplane.io/external-create-pending` annotation, you can remove it by running: `kubectl annotate releases.helm.crossplane.io <resource-name> crossplane.io/external-create-pending-`

---
title: "2.9"
description: "To upgrade Cennso from version 2.8 to 2.9, follow these steps…"
url: "https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.8_to_2.9"
---

# Migration guide from Cennso 2.8 to Cennso 2.9

## Cennso Installation migration

To upgrade Cennso from version 2.8 to 2.9, follow these steps:

1. Disable GitOps for the following resources:
   - `agent-configuration` secret in `cennso-system` namespace
   - Monitoring resource in `cennso-monitoring` namespace
2. Upgrade Cennso to version `2.9.0-upgrade`:

   ```bash
   kubectl patch installations.extension.cennso.com cennso -p '{"spec": {"packageRef":{"version":"2.9.0-upgrade"}' --type=merge -n cennso-system
   ```

3. Wait for the upgrade process to finish. 
4. Switch to the final Cennso `2.9.0` version:

   ```bash
   kubectl patch installations.extension.cennso.com cennso -p '{"spec": {"packageRef":{"version":"2.9.0"}' --type=merge -n cennso-system
   ```

5. Wait for the upgrade process to finish.
6. Update the Monitoring resource in the `cennso-monitoring` namespace to version `2.9.0`.
7. Remove `agent-configuration` secret in `cennso-system` namespace from GitOps as it is dynamically generated now.
8. Add `cdm-configuration` secret from `cennso-system` namespace to GitOps.
9. Update the Monitoring resource in your GitOps repository based on the cluster state and enable it.

---
title: "2.7"
description: "To upgrade Cennso from version 2.6 to 2.7, follow these steps…"
url: "https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.6_to_2.7"
---

# Migration guide from Cennso 2.6 to Cennso 2.7

## Cennso Installation migration

To upgrade Cennso from version 2.6 to 2.7, follow these steps:

1. Ensure that the LoadBalancer service exposing CDM in Cennso 2.6.0 continues to expose CDM-Proxy pods in Cennso 2.7.0 by set its **spec.selector** to `app.kubernetes.io/component=nats,app.kubernetes.io/name=nats`.
2. Patch registry credentials with information about project and registry:

   ```bash
   kubectl -n cennso-system patch secret cennso-pull-secret -p '{"stringData": {"registry":"REGISTRY_DOMAIN","project":"PROJECT_WITH_IMAGES"}}' --type=merge
   ```

3. Download the new Cennso Agent chart from the registry and install a Cennso package to your cluster:

   ```bash
   helm pull oci://registry.cennso.com/public/charts/cennso-agent --version 2.7.0 --untar && \
   kubectl create -f cennso-agent/cennso-package.yaml && \
   rm -rf cennso-agent
   ```

   **Two** Package resources are created: one used during the upgrade process, named **cennso-2.7.0-upgrade**, and the second to be used after all resources are updated, named **cennso-2.7.0**.

   >**WARNING:** To minimise disruptions during the Cennso upgrade process, the **cennso-2.7.0-upgrade** package contains one additional component called **cdm-proxy** which consumes 0.3 CPU and 0.5 GiB of memory in total. The final step of this instruction removes these components, freeing these resources.

4. Download [installation-patch.sh](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.7.0/installation-patch.sh) and [installation-patches.yaml](https://docs.cennso.com/api/assets/cennso/cennso/latest/assets/upgrade-2.7.0/installation-patches.yaml).
5. Run `chmod +x ./installation-patch.sh`.
6. Get the existing Installation resource from the cluster: `kubectl get installations.extension.cennso.com -n cennso-system cennso -oyaml > installation.yaml`.
7. Ensure that all three files are in the same directory.
8. Execute the following command: `./installation-patch.sh`.
9. A new file named `installation-updated.yaml` is created. Compare this adjusted file to the charts documentation to ensure no extraneous changes have been made.
10. Apply the updated Installation object by running `kubectl apply -f installation-updated.yaml`.
11. Expose CDM-Node pods by creating the following Service:

   ```yaml
   apiVersion: v1
   kind: Service
   metadata:
     name: cdm-node-private
     namespace: cennso-system
   spec:
     ports:
       - appProtocol: tls
         name: leafnode-conn
         port: 6237
         protocol: TCP
         targetPort: leafnode-conn
     selector:
       app.kubernetes.io/name: cdm-node
     type: LoadBalancer
   ```

   This service must be reachable from the Core Clusters, which may involve setting annotations to configure it for the specific infrastructure. Depending on your configuration, this service might go through a private network.
12. After ensuring that everything works, proceed with upgrading the `CoreCluster` and `Monitoring` resources, as well as other resources.
13. After upgrading all `CoreClusters` by updating their **spec.compositionRevisionSelector** field to `2.7.0`, you can switch Installation to reference the second installed Package. You can achieve it by running the following command:

   ```bash
   kubectl patch installations.extension.cennso.com cennso -p '{"spec": {"packageRef":{"version":"2.7.0"},"values":{"nats":null}}}' --type=merge -n cennso-system
   ```

## High Availability Core Clusters migration

If you have a cluster in the High Availability (HA) mode enabled and you want to upgrade it to version 2.7, follow these steps:

1. Follow the [Core Cluster upgrade](https://docs.cennso.com/travelping/cennso/2.7/usage/network-topology/core-cluster.md#core-cluster-upgrade) instruction, but skip node upgrade step.

2. Copy the cluster API address from the `XClusterControllers` resource status. It is the address in the **hostname** field.

   ```bash
   kubectl get xclustercontrollers.cccc.cennso.com {YOUR_CLUSTER_NAME} -ojsonpath="{.status.ingress}"
   ```

3. Connect to the node.

4. Stop the `k0s` service.

   ```bash
   sudo k0s stop
   ```

5. Edit the external address in `/var/lib/k0s/kubelet.conf`. It is stored in the **[]clusters.cluster.server** field.

6. Start the `k0s` service.

   ```bash
   sudo k0s start
   ```

7. Check if `k0s` service can connect to the API server.

   ```bash
   k0s status
   ```

   It should have `Kube-api probing successful: true` after some time.

8. Remove `jointokenrequests.k0smotron.io` with the name containing the cluster name as a prefix to regenerate it.

   ```bash
   kubectl delete jointokenrequests.k0smotron.io {NAME_WITH_YOUR_CLUSTER_NAME_PREFIX}
   ```

9. Remove old Load Balancer service.

   ```bash
   kubectl delete service kmc-{YOUR_CLUSTER_NAME}-lb
   ```

---
title: "2.3"
description: "In order to upgrade the Cennso Agent chart, previously installed by copy-pasting a command from Cennso Cloud Portal, use the following command…"
url: "https://docs.cennso.com/cennso/cennso/latest/releases/migration_from_2.2_to_2.3"
---

# Migration guide from Cennso 2.2 to Cennso 2.3

## Cennso Agent chart upgrade

In order to upgrade the Cennso Agent chart, previously installed by copy-pasting a command from Cennso Cloud Portal, use the following command:

```bash
helm upgrade cennso-agent oci://registry.cennso.com/public/charts/cennso-agent --version 2.3.0 --reset-then-reuse-values -n cennso-system --take-ownership --set cennsoAgent.managementModeOptions.selfManagement.enabled=true
```

This command results in Cennso Agent to install the `Package` and `Installation` resources that take over the management of this chart.
The `Installation` resource named `cennso` is filled in with values used to install the Cennso Agent chart.
Further [upgrades](https://docs.cennso.com/travelping/cennso/2.3/installation/cennso-cloud.md#upgrade-cennso) must be done by creating new `Package` resources, using the one named `cennso` as a template, and by updating the `cennso` Installation resource to point to this new `Package`.

For more information read:

- [Upgrading Cennso instruction](https://docs.cennso.com/travelping/cennso/2.3/installation/cennsp-cloud.md#upgrade-cennso)
- [Extension Management](https://docs.cennso.com/travelping/cennso/2.3/administration/extensions.md)
- [Installation Custom Resource Documentation](https://docs.cennso.com/travelping/cennso/2.3/technical-reference/crds/installation_definition.md)
- [Package Custom Resource Documentation](https://docs.cennso.com/travelping/cennso/2.3/technical-reference/crds/extension.cennso.com_packages.md)

## Cennso Management Console

With Cennso 2.3.0, Cennso Management Console uses Grafana based on a Helm chart instead of Grafana Custom Resource from grafana-operator. A migration procedure is needed to keep the existing configuration, like for example authentication SSO settings, users or manually created dashboards.

### Migration steps

1. On Management Cluster running Cennso 2.2, find the Management Console's Grafana Custom Resource name in `cennso-system` namespace:

   ```bash
   GRAFANA_NAME=$(kubectl get grafanas.grafana.integreatly.org -o custom-columns=:metadata.name | grep "management-console" | head -n 1)
   ```

1. To ensure data integrity, shut down your Grafana instance before backing up the SQLite database by scaling down Deployment's replicas to 0 in Grafana Custom Resource:

   ```bash
   kubectl patch grafanas.grafana.integreatly.org $GRAFANA_NAME -n cennso-system --type='merge' -p '{"spec":{"deployment":{"spec":{"replicas":0}}}}'
   ```

1. Attach the Grafana PVC to a temporary pod to access the files. Get the Grafana PVC's name by running:

   ```bash
   GRAFANA_PVC=$(kubectl get pvc -l app.kubernetes.io/managed-by=grafana-operator -o jsonpath="{.items[*].metadata.name}")
   ```

   Then, mount it as `${GRAFANA-PVC}` in the temporary pod:

    ```bash
    kubectl apply -n cennso-system -f - <<EOF
    apiVersion: v1
    kind: Pod
    metadata:
      name: grafana-db-migration
      namespace: cennso-system
    spec:
      containers:
        - name: grafana-db-migration
          image: alpine:3.21
          command: [ "/bin/sh", "-c", "tail -f /dev/null" ]
          volumeMounts:
          - name: volume1
            mountPath: "/mnt/volume1"
      volumes:
      - name: volume1
        persistentVolumeClaim:
          claimName: ${GRAFANA_PVC}
      restartPolicy: Never
    EOF
    ```

1. Copy the Grafana database file to your host machine using the pod's name from previous step:

   ```bash
   kubectl cp -n cennso-system grafana-db-migration:/mnt/volume1/grafana.db /tmp/grafana.db
   ```

1. Remove the temporary pod:

   ```bash
   kubectl delete pod -n cennso-system grafana-db-migration
   ```

1. Upgrade to Cennso 2.3 by running this command with proper `${VERSION_TAG}`:

   ```bash
   helm upgrade --reuse-values cennso-agent oci://registry.cennso.com/public/charts/cennso-agent --namespace cennso-system  --version ${VERSION_TAG}
   ```

1. Wait until the new Configuration version is available. Check the latest one with this command:

   ```bash
   kubectl get configurations
   ```

   Make sure that `cccc` Configuration's conditions `Healthy` and `Installed` are `True`, and the version in the `Package` is the desired one.

1. Delete old Management Console instance to clean up old managed resources:

   ```bash
   kubectl -n cennso-system delete managementconsoles.cccc.cennso.com management-console
   ```

1. Restart `cennso-agent` deployment to install the new Management Console composition based on the latest revision:

   ```bash
   kubectl -n cennso-system rollout restart deploy  cennso-agent-management
   ```

1. Wait for the Management Console composition readiness:

   ```bash
   kubectl get managementconsoles -n cennso-system
   ```

1. Scale the deployment to `0` replicas and attach PVC to a temporary pod as previously:

   ```bash
   kubectl -n cennso-system scale deploy management-console --replicas=0
   ```

   Then, attach the new PVC to the temporary pod:

    ```bash
    kubectl apply -n cennso-system -f - <<EOF
    apiVersion: v1
    kind: Pod
    metadata:
      name: grafana-db-migration
      namespace: cennso-system
    spec:
      containers:
        - name: grafana-db-migration
          image: alpine:3.21
          command: [ "/bin/sh", "-c", "tail -f /dev/null" ]
          volumeMounts:
          - name: volume1
            mountPath: "/mnt/volume1"
      volumes:
      - name: volume1
        persistentVolumeClaim:
          claimName: management-console
      restartPolicy: Never
    EOF
    ```

1. Using this pod's name, copy the Grafana database file into the new volume:

   ```bash
   kubectl cp -n cennso-system /tmp/grafana.db grafana-db-migration:/mnt/volume1/grafana.db
   ```

1. Remove the temporary pod:

   ```bash
   kubectl delete pod -n cennso-system grafana-db-migration
   ```

1. Scale back the Management Console deployment:

   ```bash
   kubectl -n cennso-system scale deploy management-console --replicas=1
   ```

1. Using an account with Admin privileges, log in to Cennso Management Console to create Grafana service account and token:
   1. Sign in to Grafana and click **Administration** in the left-side menu.
   2. Go to **Users and access** -> **Service accounts**.
   3. Click **Add service account**.
   4. Enter a **Display name**: `grafana-operator-sa` and choose **Role**: `Admin`.
   5. Click **Create**.
   6. Go to **Users and access** -> **Service accounts**.
   7. Choose the service account `grafana-operator-sa` to which you want to add a token.
   8. Click **Add service account token** and enter the name: `grafana-operator-token`. Then, choose **Expiration**: `No expiration`.
   9. Click **Generate token**.

1. Copy the generated `{GENERATED_SERVICE_ACCOUNT_TOKEN}` and patch the `grafana-operator-token` secret on the Management Cluster:

    ```bash
    export TOKEN={GENERATED_SERVICE_ACCOUNT_TOKEN}
    ```

    ```bash
    kubectl patch secret -n cennso-system grafana-operator-token --type='merge' -p "{\"stringData\":{\"token\":\"${TOKEN}\"}}"
    ```

1. Verify that grafana-operator can connect to the Grafana instance:
   1. Create a sample dashboard:

      ```bash
      kubectl apply -n cennso-system -f - <<EOF
      apiVersion: grafana.integreatly.org/v1beta1
      kind: GrafanaDashboard
      metadata:
        name: external-grafanadashboard-sample
        namespace: cennso-system
      spec:
        instanceSelector:
          matchLabels:
            cccc.cennso.com/component: "grafana"
        json: >
          {
            "id": null,
            "title": "Simple Dashboard",
            "tags": [],
            "style": "dark",
            "timezone": "browser",
            "editable": true,
            "hideControls": false,
            "graphTooltip": 1,
            "panels": [],
            "time": {
              "from": "now-6h",
              "to": "now"
            },
            "timepicker": {
              "time_options": [],
              "refresh_intervals": []
            },
            "templating": {
              "list": []
            },
            "annotations": {
              "list": []
            },
            "refresh": "5s",
            "schemaVersion": 17,
            "version": 0,
            "links": []
          }
      EOF
      ```

   2. Verify the dashboard's status and check if it was successfully applied:

      ```bash
      kubectl get -n cennso-system grafanadashboards.grafana.integreatly.org external-grafanadashboard-sample -o json | jq '.status'
      ```

## Crossplane configurations migration to Cennso Extensions

Cennso 2.3 introduces modularisation based on extension packages. To start managing the already existing Crossplane configurations with Cennso Extensions, define properly the Extension Package. Please follow the migration steps after Cennso 2.3 installation.

### Migration steps

1. Get the name and OCI container of the configuration package that you would like to migrate and run this command on the cluster with `Configuration` CR:

   ```bash
   kubectl get configurations.pkg.crossplane.io {CONFIGURATION_NAME} -oyaml
   ```

2. Prepare a `Package` CR with the information from `Configuration` CR and mapping of the existing `Configuration` CR:

   ```yaml
   apiVersion: extension.cennso.com/v1alpha1
   kind: Package
   metadata:
     labels:
       cennso.com/version: {VERSION}
       extension.cennso.com/name: {EXTENSION_PACKAGE_NAME}
     name: {UNIQUE_PACKAGE_CR_NAME}
   spec:
     display:
       categories:
       - {CATEGORIES}
       name: {HUMAN_READABLE_NAME}
       description: {DESCRIPTION}
     destination: {ManagementCluster|CoreCluster} # Depends on where the configuration was installed
     documentationURL: {DOCUMENTATION_URL}
     projectURL: {PROJECT_URL}
     sources:
     - name: {OCI_CONTAINER_NAME}
       provider: ConfigurationPackage
       repository: {REGISTRY_ADDRESS}
       tag: {OCI_CONTAINER_TAG}
       configurationPackageProperties:
         name: {CONFIGURATION_CR_NAME}
         managementPolicies:
         - Observe
         - Update
         - LateInitialize
         - Create
   ```

3. Add it to the cluster:

   ```bash
   kubectl create -f package.yaml
   ```

4. Install the created package to take over the lifecycle of the installed `Configuration` CR:

   ```yaml
   apiVersion: extension.cennso.com/v1alpha1
   kind: Installation
   metadata:
     name: {UNIQUE_INSTALLATION_CR_NAME}
     namespace: cennso-infra
   spec:
     connectionSecretRef: # Define if targeting CoreCluster
       name: {CORE_CLUSTER_NAME}
       namespace: cennso-infra
     packageRef:
       name: {EXTENSION_PACKAGE_NAME}
       version: {VERSION}
   ```

5. Add it to the cluster: 

   ```bash
   kubectl create -f installation.yaml
   ```

6. Check if `Installation` CR is ready:

   ```bash
   kubectl get installations.extension.cennso.com {UNIQUE_INSTALLATION_CR_NAME} -n cennso-infra
   ```

## Enable Cennso 5G Core Operator and a Fast Path Provider node on a Core Cluster

With Cennso 2.3, Cennso 5G Core Operator is no longer installed on a Core Cluster by default. It needs to be enabled for the Core Cluster by extensions. Also, you must create the Fast Path Provider node manually.

### Migration steps

1. Download and install the Cennso 5G Core Operator extension package.

   ```bash
   helm pull {REGSITRY}/charts/cennso-core --version 2.3.0 --untar && \
   kubectl create -f cennso-core/cennso-package.yaml && \
   rm -rf cennso-core
   ```

2. Install Cennso 5G Core Operator on the desired Core Cluster by following the [extension installation instruction](https://docs.cennso.com/travelping/cennso/2.3/administration/extensions.md).

3. Deploy Fast Path Provider node on Core Cluster by applying the following manifest on your Core Cluster from the **All resources** view or using CLI.

   ```yaml
   kind: FPP
   apiVersion: cennso.com/v1alpha1
   metadata:
     name: node
   spec:
     imagePullSecrets:
       - name: cennso-pull-secret
     vppOptions:
       disableDPDK: true
       heapSize: "2G"
       singleCore: true
     logLevel: info
     resources:
       cpu: "2"
       memory: "2Gi"
       hugepages-2Mi: "4Gi"
   ```

   To read more about how to deploy FPP, check its [technical reference](https://docs.cennso.com/travelping/cennso/2.3/technical-reference/crds/cennso.com_fpps.md).

---
title: "Support Offerings"
description: "Travelping offers the following support packages as part of the Cennso products. Every Cennso product includes Cennso Base Support."
url: "https://docs.cennso.com/cennso/cennso/latest/support/support-offerings-overview"
---

# Cennso support offerings

Travelping offers the following support packages as part of the Cennso products. Every Cennso product includes Cennso Base Support. For customers requiring a higher level of support for their Cennso Network Solution (CNS), Cennso Care and Cennso Hyper Care Support can be purchased in addition.

## Overview of standard Cennso support offerings[^1]

The following table compares the standard Cennso support offerings:

| Cennso Base Support | Cennso Care Support | Cennso Hyper Care Support |
| :--- | :--- | :--- |
| 9/5[^2] support hours | 9/5 or 24/7 [^3] support hours | 24/7 support hours |
| Access to Cennso Support Center (CSC) | Access to Cennso Support Center (CSC) Phone support Regular review meeting Senior support team | Dedicated phone support Fast response times Joint Working Bridge Remote access |
| Cennso maintenance Cennso configuration support Cennso bugfixes | Cennso maintenance Cennso configuration support Cennso bugfixes CNS maintenance CNS composition fixes | Expert Support for joint operational activities |

## Excluded from support

- Support for unsupported versions, deployment models and environments
- Customers without a valid contract
- Service and application management (i.e. Event, Incident, Problem, Change and Capacity Management) for the customer's platform
- Dedicated feature development

[^1]: Standard Cennso Support - In addition to the standard offerings, Cennso Network Solution (CNS) Customers can enter into a Cennso Enterprise Solution Agreement (CESA) which provides the possibility to adapt the standard conditions (e.g. Customer-specific SLAs) to meet their platform requirements.  
[^2]: 9/5 Support -  Covers the hours of 8 AM - 5 PM from Monday to Friday CET/CEST.  
[^3]: 24/7 Support - 24/7 support is available upon request.

---
title: "Base support"
description: "Cennso Base Support is included in the Cennso Application Support (CAS) prices for the given Cennso components (CNC, CNFs)."
url: "https://docs.cennso.com/cennso/cennso/latest/support/base-support"
---

# Base Support

Cennso Base Support is included in the Cennso Application Support (CAS) prices for the given Cennso components (CNC, CNFs).

## Support scope

The following table lists the support scope of Cennso Base Support:

| | |
| :--- | :--- |
| **Support packaging** | Included in Cennso Application Support prices |
| **Phone support** | n/a |
| **Support entitlements** | Named Contacts[^1] (up to 10 users of Cennso Support Center (CSC) Portal) |
| **General Support Hours** | 9/5 |
| **General Support Response Time** | 2 business days |
| **Defect Support Hours**[^2] P1: High impact P2: Serious impact P3: Moderate impact P4: Low impact | P1: 9/5 P2: 9/5 P3: 9/5 P4: 9/5 |
| **Defect Response Time**[^3] | P1: 4 business hours P2: 1 business day P3: 2 business days P4: 1 business week |
| **Defect Workaround SLAs**[^4] | n/a |
| **Defect Fix SLAs**[^5] | P1: 2 weeks P2: 6 weeks P3: 12 weeks P4: 12 weeks |
| **Term** | minimum term of 12 months |

Cennso Base Support includes the following activities:

| Activity | Precondition |
| :--- | :--- |
| Access to the given repositories for the contracted Cennso components | Active support agreement based on the order for the licensed components Cennso login access credentials for Cennso Universal Registry (CUR) |
| Regular maintenance, which includes updates, enhancements, improvements, and bug fixing for Cennso components | Supported versions of Cennso components and runtime environment (IaaS, Kubernetes) |
| Fixing defects of given Cennso components occurred in production based on the priorities and Service Level Agreements (SLAs) | Qualified Defect Report Supported versions of Cennso components and runtime environment (IaaS, Kubernetes) of Cennso components at the time of Defect Report

[^1]: Named Contacts - As part of Cennso Base Support, registered personnel will be given access to the Cennso Support Center (CSC).
[^2]: Defect Support Hours – The time in which defect reports can be addressed.
[^3]: Defect Response Times – Travelping will use commercially reasonable efforts to meet the defect response time for the applicable priority level.<br>Priority 1: Production application down or major malfunction affecting business and a high number of users.<br>Priority 2: Serious degradation of application performance or functionality.<br>Priority 3: Application issue that has a moderate impact on the business.<br>Priority 4: Issue with limited business impact or question.
[^4]: Defect Workaround SLAs - This is the time until a workaround for a reported defect is proposed.
[^5]: Defect Fix SLAs - Fix SLAs times for the respective support level. In case feedback is requested from the customer, the timer counting the Fix SLA time is paused until the feedback is received.

---
title: "Care support"
description: "Cennso Care Support extends Cennso Base Support for customers with a jointly developed Cennso Network Solution (CNS)."
url: "https://docs.cennso.com/cennso/cennso/latest/support/care-support"
---

# Care Support

Cennso Care Support extends Cennso Base Support for customers with a jointly developed Cennso Network Solution (CNS).

## Support scope

The following table lists the support scope of Cennso Care Support:

| | |
| :--- | :--- |
| **Support packaging** | Purchase required in addition to Cennso Application Support only in scope of a Cennso Network Solution (CNS) |
| **Phone support** | Available |
| **Support entitlements** | Named Contacts[^1] (up to 10 users of Cennso Support Center (CSC) Portal) |
| **General Support**[^2] **Hours** | 9/5 or 24/7[^3] |
| **General Support Response Time** | 1 business day |
| **Defect Support Hours**[^4] P1: High impact P2: Serious impact P3: Moderate impact P4: Low impact | P1: 9/5 or 24/7[^3] P2: 9/5 or 24/7 P3: 9/5 P4: 9/5 |
| **Defect Response Time**[^5] | P1: 30 minutes P2: 30 minutes P3: 1 business hour P4: 4 business hours |
| **Defect Workaround SLAs**[^6] | P1: 2 hours P2: 4 hours P3: 1 business day P4: 3 business days |
| **Defect Fix SLAs**[^7] | P1: 2 weeks P2: 6 weeks P3: 12 weeks P4: 12 weeks |
| **Term** | minimum term of 12 months |

Cennso Care Support is extended to cover the compositions of the solution and includes the following activities:

| Activity | Precondition |
| :--- | :--- |
| Access to the given repositories for the contracted Cennso compositions | Active support agreement based on the order for the licensed components Cennso login access credentials for the Cennso Universal Registry (CUR) |
| Regular maintenance, which includes updates, enhancements, and improvements for Cennso compositions | Supported versions of Cennso components and runtime environment (IaaS, Kubernetes) |
| Overseeing (shadowing) of Customer Service and Application Management and Problem Management Team | Named Contacts must have the required qualifications (i.e. Certified Kubernetes Administrator or similar)
| Support for customer’s trace and log analysis | Named Contacts must have the required qualifications (i.e. Network Engineer) |
| GitOps pull request reviews, configuration checks | Travelping Professional Service has read and pull request access to the continuous delivery (CD) and GitOps systems of customer's supported CNS |
| Review of ICA and RCA documents | Shared ICA and RCA documents with Travelping Professional Services |

[^1]: Named Contacts - As part of Cennso Care Support, dedicated contacts will be appointed to connect to our Professional Service Engineers. These contacts are required to have the skill set to match the abilities of a Certified Kubernetes Administrator (CKA).
[^2]: General Support - The support offerings are coming with an included number of support hours. In case this threshold is exceeded, further required support will be charged in addition.
[^3]: 24/7 Support - 24/7 support is available upon request.
[^4]: Defect Support Hours – The time in which defect reports can be addressed.
[^5]: Defect Response Times – Travelping will use commercially reasonable efforts to meet the defect response time for the applicable priority level.<br>Priority 1: Production application down or major malfunction affecting business and a high number of users.<br>Priority 2: Serious degradation of application performance or functionality.<br>Priority 3: Application issue that has a moderate impact on the business.<br>Priority 4: Issue with limited business impact or question.  
[^6]: Defect Workaround SLAs - This is the time until a workaround for a reported defect is proposed.  
[^7]: Defect Fix SLAs - Fix SLAs times for the respective support level. In case feedback is requested from the customer, the timer counting the Fix SLA time is paused until the feedback is received.

---
title: "Hyper Care support"
description: "Cennso Hyper Care Support extends Cennso Care Support for customers who require professional service support for a given period while launching new services and service operations of a given supported CNS."
url: "https://docs.cennso.com/cennso/cennso/latest/support/hyper-care-support"
---

# Hyper Care Support

Cennso Hyper Care Support extends Cennso Care Support for customers who require professional service support for a given period while launching new services and service operations of a given supported CNS. Hyper Care Support provides access to Cennso experts who can join the operational activities of the customer on request based on the contracted hours.

## Support scope

The following table lists the support scope of Cennso Hyper Care Support:

| | |
| :--- | :--- |
| **Support packaging** | Purchase required separately in addition to Cennso Care Support |
| **Phone support** | Phone support with a dedicated number |
| **Support entitlements** | Named Contacts[^1] (up to 5 users) |
| **Expert Support**[^2] **Hours**[^3] | P1: 24/7 P2: 24/7 |
| **Expert Response Time**[^4] | P1: 30 minutes P2: 1 hour |
| **Expert Availability Time**[^5] | P1: 1 hour P2: 2 hours |
| **Term** | minimum term of 3 months |

Cennso Hyper Care Support includes the following activities:

| Activity | Precondition |
| :--- | :--- |
| Incident analysis, trace analysis | At leat temporary remote access to the CNS Kubernetes clusters and applications |
| Bridge calls for most critical incidents | Agreed and implemented bridge call facilities |

[^1]: Named Contacts - As part of Cennso Hyper Care Support, dedicated contacts will be announced to connect to our Professional Service Experts. These contacts are required to have the skill set to match the abilities of a Certified Kubernetes Administrator (CKA).
[^2]: Expert Support - The support offerings are coming with an included number of support hours. In case this threshold is exceeded, further required support will be charged in addition.
[^3]: Expert Support Hours - Professional Service Experts covering Cennso Hyper Care support are available during the Expert Support Hours.
[^4]: Expert Response Time - Travelping will use commercially reasonable efforts to meet the Expert Response Time for the applicable priority level.<br>Priority 1: Production application down or major malfunction affecting business and a high number of users.<br>Priority 2: Serious degradation of application performance or functionality.<br>For any other Priorities, refer to Cennso Care Support.
[^5]: Expert Availability Time - Refers to the time until one of the Professional Service Experts is available for the respective request.

---
title: "Introduction"
description: "Cennso Data Mesh (CDM) is an isolated communication system designed to provide secure, authenticated, and authorised data transfer within a distributed ecosystem. It serves as a framework to manage and automate the deployment of communication meshes across various clusters."
url: "https://docs.cennso.com/cennso/cdm/latest"
---

# Cennso Data Mesh

Cennso Data Mesh (CDM) is an isolated communication system designed to provide secure, authenticated, and authorised data transfer within a distributed ecosystem. It serves as a framework to manage and automate the deployment of communication meshes across various clusters.

## Functionality

The system orchestrates the flow of information by managing identity, permissions, and connectivity. It is built on three technical components functioning in a hierarchy: CDM Manager and CDM Node serve as low-level foundational elements, while CDM Provider operates at a higher level to represent and create the mesh entity.

It specifically facilitates two different types of data traffic: **Signaling**, which handles large, compressed payloads for Core Cluster operations, and **OAM**, which manages small but critical control information, such as software update notifications and installation statuses across the ecosystem.

## Benefits of Cennso Data Mesh

- High-level security: CDM implements a two-layer security model (TLS for communication and NATS for verification) and a three-level verification system (operators, accounts, and users) to strictly control access and visibility within the mesh.
- Strict isolation: The architecture ensures complete isolation between different communication instances. Data cannot "leak" or flow between accounts unless it is explicitly exported from one and imported into another.
- Operational resilience: CDM Nodes cache critical credentials (like JWTs and certificates) in memory. This means the mesh continues to function even if its underlying secrets are deleted, remaining operational until a pod restart is triggered.
- Scalability and availability: It supports both single and high availability modes, with the ability to scale node counts to ensure stable communication.

---
title: "Architecture"
description: "This document describes the architecture of Cennso Data Mesh (CDM). Cennso Data Mesh is built on three technical components that manage the communication, configuration, and orchestration within the mesh."
url: "https://docs.cennso.com/cennso/cdm/latest/architecture"
---

# Architecture

This document describes the architecture of Cennso Data Mesh (CDM).

Cennso Data Mesh is built on three technical components that manage the communication, configuration, and orchestration within the mesh. These components function in a hierarchy: the CDM Manager and CDM Node serve as low-level foundational elements, while the CDM Provider operates at a higher level to represent and create the mesh entity.

```likec4 dynamicViewVariant=diagram viewId=signaling_deployment
specification {
  element actor {
    notation "Person, User"
    style {
      color secondary
      opacity 35%
      shape person
    }
  }
  element cluster {
    notation "K8S cluster"
    style {
      opacity 35%
      border none
    }
  }
  element provider {
    style {
      color secondary
      opacity 35%
      border none
    }
  }
    element component {
    style {
      color secondary
      opacity 35%
      border none
    }
  }
}

model {
  user = actor 'User' {
    description 'Person who integrates system'
  }
  mc = cluster 'Management Cluster' {

    api1 = component 'Kubernetes API' {
      description 'Kubernetes API for managing resources'
    }
    cdm_provider = provider 'CDM Provider' {
      description 'Component providing CDM services'
    }
    manager = component 'CDM Manager' {
      description 'Component managing CDM operations'
    }
    k8s_provider = provider 'Kubernetes Provider' {
      description 'Component providing Kubernetes services'
    }
    helm_provider = provider 'Helm Provider' {
      description 'Component providing Helm services'
    }
  }
  
  cc = cluster 'Core Cluster' {

    api2 = component 'Kubernetes API' {
      description 'Kubernetes API for managing resources'
    }
    cdm = component 'CDM Instance' {
      description 'Instance of CDM Signaling'
    }
  }
}

views {

  dynamic view signaling_deployment {
    title 'CDM Signaling deployment'

    user
      -> api1 'Creates Mesh.cdm.cennso.com'

    api1
     <- cdm_provider 'Reads Mesh.cdm.cennso.com'
    
    cdm_provider
      -> manager 'Requests credential generation'

    manager
      -> manager 'Generates credentials'
    
    api1
      <- manager 'Stores the generated credentials'

    api1
      <- cdm_provider 'Reads the generated credentials'

    cdm_provider
      -> api1 'Creates Objects.kubernetes.crossplane.io'
    
    k8s_provider
      -> api1 'Reads Objects.kubernetes.crossplane.io'

    k8s_provider
      -> api2 'Creates Secrets in the Core CLuster'
    
    cdm_provider
      -> api1 'Creates Releases.helm-crossplane.io'
    
    helm_provider
      -> api1 'Reads Releases.helm-crossplane.io'
    
    helm_provider
      -> api2 'Deploys CDM Signaling Node to the Core Cluster'
    
    api2
      -> cdm 'Manages the lifecycle of the CDM Signaling Mesh instance'

    include
      user,
      mc,
        api1,
        cdm_provider,
        manager,
        k8s_provider,
        helm_provider,
      cc,
        api2,
        cdm

    style cc {
      color secondary
      opacity 20%
    }
    style mc {
      color secondary
      opacity 20%
    }
  }
}
```

## CDM Node

CDM Node acts as an "opinionated wrapper" for NATS servers, focusing on the technical execution of communication within the mesh. It serves as the primary communication element where permissions are applied. Its core responsibilities include:

- Security and verification: It implements a two-level security model (TLS) for communication and a three-level verification system (operators, accounts, and users) to control what each node can access or see.
- Clustering and availability: It can be run in single mode or High Availability (HA) mode. HA currently uses three nodes but may expand to five or seven in the future.
- Operational stability: Because it caches secrets and credentials (JWTs, certificates, and so on) in memory, the node continues to function even if its underlying secrets are deleted, remaining operational until the pod is restarted.

## CDM Manager

CDM Manager is the central authority for configuration, identity, and permissions. Its key duties are:

- Identity administration: This is a crucial service used to safely create new users and accounts, and link them together. It manages the complex imports and exports that ensure the management cluster has the necessary permissions to communicate with Cennso Portal.
- Secret management: It handles a job that automatically creates the necessary secrets (operators, accounts, users) required to launch a basic CDM Node, specifically for the OAM use case.
- Mesh composition: It defines how operators, accounts, and users are composed to allow a mesh to run across core clusters.
- Discovery and signing: It manages a Discovery mode to broadcast network information and serves as the central point for signing and granting permissions; no permissions are distributed across other components.

## CDM Provider

CDM Provider is a Kubernetes controller and orchestrator that handles the lifecycle of the mesh. Its responsibilities include:

- Automated installation: When a mesh is defined through a Custom Resource Definition (CRD), the provider automates the entire setup. It communicates with CDM Manager to retrieve secrets, copies them using Crossplane objects, and triggers the necessary Helm chart installations.
- Orchestration: It manages the sequential process of mesh creation, which is time-sensitive and requires waiting for specific elements to be ready before proceeding to the next step.
- Resource control: It allows users to control the mesh creation process using a limited set of parameters, such as cluster names and resource (CPU and memory) limits.
- Status and troubleshooting: It provides visibility into the installation process, allowing administrators to identify and troubleshoot failures, such as missing credentials or configuration errors.

---
title: "Installation"
description: "![NOTE] Cennso Data Mesh (CDM) is installed in Cennso by default. You can, however, install it manually if such necessity occurs."
url: "https://docs.cennso.com/cennso/cdm/latest/installation"
---

# Installation

>![NOTE] Cennso Data Mesh (CDM) is installed in Cennso by default. You can, however, install it manually if such necessity occurs.

This document describes how to install Cennso Data Mesh (CDM) and lists its requirements and dependencies.

## Requirements

CDM has the following requirements and dependencies:

- Crossplane 2.0+ installed on the Management Cluster
- Cennso Extension Provider 1.0.0 installed on the Management Cluster
- Helm Provider 0.20.4 installed on the Management Cluster

## Installation steps

CDM is installed on the Management Cluster either using Cennso Management Console (CMC), as any other [extension](https://docs.cennso.com/cennso/cennso/main/configuration/extensions.md#install-extensions), or the CLI:

1. Create a YAML file (for example: `extension-cdm.yaml`) defining the CDM Custom Resource (CR). For example:

   ```yaml
   apiVersion: extension.cennso.com/v1alpha1
   kind: ClusterInstallation
   metadata:
     name: extension-cdm
   spec:
     forProvider:
       packageRef:
         name: cdm
         version: "1.1.0"
       values:
         cdm-node:
           k8sClusterName: cccc-my-management-cluster
     providerConfigRef:
       name: default
   ```

2. Apply the CDM CR to your Management Cluster using this command:

   ```bash
   kubectl apply -f ./extension-cdm.yaml
   ```

3. To check if the `extension-cdm.yaml` package is installed on the Management Cluster, run:

   ```bash
   kubectl get clusterinstallations.extension.cennso.com extension-cdm
   ```

   Sample output:

   ```bash
   NAME           READY   SYNCED   EXTERNAL-NAME  AGE
   extension-cdm  True    True     extension-cdm  132m
   ```

---
title: "Mesh"
description: "Mesh Custom Resource (CR) allows you to configure and deploy a functional Cennso Data Mesh (CDM) Signaling instance on a Core Cluster. A minimal configuration includes these fields specified under spec.forProvider…"
url: "https://docs.cennso.com/cennso/cdm/latest/concepts/mesh"
---

# Mesh

[`Mesh` Custom Resource (CR)](https://docs.cennso.com/cennso/cdm/latest/technical-reference/crds/mesh.md) allows you to configure and deploy a functional Cennso Data Mesh (CDM) Signaling instance on a Core Cluster.

A minimal configuration includes these fields specified under **spec.forProvider**:

- **connectionSecretRef** that contains a reference to a Kubernetes Secret with kubeconfig for provider connection. It must contain:
  - **connectionSecretRef.name** - Name of the Secret
  - **connectionSecretRef.namespace** - Namespace where the Secret is stored

  By default, the kubeconfig is expected in the **kubeconfig** key in the referenced Secret.

- **clusterName** - Name of the cluster where Mesh will be deployed
- **mode** - Deployment mode, either `SINGLE` for single-instance deployment or `HA` for high availability
- **resources** - CPU and memory resource requirements for the Mesh pods

The following example shows the minimal configuration needed to deploy a working CDM Signaling in `SINGLE` mode with resource requests of `100m` CPU and `128Mi` memory:

```yaml
spec:
  forProvider:
    connectionSecretRef:      # Required
      name: secret-name
      namespace: namespace
    clusterName: name         # Required
    mode: SINGLE              # Required, available values: SINGLE, HA
    resources:                # Required
      cpu: "100m"
      memory: "128Mi"
```

## Provider configuration

The **spec.forProvider** section defines all deployment parameters for the Mesh. This section controls where the Mesh is deployed, how it runs, and what resources it uses. It serves as the primary configuration interface, mapping your desired state to the actual Mesh deployment on the target cluster.

### Connection and target

The connection and target settings establish how and where Mesh will be deployed. These fields point to the target Kubernetes cluster and specify the deployment location within that cluster.

- **connectionSecretRef** (Required) - References the Secret containing kubeconfig to access the target core cluster:
  - **name** - Secret name
  - **namespace** - Secret namespace
  - **key** - Key in Secret (defaults to `kubeconfig`)
- **clusterName** (Required) - Name of the cluster where Mesh will be deployed
- **namespace** - Target namespace for Mesh deployment

### Deployment configuration

The deployment configuration settings determine the operational characteristics of your Mesh instance, including whether it runs as a single instance or in high availability mode, and what compute resources it requires.

- **mode** (Required) - Deployment mode:
  - `SINGLE` (default) - Single-instance deployment without clustering, suitable for development, testing, or non-critical workloads where simplicity is the priority.
  - `HA` - High availability deployment with multiple replicas (minimum three nodes). All nodes in HA mode maintain the same resolution and provide fault tolerance. If one node fails, the cluster continues operating through the remaining nodes. This mode is recommended for production workloads.

- **resources** (Required) - CPU and memory requirements for the Mesh pods. Proper resource allocation is critical for performance and cost optimisation:
  - **cpu** - CPU request/limit (for example, "100m", "1")
  - **memory** - Memory request/limit (for example, "128Mi", "1Gi")

  Calculate resource requirements based on your expected workload characteristics, including messages per second throughput, message payload sizes, and bucket size. Under-provisioning can lead to message delays or drops, while over-provisioning increases operational costs. Test with representative workloads before deploying to production.

### Persistence

The persistence configuration controls how the Mesh stores data, including the size and behaviour of persistent volumes. These settings define both disk-based and memory-based storage, along with policies that determine what happens to data when the Mesh is deleted or scaled.

- **persistence** - Storage configuration:
  - **size** - Requested storage capacity for the CDM-Node data volume. Each pod gets its own PVC (default: "10Gi")
  - **memoryStoreSize** - Maximum storage allowed across all memory-based assets (default: "64Mi")
  - **storageClassName** - If set, overrides the default storage class for the CDM-Node's PVCs. If not set, the default storage class of the Kubernetes cluster is used
  - **accessModes** - Access modes for the PVC. Common values are `ReadWriteOnce`, `ReadOnlyMany`, and `ReadWriteMany` (default: `ReadWriteOnce`)
  - **pvcRetentionPolicy** - Retention policies for the CDM-Node's PVCs. Accepted values for both fields are `Retain` and `Delete`:
    - **whenDeleted** - Policy for PVC when the Mesh is deleted: `Retain` (default) preserves the data, or `Delete` removes it
    - **whenScaled** - Policy for PVC when the Mesh is scaled down: `Retain` (default) preserves the data, or `Delete` removes it

### Advanced configuration

The advanced configuration options provide fine-grained control over pod scheduling, monitoring, container images, and cluster behaviour. These settings allow you to optimise Mesh deployment for specific infrastructure requirements and operational needs.

- **affinity** - Pod affinity/anti-affinity rules following the full Kubernetes affinity specification. Use standard pod affinity to control pod placement and ensure CDM Signaling pods land on nodes with specific labels. This is particularly useful for dedicating certain machines to Mesh workloads or ensuring proper distribution across failure domains:
  - **nodeAffinity** - Node selection preferences to target specific nodes based on labels (for example, to schedule Mesh pods only on nodes with specific hardware characteristics or in specific zones)
  - **podAffinity** - Co-location rules to place Mesh pods on the same nodes as other specified pods (for example, to reduce network latency by co-locating with applications that communicate frequently with the Mesh)
  - **podAntiAffinity** - Anti-co-location rules to prevent Mesh pods from running on the same nodes as other specified pods (for example, to spread Mesh replicas across different nodes for better availability in HA mode)
- **noAdvertise** - When set to `true`, disables advertising this Mesh's client URLs to other cluster members. This prevents the Mesh from sharing its client connection URLs with other servers in the cluster, which is useful when running behind load balancers or when clients should not connect directly to this node
- **advertise** - Custom URL to advertise for this Mesh instance. When it's set, the **noAdvertise** field is ignored. It allows you to specify a custom address (such as a load balancer endpoint) that other cluster members will use to connect to this Mesh node. If not set, the Mesh will automatically determine the advertise URL based on the cluster configuration and network environment
- **enableMonitoring** - Enables monitoring via Prometheus metrics exporter when set to `true`
- **pullSecretRef** - References the Secret containing credentials to pull the CDM chart. If not specified, the default Cennso pull Secret will be used:
  - **name** - Secret name containing registry credentials
- **releaseOverrides** - Allows overriding Helm chart parameters:
  - **chartVersion** - Override the default CDM chart version

See the example with advanced configuration:

```yaml
apiVersion: cdm.cennso.com/v1alpha1
kind: Mesh
metadata:
  name: production-mesh
spec:
  forProvider:
    connectionSecretRef:
      name: prod-core-cluster
      namespace: cennso-infra
      key: kubeconfig
    clusterName: prod-core-cluster
    mode: HA
    namespace: mesh-system
    resources:
      cpu: "2"
      memory: "4Gi"
    persistence:
      size: "50Gi"
      memoryStoreSize: "512Mi"
      storageClassName: "fast-ssd"
      accessModes:
        - ReadWriteOnce
      pvcRetentionPolicy:
        whenDeleted: "Retain"
        whenScaled: "Retain"
    enableMonitoring: true
    noAdvertise: true
    affinity:
      podAntiAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
                - key: app
                  operator: In
                  values:
                    - cdm-mesh
            topologyKey: kubernetes.io/hostname
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpressions:
                - key: node-role.kubernetes.io/worker
                  operator: In
                  values:
                    - "true"
```

In this example, the Mesh is deployed in high availability mode with enhanced resources. The persistence configuration uses a fast SSD storage class with larger volumes, and retention policies are set to preserve data in all cases. Monitoring is enabled, and **noAdvertise** is set to `true` for load-balanced deployments. The affinity rules ensure that Mesh pods are spread across different nodes (anti-affinity) and only run on designated worker nodes (node affinity).

## Deletion policy

The **spec.deletionPolicy** field controls the lifecycle of external resources when the `Mesh` CR is deleted from Kubernetes. This setting determines whether the actual Mesh deployment and its resources are removed or preserved when you delete the CR.

- `Delete` (default) - Deletes the external Mesh resources when the CR is deleted
- `Orphan` - Leaves the external Mesh resources intact when the CR is deleted, allowing you to manage them independently

## Management policies

The **spec.managementPolicies** field provides granular control over which operations Crossplane is allowed to perform on the Mesh resources. This is useful when you want to observe existing resources without modifying them, or restrict certain operations for compliance or safety reasons.

- Default: `*` - Allows all operations
- Available policies: `Observe`, `Create`, `Update`, `Delete`, `LateInitialize`

## Provider configuration reference

The **spec.providerConfigRef** field allows you to specify which provider configuration to use for this Mesh deployment. Provider configurations define authentication and connection settings for the CDM provider. If not specified, the default provider configuration is used.

## Status

The **status** section represents the observed state of the last install or upgrade operation of the Mesh. While these operations ensure that Mesh pods initially reach an operational state, subsequent events — such as pod eviction or node failures — may affect Mesh health. To check the current status of the Mesh, refer to the Mesh dashboard and metrics.

### Mesh state

The **status.atProvider** section provides observable fields showing the actual Mesh state, including deployment phase and detailed installation progress:

- **phase** - Current deployment phase:
  - `Pending` - Waiting to start installation
  - `Installing` - Installation in progress
  - `Running` - Successfully deployed and operational
  - `Failed` - Deployment failed
  - `Terminating` - Being deleted
  - `Unknown` - Status unclear

- **lastTransitionTime** - Timestamp when the phase last changed

- **steps** - Detailed installation progress tracking each step of the deployment:
  - **name** - Step identifier:
    - `StepCreateCDMClaims` - Creating required CDM resource claims
    - `CopyResourcesToCoreCluster` - Copying resources to the target cluster
    - `DeployHelmRelease` - Deploying the Helm chart
  - **status** - Step status: `Pending`, `InProgress`, `Completed`, `Failed`, `Skipped`
  - **message** - Additional details about the step's status
  - **error** - Error information if the step failed
  - **completionTime** - When the step completed

### Conditions

The **status.conditions** provides information about the status of the last installation or upgrade operation. Conditions follow the standard Crossplane format for tracking resource health:

- `Ready` - Overall readiness status indicating whether the Mesh is fully operational
- `Synced` - Whether the spec is synchronized with the external resource

Each condition includes:

- **type** - Condition type (`Ready` or `Synced`)
- **status** - Current condition status: `True`, `False`, or `Unknown`
- **reason** - Machine-readable reason code for the condition's last transition
- **message** - Human-readable message with details about the condition's last transition
- **lastTransitionTime** - Timestamp when this condition last changed from one status to another
- **observedGeneration** - The resource generation number this condition was based on

### Observed generation

The **status.observedGeneration** field tracks which metadata.generation the controller has processed, helping to determine whether the controller has reconciled the latest changes to the resource specification.

See the example:

```yaml
status:
  atProvider:
    phase: Running
    lastTransitionTime: "2026-02-24T10:15:30Z"
    steps:
      - name: StepCreateCDMClaims
        status: Completed
        completionTime: "2026-02-24T10:12:45Z"
      - name: CopyResourcesToCoreCluster
        status: Completed
        completionTime: "2026-02-24T10:14:20Z"
      - name: DeployHelmRelease
        status: Completed
        completionTime: "2026-02-24T10:15:30Z"
  conditions:
    - lastTransitionTime: "2026-02-24T10:15:30Z"
      observedGeneration: 1
      reason: ReconcileSuccess
      status: "True"
      type: Synced
    - lastTransitionTime: "2026-02-24T10:15:45Z"
      observedGeneration: 1
      reason: Available
      status: "True"
      type: Ready
  observedGeneration: 1
```

---
title: "CDM Signaling"
description: "The goal of CDM Signaling deployment is to establish a mesh network on Core Clusters that enables efficient message-based communication between applications."
url: "https://docs.cennso.com/cennso/cdm/latest/use-cases/signaling"
---

# CDM Signaling Use Case

The goal of CDM Signaling deployment is to establish a mesh network on Core Clusters that enables efficient message-based communication between applications.

- Large payloads: It is designed to handle significant data transfers, with payloads reaching up to 1MB of compressed messages (which can be approximately 12.5MB uncompressed).
- Operational isolation: The isolation ensures that if a Signaling instance fails on one Core Cluster, the impact is localised and does not crash the entire ecosystem.
- Simplicity: Compared to the control-heavy OAM use case, the isolated communication in Signaling is relatively simplified.

## Key assumptions

- CDM Signaling network is not installed by default and must be activated separately through the `Mesh` Custom Resource
- Each Mesh deployment creates a dedicated account, with all users having access to everything within that account (no filtering capability at the resource level)
- Kubernetes must be installed on each machine in the Core Cluster where CDM Signaling will be deployed

## Deployment models

CDM Signaling supports two deployment modes to accommodate different availability and scalability requirements:

- Cluster mode (HA): High availability deployment requiring at least three nodes. All nodes maintain the same resolution and provide fault tolerance. If one node fails, the cluster continues to operate through the remaining nodes. This mode is recommended for production workloads where downtime must be minimized.

- Standalone mode (SINGLE): Single-node deployment without clustering capabilities. This mode is suitable for development environments, testing, or non-critical workloads where simplicity is prioritised over availability.

In both deployment modes, you can use Kubernetes standard pod affinity rules to ensure CDM Signaling pods are scheduled on nodes with specific labels, giving you control over which machines host the Mesh components.

---
title: "CDM OAM"
description: "CDM OAM is focused on controlling and ecosystem management."
url: "https://docs.cennso.com/cennso/cdm/latest/use-cases/oam"
---

# CDM OEM Use Case

CDM OAM is focused on controlling and ecosystem management.

- Control information: It is used to transmit small amounts of critical data, such as the status of Cennso installations on management clusters or notifications from the portal about new software packages.
- Small payloads: The data transferred is typically small, such as YAML files with a maximum size of around 50KB.
- High control and permissions: Because one portal can manage many different management clusters, this use case requires explicit imports and exports between accounts to ensure that communication only flows where it is intended.
- System criticality: If the OAM network fails, the entire ecosystem loses visibility and the ability to manage its operations, making it a high-stakes component.

CDM Manager plays a crucial role in the OAM use case by supervising the complex permission structures and ensuring that tokens (JWTs) are correctly signed and distributed to the relevant nodes.

---
title: "Configure Mesh"
description: "Mesh is a Custom Resource (CR) that represents a CDM Signaling installation on a Core Cluster. It is managed by the CDM Provider. Mesh CR allows you to define and configure CDM Signaling on a Core Cluster."
url: "https://docs.cennso.com/cennso/cdm/latest/guides/configure-mesh"
---

# Configure Mesh

`Mesh` is a Custom Resource (CR) that represents a CDM Signaling installation on a Core Cluster. It is managed by the CDM Provider. `Mesh` CR allows you to define and configure CDM Signaling on a Core Cluster.

## Prerequisites

Before creating `Mesh` CR, ensure the following components are properly configured:

### Management Cluster requirements

- **CDM Manager** - Must be running on the Management Cluster to handle identity administration, secret management, and mesh composition
- **CDM Provider** - Must be installed on the Management Cluster to orchestrate Mesh lifecycle operations
- **Crossplane** - Must be installed on the Management Cluster to enable resource provisioning and cross-cluster operations

### Core Cluster requirements

- **Core Cluster registration** - Core Cluster must be registered in the Cennso Management Cluster
- **Node Attachment** - At least one node must be attached to the Core Cluster
- **Kubernetes** - Kubernetes must be installed on each machine in the Core Cluster where CDM Signaling will be deployed
- **Cluster connectivity** - The Management Cluster must have network access to the Core Cluster through kubeconfig

For more details about the architecture and component interactions, see the [Architecture documentation](https://docs.cennso.com/cennso/cdm/latest/architecture.md).

## Steps

1. Create a YAML file for your Mesh (for example: `mesh.yaml`) resource and configure it according to your needs. For example:

    ```yaml
    apiVersion: cdm.cennso.com/v1alpha1
    kind: Mesh
    metadata:
      name: my-mesh
    spec:
      forProvider:
        connectionSecretRef:
          name: my-core-cluster
          namespace: cennso-infra
          key: kubeconfig
        clusterName: my-core-cluster
        mode: SINGLE
        namespace: mesh-system
        resources:
          cpu: "100m"
          memory: "128Mi"
        persistence:
          size: "1Gi"
          memoryStoreSize: "128Mi"
          storageClassName: "standard"
          accessModes:
            - ReadWriteOnce
          pvcRetentionPolicy:
            whenDeleted: "Delete"
            whenScaled: "Retain"
    ```

    For more details about `Mesh` CRD, refer to the [Mesh API reference](https://docs.cennso.com/cennso/cdm/latest/technical-reference/crds/mesh.md).

2. Apply `Mesh` CR to your Management Cluster using this command:

    ```bash
    kubectl apply -f ./mesh.yaml
    ```

## Verification

To verify that `Mesh` has been created successfully, follow these steps:

1. To check whether `Mesh` CR is created and what its status is, run:

    ```bash
    kubectl get mesh my-mesh
    ```

---
title: "Configure the CDM TLS certificate"
description: "CDM Node terminates the TLS connections that Core Clusters open on the leafnode port 6237. It uses the certificate from the cdm-tls-cert Secret in the cennso-system namespace. Cennso does not create this Secret. You create a cert-manager Certificate resource that issues it."
url: "https://docs.cennso.com/cennso/cdm/latest/guides/configure-cdm-tls-certificate"
---

# Configure the CDM TLS certificate

CDM Node terminates the TLS connections that Core Clusters open on the leafnode port 6237. It uses the certificate from the `cdm-tls-cert` Secret in the `cennso-system` namespace. Cennso does not create this Secret. You create a cert-manager `Certificate` resource that issues it.

This guide explains how to issue the certificate and how to change it later. If CDM is reachable under more than one domain, for example a private and a public one, the certificate must cover each of them.

## Prerequisites

- The cert-manager extension is installed on the Management Cluster.
- A cert-manager `ClusterIssuer` that uses a publicly trusted certificate authority. Core Cluster agents trust the default certificate authorities and have no setting for a custom one.
- A DNS-01 solver on the `ClusterIssuer` when the certificate contains wildcard names. Certificate authorities issue wildcard certificates only after a DNS-01 challenge.
- The CDM domain from [Configure Cennso Data Mesh](https://docs.cennso.com/cennso/cennso/latest/configuration/cdm-configuration.md). If you use a public CDM domain, you need it as well.

## Domain name rules

Core Clusters connect to CDM Node with the domain from the `CDM_NODE_ENDPOINT` value, for example `tls://cdm-node.test.example.net:6237`. The certificate must contain a name that matches this domain. Follow these rules when you list the names:

- A wildcard name matches exactly one DNS label. The name `*.test.example.net` matches `cdm-node.test.example.net` but not `cdm-node.public.test.example.net`. Add a second wildcard `*.public.test.example.net` for the public domain.
- Cover every domain that Core Clusters use to reach CDM Node.
- Cover every host that an Application Load Balancer (ALB) serves with `cennso-system/cdm-tls-cert` as its default certificate. For an example, see [Set up a private connection between clusters in IBM Cloud](https://docs.cennso.com/cennso/cennso/latest/user-guides/private-networking.md).

## Steps

1. Create a file named `cdm-tls-cert.yaml` with the following `Certificate` resource. Replace `{CLUSTER_ISSUER_NAME}` with the name of your `ClusterIssuer` and adjust the domain names:

   ```yaml
   apiVersion: cert-manager.io/v1
   kind: Certificate
   metadata:
     name: cdm-tls-cert
     namespace: cennso-system
   spec:
     secretName: cdm-tls-cert
     issuerRef:
       name: {CLUSTER_ISSUER_NAME}
       kind: ClusterIssuer
     dnsNames:
       - '*.test.example.net'
       - '*.public.test.example.net'
   ```

2. (Optional) If the `cdm-tls-cert` Secret already exists, save a copy of it:

   > [!WARNING]
   > When cert-manager issues the certificate, it replaces the content of an existing `cdm-tls-cert` Secret. The backup file contains the private key. Store it in a secure place.

   ```bash
   kubectl -n cennso-system get secret cdm-tls-cert -o yaml > cdm-tls-cert-backup.yaml
   ```

3. Apply the resource:

   ```bash
   kubectl apply -f cdm-tls-cert.yaml
   ```

4. Wait until cert-manager issues the certificate:

   ```bash
   kubectl -n cennso-system wait --for=condition=Ready certificate/cdm-tls-cert --timeout=300s
   ```

   The command prints the following line when the issue succeeds:

   ```text
   certificate.cert-manager.io/cdm-tls-cert condition met
   ```

CDM Node serves the new certificate after its pods restart. With CDM Node 1.7.0 or later, the restart starts by itself. For earlier versions, see [Apply a renewed certificate](#apply-a-renewed-certificate).

## Verification

To check that CDM Node serves a certificate that matches your domain, run the following command with your CDM domain:

```bash
openssl s_client -connect cdm-node.test.example.net:6237 -servername cdm-node.test.example.net -verify_hostname cdm-node.test.example.net </dev/null 2>&1 | grep Verification
```

Sample output:

```text
Verification: OK
```

To list the names in the certificate that CDM Node serves, run:

```bash
openssl s_client -connect cdm-node.test.example.net:6237 -servername cdm-node.test.example.net </dev/null 2>/dev/null | openssl x509 -noout -ext subjectAltName
```

Sample output:

```text
X509v3 Subject Alternative Name:
    DNS:*.test.example.net, DNS:*.public.test.example.net
```

> [!NOTE]
> If the verification fails, see [Certificate is not ready](https://docs.cennso.com/cennso/cdm/latest/troubleshooting/certificate-not-ready.md), [TLS handshake fails](https://docs.cennso.com/cennso/cdm/latest/troubleshooting/tls-handshake-failure.md), or [CDM Node serves an old certificate](https://docs.cennso.com/cennso/cdm/latest/troubleshooting/stale-certificate.md).

## Add a domain name later

To add a domain name, for example when you expose CDM on a public domain, edit the `Certificate` resource:

1. Add the name to `spec.dnsNames` in `cdm-tls-cert.yaml`. For a public domain `cdm-node.public.test.example.net`, add `'*.public.test.example.net'`.

2. Apply the resource:

   ```bash
   kubectl apply -f cdm-tls-cert.yaml
   ```

cert-manager issues a new certificate for the changed list. Public certificate authorities limit how often they issue certificates for the same names. Add all names in one change.

## Apply a renewed certificate

CDM Node reads the certificate when it starts and keeps it in memory. A renewed or re-issued certificate reaches CDM Node only after its pods restart.

CDM Node 1.7.0 and later restart automatically. The Reloader component watches the `cdm-tls-cert` Secret and restarts the `cdm-node` pods one at a time. The restart takes about one minute.

For earlier CDM Node versions, restart the pods yourself after each issue:

```bash
kubectl -n cennso-system rollout restart statefulset cdm-node
```

To wait for the restart to finish, run:

```bash
kubectl -n cennso-system rollout status statefulset cdm-node
```

The command prints `partitioned roll out complete: 3 new pods have been updated...` when all pods run again.

## Next steps

- [Configure mixed network connectivity for Core Clusters](https://docs.cennso.com/cennso/cennso/latest/user-guides/mixed-network-connectivity.md)
- [Configure Cennso Data Mesh](https://docs.cennso.com/cennso/cennso/latest/configuration/cdm-configuration.md)

---
title: "Broken state"
description: "A Mesh enters the Broken phase when one or more critical steps in the installation pipeline fail in a way that prevents automatic recovery."
url: "https://docs.cennso.com/cennso/cdm/latest/troubleshooting/broken-state"
---

# Broken state

A Mesh enters the Broken phase when one or more critical steps in the installation pipeline fail in a way that prevents automatic recovery.

A "broken state" means the Mesh system cannot continue working or recover by itself due to an unrecoverable error during the installation steps. This situation requires immediate attention and may cause service interruptions.

## Main causes

The most common cause is the loss or corruption of important security secrets (NATS claims secrets). These secrets are essential for the system’s security and operation. If any are missing or invalid, the Mesh cannot function correctly.

## Identifying broken state

The following field values indicate that a Mesh is broken:

- Phase field: `status.atProvider.phase: Broken`
- Step status: One or more steps showing the `Broken` status
- Condition: `type: Ready` with `status: "False"` and `reason: InstallationBroken`
- Error messages: Detailed error information in **status.atProvider.steps[].message**

Example:

   ```yaml
   apiVersion: cdm.cennso.io/v1alpha1
   kind: Mesh
   metadata:
      name: example-mesh-broken
      creationTimestamp: "2025-12-16T10:00:00Z"
   spec:
      forProvider:
         connectionSecretRef:
            name: cdm-connection-secret
            namespace: default
            key: connection-data
         mode: HA
         clusterName: core-cluster-01
         namespace: cdm-system
         resources:
            cpu: "2"
            memory: 4Gi
   status:
      atProvider:
         phase: Broken                                # Mesh is in Broken phase
         steps:
         - name: StepCreateCDMClaims
           status: Broken                                # First step is Broken
           message: CDM Manager API is unreachable or returned invalid response
         - name: CopyResourcesToCoreCluster
           status: Completed
           message: Resources copied successfully
         - name: DeployHelmRelease
           status: Completed
           message: Helm release deployed successfully
       conditions:
         - type: Ready
           status: "False"
           lastTransitionTime: "2025-12-16T10:15:30Z"
           reason: "Unavailable"
           message: "Unavailable"
  ```

## Threats and consequences of the broken state

- **Security risk:** You may see error messages about missing or invalid secrets. The system cannot verify users or services.
- **No simple recovery:** Missing secrets cannot be recreated individually. The system needs the original secrets to work.
- **Service impact:**
  - Some services may continue to run for a short time, but new changes or restarts will fail.
  - No new features or updates can be applied.
  - Automatic recovery from failures is not possible.
  - If the system restarts, it may not start again.
  - There is a risk of losing stored data.

## Recovery procedures

- Restore the missing secret (recommended)

  If you have a backup of the missing secret, restore it as soon as possible. This is the fastest and safest way to recover. There will be no downtime or data loss if the original secret is restored correctly.

  To restore the secret from a file, run:

  ```sh
  kubectl apply -f {SECRET_NAME}.yaml
  ```

  To restore the secret from a cluster backup/snapshot, refer to your backup solution's restoration procedure.

  To verify whether the secret is restored, run:

  ```sh
  kubectl get secret {SECRET_NAME} -n {NAMESPACE}
  ```

  where:

  - **{SECRET_NAME}** - Name of the backup secret to restore
  - **{NAMESPACE}** - Namespace where the secret is stored

- Recreate the Mesh (if no backup exists)

  If you cannot restore the secret, you must delete and recreate the entire Mesh system. As a result:

  - The system will be unavailable during this process (usually 5–15 minutes).
  - All users and applications will need new credentials.
  - Some data may be lost and cannot be recovered.

  To recreate the Mesh, follow these steps:

    1. Document the current configuration:

       ```sh
       kubectl get mesh {MESH-NAME} -o yaml > {MESH_BACKUP}.yaml
       ```

    2. Save the current Mesh configuration to a file.

    3. Delete the broken Mesh. This operation triggers a cleanup.

       ```sh
       kubectl delete mesh <mesh-name>
       ```

    4. Wait for the cleanup to complete. To verify that it did end, run:

       ```sh
       kubectl get mesh <mesh-name>
       ```

     The response should be: `Error from server (NotFound)`

    5. Recreate Mesh from the saved configuration.

## Summary

A broken state is a critical issue that must be resolved quickly to avoid service disruption and data loss. Always try to restore from the backup first. If that is not possible, be prepared for downtime and additional recovery steps. Protect your system by maintaining secure backups and monitoring key resources.

---
title: "Certificate is not ready"
description: "The cdm-tls-cert Certificate provides the certificate that CDM Node serves to Core Clusters. When cert-manager cannot issue it, the Secret stays empty or keeps its old content. Core Clusters cannot connect to CDM Node with a certificate that matches your domain."
url: "https://docs.cennso.com/cennso/cdm/latest/troubleshooting/certificate-not-ready"
---

# Certificate is not ready

The `cdm-tls-cert` Certificate provides the certificate that CDM Node serves to Core Clusters. When cert-manager cannot issue it, the Secret stays empty or keeps its old content. Core Clusters cannot connect to CDM Node with a certificate that matches your domain.

## Symptoms

- The `READY` column of the `Certificate` shows `False`:

  ```bash
  kubectl -n cennso-system get certificate cdm-tls-cert
  ```

  ```text
  NAME           READY   SECRET         AGE
  cdm-tls-cert   False   cdm-tls-cert   5m
  ```

- The events of the `Certificate` report an error. To read them, run:

  ```bash
  kubectl -n cennso-system describe certificate cdm-tls-cert
  ```

## Possible causes

To find the cause, check the following resources in this order.

1. The `ClusterIssuer` is not ready:

   ```bash
   kubectl get clusterissuers.cert-manager.io
   ```

   The `READY` column of your issuer must show `True`.

2. The certificate request is not approved or not ready:

   ```bash
   kubectl -n cennso-system get certificaterequests.cert-manager.io
   ```

3. The DNS-01 challenge fails. This applies to issuers of a certificate authority that uses the ACME protocol. List the orders and the challenges:

   ```bash
   kubectl -n cennso-system get orders.acme.cert-manager.io,challenges.acme.cert-manager.io
   ```

   A challenge in a state other than `valid` carries the reason in its `status.reason` field. Typical reasons are missing DNS credentials or a DNS zone that the solver cannot change.

4. cert-manager reports an error. Read its log:

   ```bash
   kubectl -n cert-manager logs deploy/cert-manager --tail=50
   ```

## Solution

To resolve this issue, fix the cause that you found and let cert-manager retry:

1. Correct the `ClusterIssuer` or its DNS-01 solver configuration. For example, update the DNS credentials Secret that the solver uses.

2. Wait until cert-manager issues the certificate:

   ```bash
   kubectl -n cennso-system wait --for=condition=Ready certificate/cdm-tls-cert --timeout=300s
   ```

   The command prints `certificate.cert-manager.io/cdm-tls-cert condition met` when the issue succeeds.

3. Verify the certificate that CDM Node serves. For the steps, see [Configure the CDM TLS certificate](https://docs.cennso.com/cennso/cdm/latest/guides/configure-cdm-tls-certificate.md#verification).

---
title: "TLS handshake fails"
description: "Core Clusters connect to CDM Node on port 6237 over TLS. The handshake fails in two cases. The certificate that CDM Node serves does not match the domain of the Core Cluster, or the Core Cluster does not trust the issuer of the certificate."
url: "https://docs.cennso.com/cennso/cdm/latest/troubleshooting/tls-handshake-failure"
---

# TLS handshake fails

Core Clusters connect to CDM Node on port 6237 over TLS. The handshake fails in two cases. The certificate that CDM Node serves does not match the domain of the Core Cluster, or the Core Cluster does not trust the issuer of the certificate. The Core Cluster cannot join CDM until the handshake succeeds.

## Symptoms

- The log of the Cennso Agent on the Core Cluster contains a TLS error that includes `x509`. Typical messages are `certificate is valid for ..., not ...` for a name mismatch and `certificate signed by unknown authority` for an untrusted issuer.
- The `openssl` check from your workstation reports a verification error. The check connects with the domain that the Core Cluster uses:

  ```bash
  openssl s_client -connect {CDM_DOMAIN}:6237 -servername {CDM_DOMAIN} -verify_hostname {CDM_DOMAIN} </dev/null 2>&1 | grep Verification
  ```

  For a name mismatch, the output is:

  ```text
  Verification error: hostname mismatch
  ```

  For a certificate from an issuer that your workstation does not trust, the output names the verification error. For example, a self-signed certificate gives:

  ```text
  Verification error: self-signed certificate
  ```

## Possible causes

- The certificate does not contain a name that matches the domain. A wildcard name matches exactly one DNS label, so `*.test.example.net` does not match `cdm-node.public.test.example.net`. To list the names in the certificate that CDM Node serves, run:

  ```bash
  openssl s_client -connect {CDM_DOMAIN}:6237 -servername {CDM_DOMAIN} </dev/null 2>/dev/null | openssl x509 -noout -ext subjectAltName
  ```

- The certificate comes from an issuer that is not publicly trusted. To show the issuer, run:

  ```bash
  kubectl -n cennso-system get secret cdm-tls-cert -o jsonpath='{.data.tls\.crt}' | base64 -d | openssl x509 -noout -issuer
  ```

## Solution

To resolve this issue, correct the certificate:

1. If a name is missing, add it to `spec.dnsNames` of the `cdm-tls-cert` Certificate and apply the resource. Add one wildcard for each domain level, for example `*.public.test.example.net`. For the steps, see [Configure the CDM TLS certificate](https://docs.cennso.com/cennso/cdm/latest/guides/configure-cdm-tls-certificate.md#add-a-domain-name-later).

2. If the issuer is not publicly trusted, change `spec.issuerRef` of the Certificate to a `ClusterIssuer` that uses a publicly trusted certificate authority.

3. Wait until CDM Node serves the new certificate. CDM Node 1.7.0 and later restart by themselves. For earlier versions, see [CDM Node serves an old certificate](https://docs.cennso.com/cennso/cdm/latest/troubleshooting/stale-certificate.md).

4. Run the `openssl` check again. The output is `Verification: OK` when the certificate is correct.

---
title: "CDM Node serves an old certificate"
description: "CDM Node reads the certificate from the cdm-tls-cert Secret when it starts and keeps it in memory. After cert-manager issues a new certificate, CDM Node keeps serving the old one until its pods restart. Core Clusters that use a new domain fail the TLS handshake in the meantime."
url: "https://docs.cennso.com/cennso/cdm/latest/troubleshooting/stale-certificate"
---

# CDM Node serves an old certificate

CDM Node reads the certificate from the `cdm-tls-cert` Secret when it starts and keeps it in memory. After cert-manager issues a new certificate, CDM Node keeps serving the old one until its pods restart. Core Clusters that use a new domain fail the TLS handshake in the meantime.

## Symptoms

- The `Certificate` is ready, but Core Clusters still fail the TLS handshake. For the symptoms of the handshake failure, see [TLS handshake fails](https://docs.cennso.com/cennso/cdm/latest/troubleshooting/tls-handshake-failure.md).
- The names in the Secret differ from the names that CDM Node serves.

To list the names in the Secret, run:

```bash
kubectl -n cennso-system get secret cdm-tls-cert -o jsonpath='{.data.tls\.crt}' | base64 -d | openssl x509 -noout -ext subjectAltName
```

To list the names that CDM Node serves, run:

```bash
openssl s_client -connect {CDM_DOMAIN}:6237 -servername {CDM_DOMAIN} </dev/null 2>/dev/null | openssl x509 -noout -ext subjectAltName
```

When the two outputs differ, CDM Node serves an old certificate.

## Possible causes

- CDM Node runs a version earlier than 1.7.0. These versions do not restart after the certificate changes.
- The Reloader component does not watch the Secret. To check the annotation that triggers the restart, run:

  ```bash
  kubectl -n cennso-system get statefulset cdm-node -o jsonpath='{.metadata.annotations}'
  ```

  The output must contain `secret.reloader.stakater.com/reload` with the value `cdm-tls-cert`.

- The Reloader pod does not run. To check it, run:

  ```bash
  kubectl -n cennso-system get deploy | grep reloader
  ```

## Solution

To resolve this issue, restart the CDM Node pods:

> [!NOTE]
> The restart takes one pod at a time. The pod that restarts is unavailable for a short time.

1. Restart the pods:

   ```bash
   kubectl -n cennso-system rollout restart statefulset cdm-node
   ```

2. Wait until the restart finishes:

   ```bash
   kubectl -n cennso-system rollout status statefulset cdm-node
   ```

   The command prints `partitioned roll out complete: 3 new pods have been updated...` when all pods run again.

3. List the names that CDM Node serves again. The output now matches the names in the Secret.

---
title: "Grafana dashboard"
description: "CDM Node Grafana dashboard helps you visualise and analyse data from the metrics that CDM Node exposes. By default, the CDM Node dashboard is pre-configured with the following sections…"
url: "https://docs.cennso.com/cennso/cdm/latest/observability/cdm-node-dashboard"
---

# CDM Node Grafana dashboard

**CDM Node** Grafana dashboard helps you visualise and analyse data from the metrics that CDM Node exposes. By default, the CDM Node dashboard is pre-configured with the following sections:

- OS Metrics
- Throughput
- Client Metrics
- JetStream
- JetStream Memory
- JetStream Storage

Read the sections below to learn what information you can get from each Grafana dashboard panel.

## OS Metrics

This section shows operating system-level resource usage for CDM Node server pods, including:

- **Server CPU** - CPU usage percentage for each CDM Node server pod over time

  Use this panel to identify pods under high CPU load. Sustained high CPU usage may indicate resource saturation or unexpected traffic spikes that require investigation.

- **Server Memory** - amount of memory used by each CDM Node server pod over time

  Use this panel to track memory consumption trends. Continuously growing memory usage may indicate a memory leak or insufficient memory limits.

![OS Metrics section](https://docs.cennso.com/api/assets/cennso/cdm/latest/assets/dashboards/os-metrics.png)

## Throughput

This section shows the rate of data and messages flowing through CDM Node in a specified period, including:

- **Bytes In** - rate of incoming bytes received by each CDM Node server pod

  Use this panel to monitor the inbound data volume and identify any unusual spikes or drops in incoming traffic.

- **NATS Msgs In** - rate of incoming NATS messages received by each CDM Node server pod

  Use this panel alongside **Bytes In** to understand the ratio of message size to volume. A high message rate with low byte throughput indicates many small messages.

- **Bytes Out** - rate of outgoing bytes sent by each CDM Node server pod

  Use this panel to monitor outbound data volume and correlate it with **Bytes In** to identify any imbalances between incoming and outgoing traffic.

- **NATS Msgs Out** - rate of outgoing NATS messages sent by each CDM Node server pod

  Use this panel to compare with **NATS Msgs In** and identify whether messages are being forwarded, dropped, or accumulated.

![Throughput section](https://docs.cennso.com/api/assets/cennso/cdm/latest/assets/dashboards/throughput.png)

## Client Metrics

This section shows metrics related to the clients connected to CDM Node, including:

- **Connections** - number of active client connections to each CDM Node server pod at a given point in time

  Use this panel to track the number of active clients. Sudden drops in connections may indicate client disconnections or CDM Node restarts.

- **Subscriptions** - number of active subscriptions on each CDM Node server pod

  Use this panel to understand subscription growth over time. An unexpectedly high number of subscriptions may indicate leaking subscriptions in connected clients.

- **Slow Consumers** - number of slow consumers detected by each CDM Node server pod

  Use this panel to identify slow consumers before message loss occurs. A slow consumer is a client that cannot keep up with the rate of incoming messages, causing the server to buffer or drop messages.

![Client Metrics section](https://docs.cennso.com/api/assets/cennso/cdm/latest/assets/dashboards/client-metrics.png)

## JetStream

This section shows general JetStream statistics for CDM Node, including:

- **Errors** - rate of JetStream API errors reported by each CDM Node server pod

  Use this panel to detect problems with JetStream operations. A sustained error rate requires investigation to identify whether the root cause is configuration, resource exhaustion, or client misbehaviour.

- **Accounts** - number of JetStream accounts active on each CDM Node server pod

  Use this panel to track the number of accounts using JetStream. Unexpected changes in account count may indicate misconfiguration or unintended account creation.

![JetStream section](https://docs.cennso.com/api/assets/cennso/cdm/latest/assets/dashboards/jetstream.png)

## JetStream Memory

This section shows memory usage and limits for the JetStream subsystem on each CDM Node server pod, including:

- **Usage** - amount of memory currently used by JetStream in bytes

- **Usage Pct** - JetStream memory usage as a percentage of the configured limit

  > [!NOTE]
  > **IMPORTANT:** This panel includes threshold indicators. Usage above 60% is highlighted in yellow, and above 80% in red. A value approaching 100% means JetStream has reached its memory limit, which will cause new messages to be rejected.

- **Limit** - maximum memory that JetStream is allowed to use on each CDM Node server pod, as defined by the configuration

  Use this panel alongside **Usage** and **Usage Pct** to evaluate whether the current memory limit is sufficient for your workload.

![JetStream Memory section](https://docs.cennso.com/api/assets/cennso/cdm/latest/assets/dashboards/jetstream-memory.png)

## JetStream Storage

This section shows disk storage usage and limits for the JetStream subsystem on each CDM Node server pod.

- **Usage** - amount of disk storage currently used by JetStream in bytes

- **Usage Pct** - JetStream storage usage as a percentage of the configured limit

  Use this panel to monitor how close the storage is to capacity. When storage is full, JetStream cannot persist new messages and will reject writes.

- **Limit** - maximum disk storage that JetStream can use on each CDM Node server pod, as defined by the configuration.

  Use this panel alongside **Usage** and **Usage Pct** to evaluate whether the current storage limit is sufficient for your workload.

![JetStream Storage section](https://docs.cennso.com/api/assets/cennso/cdm/latest/assets/dashboards/jetstream-storage.png)

---
title: "Mesh"
description: "Mesh Custom Resource (CR) is used to define and configure Cennso Data Mesh (CDM) Signaling on a Core Cluster."
url: "https://docs.cennso.com/cennso/cdm/latest/technical-reference/crds/mesh"
---

# Mesh Custom Resource Definition

`Mesh` Custom Resource (CR) is used to define and configure Cennso Data Mesh (CDM) Signaling on a Core Cluster.

## Configuration example

This is a sample `Mesh` CR that you can use to configure an APN called `my-mesh` on a Core Cluster named `my-core-cluster`, in a namespace called `mesh-system`, with a SINGLE mode, resource requests of 100m CPU and 128Mi memory, and persistence settings:

```yaml
apiVersion: cdm.cennso.com/v1alpha1
kind: Mesh
metadata:
  name: my-mesh
spec:
  forProvider:
    connectionSecretRef:
      name: my-core-cluster
      namespace: cennso-infra
      key: kubeconfig
    clusterName: my-core-cluster
    mode: SINGLE
    namespace: mesh-system
    resources:
      cpu: "100m"
      memory: "128Mi"
    persistence:
      size: "1Gi"
      memoryStoreSize: "128Mi"
      storageClassName: "standard"
      accessModes:
        - ReadWriteOnce
      pvcRetentionPolicy:
        whenDeleted: "Delete"
        whenScaled: "Retain"
```

## Configuration parameters

These are all parameters that you can use to configure the `Mesh` CR:

**CRD specification:** [cdm.cennso.com_meshes.yaml](https://docs.cennso.com/api/spec/cennso/cdm/latest/assets/crds/cdm.cennso.com_meshes.yaml?form=bundled&kind=crd)

---
title: "1.9.2"
description: "Release date: 2026-11-30. This release is a maintenance update. It updates CDM Node. There are no breaking changes between 1.9.1 and 1.9.2. CDM 1.9.2 uses CDM Provider in version 1.4.0, CDM Manager in version 1.5.1, and CDM Node in version 1.7.2."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.9.2"
---

# Cennso Data Mesh 1.9.2

**Release date:** 2026-11-30

This release is a maintenance update. It updates CDM Node.

There are no breaking changes between 1.9.1 and 1.9.2.

CDM 1.9.2 uses CDM Provider in version 1.4.0, CDM Manager in version 1.5.1, and CDM Node in version 1.7.2.

## Maintenance

### CDM Node update

Updated CDM Node from version 1.7.0 to 1.7.2. The update moves the Go toolchain from version 1.27.3 to 1.27.4. The source code of CDM Node does not change.

---
title: "1.9.1"
description: "Release date: 2026-11-26. This release is a maintenance update. It revokes the users of deleted claims and updates CDM Manager. There are no breaking changes between 1.9.0 and 1.9.1."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.9.1"
---

# Cennso Data Mesh 1.9.1

Release date: 2026-11-26

This release is a maintenance update. It revokes the users of deleted claims and updates CDM Manager.

There are no breaking changes between 1.9.0 and 1.9.1.

CDM 1.9.1 uses CDM Provider in version 1.4.0, CDM Manager in version 1.5.1, and CDM Node in version 1.7.0.

## Fixes

### Users of deleted claims stay active

Registering a Core Cluster creates a user Secret in the `cennso-system` namespace. Deleting the claim that requested the user deleted its one-time token Secret. The user stayed active and its Secret stayed in the cluster.

CDM Manager 1.5.1 revokes the user and deletes its Secret when the one-time token Secret no longer exists. A revoked user cannot connect any more. CDM Manager checks this when it starts and after each deletion of a one-time token Secret. This also covers Secrets that were deleted while CDM Manager was not running.

The user Secret now has the following labels and annotations:

- `cdm-manager.cennso.com/core-cluster`
- `cdm-manager.cennso.com/token-namespace`
- `cdm-manager.cennso.com/token-name`

The user credentials contain the same values as tags. CDM Manager does not remove users that it created before version 1.5.1, because these users have no token labels.

## Maintenance

### CDM Manager update

Updated CDM Manager from version 1.5.0 to 1.5.1. The update also moves the NATS Server library to version 2.12.12, which fixes six reported vulnerabilities.

---
title: "1.9.0"
description: "Release date: 2026-11-13. This release removes deleted accounts from NATS and restarts CDM Node when its TLS certificate changes. The documentation now also describes how to issue the CDM TLS certificate. There are no breaking changes between 1.8.3 and 1.9.0."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.9.0"
---

# Cennso Data Mesh 1.9.0

**Release date:** 2026-11-13

This release removes deleted accounts from NATS and restarts CDM Node when its TLS certificate changes. The documentation now also describes how to issue the CDM TLS certificate.

There are no breaking changes between 1.8.3 and 1.9.0.

CDM 1.9.0 uses CDM Provider in version 1.4.0, CDM Manager in version 1.5.0, and CDM Node in version 1.7.0.

## Features

### Guide for the CDM TLS certificate

The new guide [Configure the CDM TLS certificate](https://docs.cennso.com/cennso/cdm/latest/guides/configure-cdm-tls-certificate.md) explains how to issue the certificate that CDM Node serves to Core Clusters. It covers the domain names that the certificate must contain and how to add a domain later. Three troubleshooting pages cover a certificate that is not ready, a failed TLS handshake, and an old certificate that CDM Node still serves.

## Fixes

### Deleted accounts stay active in NATS

Deleting an account did not stop its users. The account stayed active in NATS, and its users could still connect. CDM Manager 1.5.0 now removes the account from the NATS account resolver after it disables the account. The users of a deleted account cannot connect any more.

CDM Manager 1.5.0 requires CDM Node 1.7.0. CDM 1.9.0 installs both versions together.

### CDM Node restarts after a TLS certificate change

CDM Node kept serving the old leafnode certificate after the `cdm-tls-cert` Secret changed. The CDM Node chart now lists every TLS Secret that the pods mount in the Reloader annotation. The pods restart when cert-manager renews a certificate. For details, see [Apply a renewed certificate](https://docs.cennso.com/cennso/cdm/latest/guides/configure-cdm-tls-certificate.md#apply-a-renewed-certificate).

## Maintenance

### CDM Manager and CDM Node update

Updated CDM Manager from version 1.4.2 to 1.5.0 and CDM Node from version 1.6.3 to 1.7.0.

---
title: "1.8.3"
description: "Release date: 2026-11-12. This release is a maintenance update. It updates CDM Node to its latest version. There are no breaking changes between 1.8.1 and 1.8.3. CDM 1.8.3 uses CDM Provider in version 1.4.0, CDM Manager in version 1.4.2, and CDM Node in version 1.6.3."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.8.3"
---

# Cennso Data Mesh 1.8.3

**Release date:** 2026-11-12

This release is a maintenance update. It updates CDM Node to its latest version.

There are no breaking changes between 1.8.1 and 1.8.3.

CDM 1.8.3 uses CDM Provider in version 1.4.0, CDM Manager in version 1.4.2, and CDM Node in version 1.6.3.

## Maintenance

### CDM Node update

Updated CDM Node from version 1.6.2 to 1.6.3. The update brings NATS Server 2.14.4 and the NATS Go client 1.52.0. The CDM Node Helm chart also accepts additional arguments for the Prometheus NATS exporter in `monitoring.container.extraArgs`.

---
title: "1.8.1"
description: "Release date: 2026-11-11. This release is a maintenance update. It updates CDM Manager to its latest version. There are no breaking changes between 1.8.0 and 1.8.1. CDM 1.8.1 uses CDM Provider in version 1.4.0, CDM Manager in version 1.4.2, and CDM Node in version 1.6.2."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.8.1"
---

# Cennso Data Mesh 1.8.1

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

This release is a maintenance update. It updates CDM Manager to its latest version.

There are no breaking changes between 1.8.0 and 1.8.1.

CDM 1.8.1 uses CDM Provider in version 1.4.0, CDM Manager in version 1.4.2, and CDM Node in version 1.6.2.

## Maintenance

### CDM Manager update

Updated CDM Manager from version 1.4.1 to 1.4.2.

---
title: "1.8.0"
description: "Release date: 2026-10-30. This release adds a namespaced Mesh resource to CDM Provider and updates the dependencies of CDM Provider. There are no breaking changes between 1.7.1 and 1.8.0. Existing cluster-scoped Mesh resources keep working."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.8.0"
---

# Cennso Data Mesh 1.8.0

**Release date:** 2026-10-30

This release adds a namespaced Mesh resource to CDM Provider and updates the dependencies of CDM Provider.

There are no breaking changes between 1.7.1 and 1.8.0. Existing cluster-scoped Mesh resources keep working.

CDM 1.8.0 uses CDM Provider in version 1.4.0, CDM Manager in version 1.4.1, and CDM Node in version 1.6.2.

## Features

### Namespaced Mesh

CDM Provider now offers a namespaced Mesh resource in the **cdm.m.cennso.com** API group. You create it in a namespace instead of at the cluster level. The cluster-scoped Mesh in the **cdm.cennso.com** API group is still available.

## Maintenance

### CDM Provider update

Updated CDM Provider from version 1.3.1 to 1.4.0. The update moves CDM Provider to Crossplane 2.4.3 and Kubernetes libraries 0.36.4, and builds it with Go 1.27.3.

---
title: "1.7.1"
description: "Release date: 2026-10-22. This release is a maintenance update. It updates CDM Manager and CDM Node to their latest versions and moves the build to a newer Go version. There are no breaking changes between 1.7.0 and 1.7.1."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.7.1"
---

# Cennso Data Mesh 1.7.1

**Release date:** 2026-10-22

This release is a maintenance update. It updates CDM Manager and CDM Node to their latest versions and moves the build to a newer Go version.

There are no breaking changes between 1.7.0 and 1.7.1.

CDM 1.7.1 uses CDM Provider in version 1.3.1, CDM Manager in version 1.4.1, and CDM Node in version 1.6.2.

## Maintenance

### CDM Manager update

Updated CDM Manager from version 1.4.0 to 1.4.1.

### CDM Node update

Updated CDM Node from version 1.5.0 to 1.6.2. CDM Provider now deploys CDM Node 1.6.2 by default.

### Go version update

Updated Go from 1.26.2 to 1.27.3.

---
title: "1.7.0"
description: "Release date: 2026-06-05. This release includes a maintenance update for CDM Provider, which is now at version 1.3.1. The update migrates CDM Provider to Crossplane runtime v2 to ensure continued compatibility and performance."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.7.0"
---

# Cennso Data Mesh 1.7.0

**Release date:** 2026-06-05

This release includes a maintenance update for CDM Provider, which is now at version 1.3.1. The update migrates CDM Provider to Crossplane runtime v2 to ensure continued compatibility and performance.

> [!WARNING]
> Breaking change: The **spec.publishConnectionDetailsTo** field has been removed from the Mesh CRD. The field was not used by Cennso and there is no migration guide for this change. If you used this field in your Mesh, read about `writeConnectionSecretToRef` in the Crossplane documentation and update your Mesh accordingly.

CDM 1.7.0 uses CDM Provider in version 1.3.1, CDM Manager in version 1.4.0, and CDM Node in version 1.5.0.

## Maintenance

### CDM Provider update

Updated CDM Provider from version 1.3.0 to 1.3.1, which migrates to Crossplane runtime v2.

---
title: "1.6.0"
description: "Release date: 2026-04-17. This release improves multi-node deployment support for Cennso Data Mesh (CDM). CDM Node can now use multiple advertise addresses, which removes a limitation for environments where each node must announce a distinct address."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.6.0"
---

# Cennso Data Mesh 1.6.0

**Release date:** 2026-04-17

This release improves multi-node deployment support for Cennso Data Mesh (CDM). CDM Node can now use multiple advertise addresses, which removes a limitation for environments where each node must announce a distinct address. This release also fixes two reliability issues: orphaned secrets after Mesh deletion and incorrect notification order over NATS during startup.

There are no breaking changes between 1.5.0 and 1.6.0.

CDM 1.6.0 uses CDM Provider in version 1.3.0, CDM Manager in version 1.4.0, and CDM Node in version 1.5.0.

## Features

### Support for multiple advertise addresses in CDM Node

CDM Node now supports an array of advertise addresses. This allows proper operation in multi-node deployments where different nodes require distinct advertise addresses. The feature extends the single-address advertise support introduced in [1.5.0](https://docs.cennso.com/cennso/cdm/latest/releases/1.5.0.md).

## Fixes

### Secret parenting in Mesh configuration

The system did not correctly assign parent references to secrets created for a Mesh. Without correct parenting, deleting the Mesh left orphaned secrets behind. Secrets are now parented to their owning Mesh and cleaned up on deletion.

### Account notification order over NATS

Account notifications over NATS now follow the correct order. The previous order could cause unreliable delivery during startup and reconfiguration.

## Maintenance

### Go version update

Updated Go from 1.26.1 to 1.26.2.

---
title: "1.5.0"
description: "Release date: 2026-03-23. This release of Cennso Data Mesh (CDM) provides the following updates…"
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.5.0"
---

# Cennso Data Mesh 1.5.0

**Release date:** 2026-03-23

This release of Cennso Data Mesh (CDM) provides the following updates:

- Customizable **advertise** configuration

## Features

### Customizable **advertise** configuration

With this release, you can customize the **advertise** configuration in CDM Mesh to better suit your network environment and requirements. This is useful when running the Mesh behind a load balancer, where you need to control which address other cluster members use to connect to a Mesh node instead of relying on the automatically determined URL.

---
title: "1.4.2"
description: "Release date: 2026-02-27. This release of Cennso Data Mesh (CDM) provides the following updates…"
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.4.2"
---

# Cennso Data Mesh 1.4.2

**Release date:** 2026-02-27

This release of Cennso Data Mesh (CDM) provides the following updates:

- Cennso permissions added for CDM resources
- Extended CDM extension documentation

## Features

### Cennso permissions added for CDM resources

With this release, you can manage permissions for CDM resources using the Cennso Management Console (CMC).

## Improvements

### Extended CDM extension documentation

The CDM extension documentation has been updated to provide more comprehensive information and guidance for users. There are details on architecture, concepts, use cases, and troubleshooting to help users better understand and utilize CDM.

---
title: "1.4.1"
description: "Release date: 2026-02-06. This release of Cennso Data Mesh (CDM) provides the following updates…"
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.4.1"
---

# Cennso Data Mesh 1.4.1

**Release date:** 2026-02-06

This release of Cennso Data Mesh (CDM) provides the following updates:

- CMC form enhanced with monitoring and persistence settings
- Fixed reloader annotation behaviour

## Features

### CMC form enhanced with monitoring and persistence settings

With this release, you can enable and configure monitoring and persistence settings for CDM using the Cennso Management Console (CMC) custom form.

## Improvements

### Fixed reloader annotation behaviour

Previously, the reloader annotations were added incorrectly. This behaviour is now fixed, and reloader annotations are added only when TLS is on.

---
title: "1.4.0"
description: "This release of Cennso Data Mesh provides CDM Provider in version 1.2.0."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.4.0"
---

# Cennso Data Mesh 1.4.0

**Release date:** 2026-01-29

## Features

### New component versions

This release of Cennso Data Mesh provides CDM Provider in version 1.2.0.

### Meshes API extended with advertising and monitoring option

From this release, Meshes API supports optional configuration for client URL advertising and monitoring. You can disable advertising of mesh client URLs to other cluster members using the **noAdvertise** field, which is useful when running behind load balancers or when clients should not connect directly to specific nodes. Additionally, you can enable Prometheus monitoring for the mesh using the **enableMonitoring** field.

---
title: "1.3.1"
description: "This patch release fixed the Prometheus datasource configuration in the CDM Overview dashboard."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.3.1"
---

# Cennso Data Mesh 1.3.1

**Release date:** 2026-01-27

## Improvements

### CDM dashboards

This patch release fixed the Prometheus datasource configuration in the CDM Overview dashboard.

---
title: "1.3.0"
description: "This release of the Cennso Data Mesh provides CDM Provider in version 1.1.0."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.3.0"
---

# Cennso Data Mesh 1.3.0

**Release date:** 2026-01-26

## Features

### New component versions

This release of the Cennso Data Mesh provides CDM Provider in version 1.1.0.

### Meshes API extended with persistence option

From this release, Meshes API supports optional persistence configuration. You can specify the persistence settings for CDM Signaling. The options include storage class, size, and access modes, memory store size, and persistent volume claim retention policies.

### CDM dashboards

With CDM 1.3.0, we introduced the CDM Overview dashboard.

## Improvements

### Improved CDM Provider reconciliation logic

The connection secret is being validated during the reconciliation process. It causes a shorter feedback loop for the user when the connection secret is invalid.

The credential secrets are now deleted with retries to avoid races during Mesh deletion.

---
title: "1.2.0"
description: "This release of Cennso Data Mesh provides CDM Node in version 1.3.0 and CDM Manager in version 1.3.1."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.2.0"
---

# Cennso Data Mesh 1.2.0

**Release date:** 2026-01-23

## Features

### New component versions

This release of Cennso Data Mesh provides CDM Node in version 1.3.0 and CDM Manager in version 1.3.1.

### JS streams cleanup on disabling account

CDM Manager now cleans up JS streams when disabling an account.

### Mesh guide documentation

Added the Mesh installation guide to the documentation.

### Reloader annotations

Added annotations for the reloader.

---
title: "1.1.0"
description: "This release of Cennso Data Mesh provides CDM Node in version 1.2.2, CDM Manager in version 1.3.1, and CDM Provider in version 1.0.1."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.1.0"
---

# Cennso Data Mesh 1.1.0

**Release date:** 2026-01-06

## Features

### New component versions

This release of Cennso Data Mesh provides CDM Node in version 1.2.2, CDM Manager in version 1.3.1, and CDM Provider in version 1.0.1.

### Support for Meshes API

From this release, CDM Manager supports Meshes API. This allows you to create CDM Signaling on a Core Cluster.

### Support for Mesh CR management

CDM Provider supports now Mesh CR management, which is responsible for the CDM Signaling configuration.

---
title: "1.0.1"
description: "Added a custom Cennso Management Console (CMC) form for the extension."
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.0.1"
---

# Cennso Data Mesh 1.0.1

## Features

Added a custom Cennso Management Console (CMC) form for the extension.

---
title: "1.0.0"
url: "https://docs.cennso.com/cennso/cdm/latest/releases/1.0.0"
---

# Cennso Data Mesh 1.0.0

## New Features

- This release of Cennso Data Mesh provides CDM Node and CDM Manager in version 1.2.0.
- Cennso Data Mesh Node version 1.0.0 no longer requires running Cennso Agent in the Management mode.

---
title: "1.0"
description: "After the migration of the Cennso 2.9 to the Cennso 2.10, the CDM resources are running in the Management Cluster. They are orphaned and they are not managed by and Installation or ClusterInstallation. To adopt them and upgrade to CDM 1.0, follow the steps below…"
url: "https://docs.cennso.com/cennso/cdm/latest/releases/migration_to_1.0"
---

# Migration guide from Cennso Agent-based CDM installation to CDM 1.0

## Adoption of the CDM resources to CDM 1.0

After the migration of the Cennso 2.9 to the Cennso 2.10, the CDM resources are running in the Management Cluster. They are orphaned and they are not managed by and Installation or ClusterInstallation. To adopt them and upgrade to CDM 1.0, follow the steps below:

1. Ensure the Cennso 2.10 is installed and running.
2. Ensure the CDM pods are running in the Management Cluster: `kubectl -n cennso-system get pods -l app.kubernetes.io/name=cdm-node`.
3. Ensure the CDM Package is present in the Management Cluster: `kubectl get packages.extension.cennso.com`.
4. Download the [clusterinstallation-1.0.yaml](https://docs.cennso.com/api/assets/cennso/cdm/latest/assets/upgrade-1.0/clusterinstallation-1.0.yaml) file.
5. Replace the `{MANAGEMENT_CLUSTER_NAME}` placeholder in the `clusterinstallation-1.0.yaml` file with the name of your Management Cluster.
6. Replace the `{MANAGEMENT_CLUSTER_SOLUTION}` placeholder in the `cdm-clusterinstallation-1.0.yaml` file with the solution of your Management Cluster.
7. Apply the `clusterinstallation-1.0.yaml` file: `kubectl apply -f clusterinstallation-1.0.yaml`.
8. If some CDM Node pods cannot run properly, remove the old Persistent Volume Claims of the CDM Node and restart the pods:

   ```sh
   kubectl -n cennso-system delete pvc -l app.kubernetes.io/name=cdm-node --force
   kubectl -n cennso-system delete pods -l app.kubernetes.io/name=cdm-node --force
   ```

   > **NOTE**: You may need to detach from the first command with CTRL+C, as it may wait for the PVCs to be detached from the pods you are deleting.

9. Wait until the ClusterInstallation is ready: `kubectl get clusterinstallations.extension.cennso.com cdm`.

---
title: "Introduction"
description: "The Cennso Database (Cennso DB) extension provides resources to bootstrap, configure, and manage MySQL and PostgreSQL database clusters."
url: "https://docs.cennso.com/cennso/cennso-db/latest"
---

# 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 [Crossplane](https://www.crossplane.io/) 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:

| Resource | Description |
|---|---|
| [`DBOperator`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-operator.md) | Deploys the MySQL operator |
| [`DBInstance`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-instance.md) | Deploys and configures MySQL instances |
| [`DBBackup`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-backup.md) | Manages backups of MySQL databases |
| [`DBTLSCertificate`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-certificate.md) | Manages TLS certificates for MySQL instances |
| [`DBSchema`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-schema.md) | Manages logical databases in MySQL clusters |
| [`DBUser`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-users.md) | Manages MySQL users and their privileges |

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

| Resource | Description |
|---|---|
| [`PostgreSQLOperator`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-operator.md) | Deploys the PostgreSQL operator |
| [`PostgreSQLInstance`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-instance.md) | Deploys and configures PostgreSQL instances |
| [`PostgreSQLBackup`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-backup.md) | Manages backups of PostgreSQL databases |
| [`PostgreSQLSchema`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-schema.md) | Manages logical databases in PostgreSQL clusters |
| [`PostgreSQLUser`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-user.md) | Manages PostgreSQL users and their privileges |

To get started, read the following documents:

- [Installation](https://docs.cennso.com/cennso/cennso-db/latest/installation.md) - install the Cennso Database extension
- [Deploy Cennso Database](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-database.md) - deploy a MySQL cluster
- [Deploy Cennso PostgreSQL](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-postgresql.md) - deploy a PostgreSQL cluster

## 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](https://docs.cennso.com/api/assets/cennso/cennso-db/latest/assets/images/cennso-database-diagram.svg)

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:

| Image | Description |
|---|---|
| `registry.cennso.com/cennso/percona-server-mysql-operator:0.9.0-tpaddons.3` | The database operator image |
| `registry.cennso.com/cennso/percona-server-mysql-bootstrap:0.9.0-cennso-0.2` | The init container image of the MySQL instances |
| `registry.cennso.com/cennso/mysql-server:v8.0.45-36` | The MySQL instances image |

### PostgreSQL container images

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

| Image | Description |
|---|---|
| `registry.cennso.com/cennso/postgresql-operator:v3.1.0` | The database operator image, also used as the init container image of the PostgreSQL instances |
| `registry.cennso.com/cennso/pg-db:v18.3-2` | The PostgreSQL instances image |

## 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](https://www.haproxy.org/)
- [MySQL Orchestrator](https://github.com/openark/orchestrator)
- [Percona Toolkit](https://www.percona.com/percona-toolkit)
- [Percona XtraBackup](https://docs.percona.com/percona-xtrabackup/8.4/) with [Restic](https://restic.net/) client

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:

| Image | Description |
|---|---|
| `registry.cennso.com/cennso/haproxy:v2.8.14` | The HAProxy sidecar that exposes the MySQL cluster endpoint |
| `registry.cennso.com/cennso/mysql-orchestrator:v3.2.6-19-cennso-0.3` | The MySQL Orchestrator image |
| `registry.cennso.com/cennso/percona-toolkit:v3.7.1` | The Percona Toolkit sidecar of each MySQL instance, also used to apply the primary or replica role settings |
| `registry.cennso.com/cennso/xtrabackup-restic:v8.0.35-35.3` | The Percona XtraBackup with Restic sidecar of each MySQL instance that performs the backups |

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

| Image | Description |
|---|---|
| `registry.cennso.com/cennso/binlog-donor:v1.0.1` | The `binary-donor` application that can be enabled with **spec.binaryDonor.enabled** |
| `registry.cennso.com/cennso/mysql-server-client:v8.0.0` | The database client for the schemas and users provisioning jobs |
| `registry.cennso.com/cennso/alpine-kubectl:v1.35.0` | The `kubectl` client for the `DBBackup` jobs that runs the backup inside the XtraBackup sidecar |
| `registry.cennso.com/cennso/percona-mysqld-exporter:v3.6.0-cennso-1.0.0` | The metrics exporter sidecar of each MySQL instance that can be enabled with **spec.metricsExporter.enabled** |

### PostgreSQL additional containers

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

- [PgBouncer](https://www.pgbouncer.org/)
- [Percona Distribution for PostgreSQL](https://www.percona.com/postgresql/software/postgresql-distribution) client tools with [Restic](https://restic.net/) client
- [pg_upgrade](https://www.postgresql.org/docs/current/pgupgrade.html) with [pgBackRest](https://pgbackrest.org/)

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](https://docs.cennso.com/cennso/cennso-db/latest/troubleshooting/patroni.md), 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:

| Image | Description |
|---|---|
| `registry.cennso.com/cennso/pgbouncer:v1.25.1-1` | The PgBouncer image that exposes the PostgreSQL cluster endpoint |
| `registry.cennso.com/cennso/pg-basebackup-restic:v18.3-2-cennso-0.2` | The `pg_basebackup` with Restic image used by the backup jobs |

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

| Image | Description |
|---|---|
| `registry.cennso.com/cennso/pg-db:v18.3-2` | The database client for the schemas and users provisioning jobs |
| `registry.cennso.com/cennso/postgresql-upgrade:v18.6-17.11-16.15-15.19-14.24-1` | The `pg_upgrade` job image for several PostgreSQL major versions, deployed only during an in-place major-version upgrade |
| `registry.cennso.com/cennso/pgbackrest:2.59.1-1` | The pgBackRest image used only by the upgrade job |
| `registry.cennso.com/cennso/percona-postgres-exporter:v3.10.0-cennso-0.0.1` | The metrics exporter of each PostgreSQL pod, enabled by default with **spec.metricsExporter.enabled** |

---
title: "Installation"
description: "This document describes how to install the Cennso Database extension and lists its requirements and dependencies."
url: "https://docs.cennso.com/cennso/cennso-db/latest/installation"
---

# 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](https://docs.cennso.com/cennso/cennso/main/requirements/cc-requirements.md).

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-db` configuration package)
   - Crossplane 2.0 or higher for PostgreSQL (`cennso-postgresql` configuration package)

- 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:

   | Package | Kind | Used by | Tested version |
   | --- | --- | --- | --- |
   | `xpkg.upbound.io/upbound/provider-kubernetes` | Provider | MySQL, PostgreSQL | `v1.2.0` |
   | `xpkg.upbound.io/upbound/provider-helm` | Provider | MySQL, PostgreSQL | `v1.2.0` |
   | `xpkg.upbound.io/crossplane-contrib/function-go-templating` | Function | MySQL, PostgreSQL | `v0.12.0` |
   | `xpkg.upbound.io/crossplane-contrib/function-auto-ready` | Function | MySQL, PostgreSQL | `v0.6.1` |
   | `xpkg.upbound.io/crossplane-contrib/function-sequencer` | Function | MySQL, PostgreSQL | `v0.5.0` |
   | `xpkg.upbound.io/crossplane-contrib/function-patch-and-transform` | Function | MySQL | `v0.10.1` |

   To check which providers and functions are installed, run the following command on the Management Cluster:

   ```bash
   kubectl get providers.pkg.crossplane.io,functions.pkg.crossplane.io
   ```

   > [!NOTE]
   > The Compositions reference the functions by name, so each `Function` resource must have exactly the following name:
   >
   > - `crossplane-contrib-function-go-templating`
   > - `crossplane-contrib-function-auto-ready`
   > - `crossplane-contrib-function-sequencer`
   > - `crossplane-contrib-function-patch-and-transform`
   >
   > PostgreSQL also uses the namespaced APIs of the providers (`kubernetes.m.crossplane.io` and `helm.m.crossplane.io`), which are available in `provider-kubernetes` and `provider-helm` v1.0.0 or higher.

In addition, you must have:

- Access to a [Cennso Management Cluster](https://docs.cennso.com/cennso/cennso/main/concepts/cluster-architecture.md#management-cluster) to deploy the Cennso Database extension
- Access to a [Core Cluster](https://docs.cennso.com/cennso/cennso/main/concepts/core-cluster.md) to deploy the database workloads
- [Monitoring composition](https://docs.cennso.com/cennso/cennso/latest/concepts/monitoring.md) 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](https://docs.cennso.com/cennso/cennso/main/configuration/extensions.md#install-extensions). You can install it using either the Cennso Management Console (CMC) or the CLI:

### Installation steps (CMC)

### CMC

To install the Cennso Database extension using CMC:

1. Go to **Cennso Management -> Packages** and choose the `Cennso DB Extension` tile.
2. Choose the package version, select the target namespace, and specify the extension name.
3. Click **Install** to complete the installation.

### Installation steps (CLI)

### CLI

To install the Cennso Database extension using CLI:

1. Create a YAML file (for example: `cennso-database-package.yaml`) defining a `Package` resource for the Cennso Database extension. For example:

   ```yaml
   apiVersion: extension.cennso.com/v1alpha1
   kind: Package
   metadata:
     labels:
       cennso.com/version: "{PACKAGE-VERSION}"
       extension.cennso.com/name: "extension-cennso-db"
     name: "extension-cennso-db-{PACKAGE-VERSION}"
   spec:
     display:
       name: Cennso DB extension
       description: Cennso extension for the database management.
       categories:
         - configuration
         - database
         - application
     defaultNamespace: {CENNSO-DATABASE-PACKAGE-NAMESPACE}
     destination: ManagementCluster
     documentationURL: https://docs.cennso.com/docs/cennso/cennso-db/{PACKAGE-VERSION}
     projectURL: https://cennso.com
     sources:
       - name: cennso-db
         provider: ConfigurationPackage
         repository: {CONFIGURATION_REPOSITORY}
         tag: {PACKAGE-VERSION}
       - name: cennso-postgresql
         provider: ConfigurationPackage
         repository: {CONFIGURATION_REPOSITORY}
         tag: {PACKAGE-VERSION}
       - name: cennso-db-support
         provider: Helm
         repository: {CHART_REPOSITORY}
         tag: {PACKAGE-VERSION}
         properties:
         - description: Enables PrometheusRule resources.
           label: Alerting enabled
           section: prometheus
           type: boolean
           variable: prometheusRule.enabled
           default: "true"
   ```

   Replace 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

2. Apply the YAML manifest with the `Package` resource to the Management Cluster:

   ```bash
   kubectl apply -f cennso-database-package.yaml
   ```

3. Create a YAML file (for example: `cennso-database-extension.yaml`) defining a `ClusterInstallation` resource for the Cennso Database extension. For example:

   ```yaml
   apiVersion: extension.cennso.com/v1alpha1
   kind: ClusterInstallation
   metadata:
     name: {EXTENSION-NAME}-{PACKAGE-VERSION}
     namespace: {NAMESPACE}
   spec:
     forProvider:
       packageRef:
         name: extension-cennso-db
         version: {PACKAGE-VERSION}
   ```

   Replace 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 the `Package` resource from step 1.

   > [!NOTE]
   > You can configure values of the Cennso Database Support chart by specifying them in the `spec.forProvider.values.cennso-db-support` section of the `ClusterInstallation` resource. For more information about the available configuration options, see the [Cennso Database Support chart reference](https://docs.cennso.com/cennso/cennso-db/latest/technical-reference/charts/cennso-db-support-chart-configuration.generated.md).

4. Apply the manifest to the Management Cluster using the following command:

   ```bash
   kubectl apply -f cennso-database-extension.yaml
   ```

## 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](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-database.md) - deploy a MySQL cluster
- [Deploy Cennso PostgreSQL](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-postgresql.md) - deploy a PostgreSQL cluster

For more information about the resources used for the deployment, read the [Concepts](https://docs.cennso.com/cennso/cennso-db/latest/concepts/concepts.md) documentation.

---
title: "Concepts"
description: "The concepts documentation provides only reference information about the concepts that are used when you deploy a MySQL or PostgreSQL cluster and its components. You can use it to understand what the Cennso Database resources provide and how to configure them."
url: "https://docs.cennso.com/cennso/cennso-db/latest/concepts/concepts"
---

# Cennso Database concepts

> [!IMPORTANT]
> The concepts documentation provides only reference information about the concepts that are used when you deploy a MySQL or PostgreSQL cluster and its components. You can use it to understand what the Cennso Database resources provide and how to configure them.
>
> For more information on how to deploy and operate the Cennso Database and its components, read the [Deployment](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/guides.md) and [Operation](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/guides.md) guides.

The Cennso Database extension lets you deploy and operate MySQL and PostgreSQL clusters with Cennso. You describe a database cluster, its storage, backups, logical databases, and users as Kubernetes Custom Resources on the Management Cluster, the same way you provision any other Cennso workload. The extension then deploys and configures the database cluster on the target Kubernetes cluster.

The two main concepts are:

- [Database Operator](#database-operator)
- [Database Instance](#database-instance)

Both concepts are presented with the Kubernetes Custom Resources and have common configuration parameters, as well as configuration parameters specific to the given Custom Resource.

For more information on how to configure and deploy the database operator and the other components, see the documents in the left navigation.

## Database Operator

Database Operator automates managing your MySQL and PostgreSQL databases on Kubernetes clusters. The main role of the database operator is to install and reconcile the database instances to ensure that all resources defined by a user are in the desired state.

You can define the database operator using the corresponding Custom Resources:

- [`DBOperator`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-operator.md) - for the MySQL operator
- [`PostgreSQLOperator`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-operator.md) - for the PostgreSQL operator

## Database Instance

A Database Instance is an instance of a MySQL or PostgreSQL server. A set of database instances forms a MySQL or PostgreSQL cluster with asynchronous replication between the database instances. You can define the database instance using the corresponding Custom Resources:

- [`DBInstance`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-instance.md) - for the MySQL server instances
- [`PostgreSQLInstance`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-instance.md) - for the PostgreSQL server instances

## Supporting services

Next to the database instances, each database cluster runs supporting services. They give the database clients a single endpoint and keep the replication topology of the cluster healthy when a database instance fails. The set of supporting services depends on the database server.

### MySQL supporting services

Two helper services are deployed to every MySQL cluster:

- HAProxy - exposes an endpoint for the database clients and provides the ability to balance connections across the MySQL instances.
- MySQL Orchestrator - constantly tracks replication topology of the MySQL cluster, replication lag, and node health. It can promote a replica when the primary is unavailable.

### PostgreSQL supporting services

Two helper services run with every PostgreSQL cluster:

- [PgBouncer](https://www.pgbouncer.org/) - exposes an endpoint for the database clients, pools their connections, and routes them to the current primary.
- [Patroni](https://docs.cennso.com/cennso/cennso-db/latest/troubleshooting/patroni.md) - runs inside every PostgreSQL instance rather than as a separate service. It tracks the replication topology of the PostgreSQL cluster and node health, and promotes a replica when the primary is unavailable.

## Additional concepts

In addition, the Cennso Database extension provides the following concepts to simplify the operations and management of your database clusters:

- [Database backup](#database-backup)
- [Database TLS certificate](#database-tls-certificate)
- [Database schema](#database-schema)
- [Database user](#database-user)

### Database backup

A Database Backup defines backup jobs for database instances managed by the Database Operator. It uses [Restic](https://restic.net/) together with a backup utility to produce consistent, encrypted delta backups on a configurable schedule and store them in a storage-agnostic backend.

The backup utility depends on the database server type:

- [Percona XtraBackup](https://docs.percona.com/percona-xtrabackup/) to perform MySQL backups
- [pg_basebackup](https://www.postgresql.org/docs/current/app-pgbasebackup.html) to perform PostgreSQL backups

You can define a database backup using the corresponding Custom Resources:

- [`DBBackup`](https://docs.cennso.com/cennso/cennso-db/latest/technical-reference/configurations/cennso-db/xdbbackup_definition.md) for MySQL databases
- [`PostgreSQLBackup`](https://docs.cennso.com/cennso/cennso-db/latest/technical-reference/configurations/cennso-postgresql/xpostgresqlbackup_definition.md) for PostgreSQL databases

For more information on how to configure backups, read the following documents:

- [Cennso Database Backup](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-backup.md) and [Back up and restore](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/backup.md) for MySQL databases
- [Cennso PostgreSQL Backup](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-backup.md) and [Back up and restore Cennso PostgreSQL](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/cennso-postgresql-backup.md) for PostgreSQL databases

### Database TLS certificate

A Database TLS Certificate defines a TLS certificate that secures connections to the database cluster. By default, if you do not specify any TLS options, both MySQL and Postgres use TLS certificates issued and renewed through [cert-manager](https://cert-manager.io/).

To configure the validity of TLS certificates, you have different options for each type of database.

To set the custom renewal period of the TLS certificates for the PostgreSQL cluster, you can use the following configuration options:

- **spec.cert.certValidityDuration**
- **spec.cert.caValidityDuration**

For more information on how to configure a TLS certificate for PostgreSQL cluster, read the following documents:

- [Manage TLS certificates](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/cennso-postgresql-certificates.md)

To set the custom renewal period of the TLS certificates for the MySQL cluster, you can use the [`DBTLSCertificate`](https://docs.cennso.com/cennso/cennso-db/latest/technical-reference/configurations/cennso-db/xdbtlscertificate_definition.md) Custom Resource.

For more information on how to configure a TLS certificate for MySQL databases, read the following documents:

- [Cennso Database Certificate](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-certificate.md)
- [Manage TLS certificates](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/certificates.md)

### Database schema

A Database Schema defines a logical database, provisioned by a job in an existing Database Instance. For MySQL databases, it also defines the default character set and collation.

You can define a database schema using the corresponding Custom Resources:

- [`DBSchema`](https://docs.cennso.com/cennso/cennso-db/latest/technical-reference/configurations/cennso-db/xdbschema_definition.md) for MySQL databases
- [`PostgreSQLSchema`](https://docs.cennso.com/cennso/cennso-db/latest/technical-reference/configurations/cennso-postgresql/xpostgresqlschema_definition.md) for PostgreSQL databases

For more information on how to provision a logical database, read the following documents:

- [Cennso Database Schema](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-schema.md) and [Create a database](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/database-creation.md) for MySQL databases
- [Cennso PostgreSQL Schema](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-schema.md) and [Create a PostgreSQL database](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/cennso-postgresql-database-creation.md) for PostgreSQL databases

### Database user

A Database User defines a user account provisioned by a job in an existing Database Instance.

You can define a database user using the corresponding Custom Resources:

- [`DBUser`](https://docs.cennso.com/cennso/cennso-db/latest/technical-reference/configurations/cennso-db/xdbuser_definition.md) for MySQL databases
- [`PostgreSQLUser`](https://docs.cennso.com/cennso/cennso-db/latest/technical-reference/configurations/cennso-postgresql/xpostgresqluser_definition.md) for PostgreSQL databases

For more information on how to provision a user with privileges, read the following documents:

- [Cennso Database User](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-users.md) and [Create a database user](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/users-creation.md) for MySQL databases
- [Cennso PostgreSQL User](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-user.md) and [Create a PostgreSQL user](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/cennso-postgresql-users-creation.md) for PostgreSQL databases

---
title: "Cennso Database Operator"
description: "The Cennso Database Operator is represented by the DBOperator Custom Resource (CR) and defines…"
url: "https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-operator"
---

# Cennso Database Operator

The Cennso Database Operator is represented by the `DBOperator` Custom Resource (CR) and defines:

- Location where a database operator should be deployed, such as the name of the Core Cluster and a Kubernetes namespace
- Optionally, the Kubernetes [Storage Classes](https://kubernetes.io/docs/concepts/storage/storage-classes/) for the [Persistent Volumes](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) requested by the database instances

The sections below provide information about configuration parameters that you can specify in the `DBOperator` CR. For more information on how to configure and deploy the database operator, see the [Deploy Cennso Database](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-database.md) and [Cennso Database Operator Custom Resource Definition](https://docs.cennso.com/cennso/cennso-db/latest/technical-reference/configurations/cennso-db/xdboperator_definition.md) documents.

## Kubernetes cluster secret reference

To deploy the Cennso Database Operator to a Core Cluster, you must specify the reference to the [Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/secret/) so this cluster can be accessible. You can do this using the following configuration parameters:

```yaml
spec:
  connectionSecretRef:
    name: {CORE-CLUSTER-NAME}
    namespace: {CORE-CLUSTER-SECRET-NAMESPACE}
```

Set **spec.connectionSecretRef.name** to the name of the Core Cluster where the Cennso Database Operator should be installed. The **spec.connectionSecretRef.namespace** configuration parameter defines the Kubernetes Namespace on the Management Cluster where the Kubernetes secret to access this Core Cluster is stored.

## Image and chart configuration

You can use the following configuration parameters to specify the versions of the container image along with the secret to pull the image and Helm chart of the Cennso Database Operator:

```yaml
spec:
  image:
    repository: {DATABASE-OPERATOR-IMAGE-REPOSITORY}
    tag: {DATABASE-OPERATOR-IMAGE-TAG}
  imagePullSecretRef:
    name: {SECRET-NAME}
  chart:
    registry: {CHART-REGISTRY-NAME}
    name: {DATABASE-OPERATOR-CHART-NAME}
    version: {DATABASE-OPERATOR-CHART-VERSION}
```

## Scheduling and placement configuration

`DBOperator` custom resource allows you to configure the Cennso Database Operator scheduling and placement settings according to your needs.

To control where the Cennso Database Operator Pods run and how they’re distributed across nodes, use the following configuration options:

- [**spec.nodeSelector**](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/)
- [**spec.tolerations**](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)

In addition, you should specify the **spec.operatorNamespace** configuration option which controls the Kubernetes namespace name where the Cennso Database Operator should be deployed in the Core Cluster.

## Namespaces for the database clusters

By default, the database operator is configured to operate a MySQL cluster which is located in the same Kubernetes namespace. You can change this behaviour, or specify multiple Kubernetes namespaces where the database clusters are deployed and managed by the database operator. To do this, use the following configuration option:

```yaml
spec:
  watchNamespaces:
    - cluster-1-namespace
    - cluster-2-namespace
    - cluster-3-namespace
```

## Storage configuration

The optional storage configuration section allows you to define the storage classes that the Cennso Database Operator creates on the Core Cluster for the MySQL instance volumes:

```yaml
spec:
  storage:
    classes:
      - nodePath: /opt/local-path-provisioner/mysql-cluster-datadir
        name: mysql-data-storage
```

Each entry becomes a `StorageClass` backed by the [local-path-provisioner](https://github.com/rancher/local-path-provisioner), which creates the volumes under **spec.storage.classes[].nodePath** on the node where a MySQL instance is scheduled. A `DBInstance` refers to the class by name in **spec.storage.className**, as described in the [Storage configuration](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-instance.md#storage-configuration) section of the Cennso Database Instance document.

The local-path-provisioner only creates volumes under the paths listed in the `nodePathMap` of its `local-path-config` ConfigMap on the Core Cluster. The **spec.storage.classes[].nodePath** must be listed there for every node where a MySQL instance can run. Otherwise, the Persistent Volume Claims stay `Pending` and the provisioner reports `config doesn't contain path`. The storage classes set the path pattern of the provisioner to the namespace and the name of the Persistent Volume Claim. Each volume is therefore created in the `{NODE-PATH}/{NAMESPACE}/{PVC-NAME}` directory on the node. The provisioner creates this directory, so you do not need to create it in advance.

The storage classes use the `Retain` reclaim policy. When you delete a Persistent Volume Claim, its Persistent Volume and the data on the node are kept until you remove them manually. A new Persistent Volume Claim with the same name in the same namespace uses the same directory, so remove the directory first to start with empty data. The `StorageClass` resources are also kept when the `DBOperator` CR is deleted, because the volumes of the MySQL instances still refer to them.

You can omit **spec.storage** when the `DBInstance` uses a storage class that already exists on the Core Cluster.

## Resources configuration

`DBOperator` custom resource allows you to configure the [resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for the Cennso Database Operator using the following configuration options:

```yaml
spec:
  resources:
    requests:
      cpu: 1
      memory: 512Mi
    limits:
      cpu: 1
      memory: 512Mi
```

## Graceful upgrade

> **Deprecated:** The **spec.replicationSyncWaitTimeOnUpgrade** configuration option will be removed in the next release of the Cennso Database extension. Use the **spec.binaryDonor** field of the `DBInstance` Custom Resource instead, so that a restarted database instance can catch up with the primary from the exposed binary logs. For more information, see [Enable `binary-donor`](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/binary-donor.md).

The instances within a database cluster may need some time to synchronise the state during the upgrade procedure. You can control the length of this time period using the following configuration option:

```yaml
spec:
  replicationSyncWaitTimeOnUpgrade: 5
```

When the value of this configuration option is not zero, the database operator does not restart the database instances immediately one after another during the upgrade procedure. Instead, it waits for the given period of time before the restart of each next database instance after the first one is restarted and gets up and running.

---
title: "Cennso Database Instance"
description: "A Cennso Database Instance is represented by the DBInstance Custom Resource (CR) and defines a MySQL cluster managed by the Cennso Database Operator."
url: "https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-instance"
---

# Cennso Database Instance

A Cennso Database Instance is represented by the `DBInstance` Custom Resource (CR) and defines a MySQL cluster managed by the [Cennso Database Operator](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-operator.md).

> [!IMPORTANT]
> Before deploying the MySQL cluster, you must have the Database Operator up and running.

The sections below provide information about configuration parameters that you can specify in the `DBInstance` CR. For more information on how to configure and deploy the database cluster, see the [Deploy Cennso Database](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-database.md) and [Cennso Database Instance Custom Resource Definition](https://docs.cennso.com/cennso/cennso-db/latest/technical-reference/configurations/cennso-db/xdbinstance_definition.md) documents.

## Naming constraint

> [!IMPORTANT]
> The `DBInstance` **metadata.name** must not exceed `15` characters.

The Cennso Database extension derives the names of the MySQL cluster resources (the underlying MySQL custom resource, the StatefulSet pods, PVCs, and the HAProxy Service) from the `DBInstance` **metadata.name**, with a fixed prefix `ps-db-` that is added automatically. The combined name is bound by an upper limit of `21` characters. Since the prefix consumes `6` characters, only `15` characters remain for the name you choose.

If the `DBInstance` name is longer than `15` characters, the generated resource names are silently truncated, while the HAProxy Service selectors still reference the un-truncated name. As a result, the HAProxy Service selector does not match the actual MySQL pods, and the MySQL cluster becomes unreachable through HAProxy.

## Kubernetes cluster secret reference

To deploy the Cennso Database Instance to a Core Cluster, you must specify the reference to the [Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/secret/) so this cluster can be accessible. You can do this using the following configuration parameters:

```yaml
spec:
  connectionSecretRef:
    name: {CORE-CLUSTER-NAME}
    namespace: {CORE-CLUSTER-SECRET-NAMESPACE}
```

Set **spec.connectionSecretRef.name** to the name of the Core Cluster where the Cennso Database Instance should be installed. The **spec.connectionSecretRef.namespace** configuration parameter defines the Kubernetes Namespace on the Management Cluster where the Kubernetes secret to access this Core Cluster is stored.

## Image and chart configuration

You can use the following configuration parameters to specify the versions of the container image along with the secret to pull the image and Helm chart of the Cennso Database Instance:

```yaml
spec:
  mysql:
    image:
      repository: {DATABASE-INSTANCE-IMAGE-REPOSITORY}
      tag: {DATABASE-INSTANCE-IMAGE-TAG}
    initImage:
      repository: {DATABASE-INSTANCE-INIT-IMAGE-REPOSITORY}
      tag: {DATABASE-INSTANCE-INIT-IMAGE-TAG}
  imagePullSecretRef:
    name: {SECRET-NAME}
  chart:
    registry: {CHART-REGISTRY-NAME}
    name: {DATABASE-INSTANCE-CHART-NAME}
    version: {DATABASE-INSTANCE-CHART-VERSION}
```

## Scheduling and placement configuration

The MySQL instances specified by the Cennso Database Instance CR are deployed in the Kubernetes namespace specified by the following configuration option:

```yaml
spec:
  namespace: {MYSQL-CLUSTER-NAMESPACE}
```

The node where a MySQL instance runs depends on how its storage is configured, as described in the [Storage configuration](#storage-configuration) section.

## MySQL cluster size

> [!IMPORTANT]
> The value of the **spec.mysql.size** parameter must not exceed the number of entries in **spec.instances**.

The Cennso Database extension allows you to deploy and manage database clusters consisting of multiple database instances. By default, the number of MySQL instances that run in the cluster equals the number of entries in the **spec.instances** parameter. Using the optional **spec.mysql.size** configuration option, you can change the number of instances. The most common use case is to scale down your cluster for maintenance operations, for example, restoring a database from backup. You can use this configuration option to scale down your cluster to zero nodes:

```yaml
spec:
  mysql:
    size: 0
```

Scaling down does not remove the storage of the stopped instances. When you increase **spec.mysql.size** again, the instances reuse their existing storage.

## Liveness, readiness, and startup probes configuration

> [!IMPORTANT]
> Since a MySQL instance can take a long time to get up and running after a restart, make sure that the startup probes are configured with a `failureThreshold` value high enough for the MySQL restore procedure.

You can use the following configuration parameters to specify the configuration for the liveness, readiness, and startup probes applied to the MySQL instance deployments:

```yaml
spec:
  mysql:
    startupProbe:
      initialDelaySeconds: 15
      timeoutSeconds: 43200
      periodSeconds: 10
      failureThreshold: 1
      successThreshold: 1
    readinessProbe:
      initialDelaySeconds: 30
      timeoutSeconds: 3
      periodSeconds: 5
      failureThreshold: 3
      successThreshold: 1
    livenessProbe:
      initialDelaySeconds: 15
      timeoutSeconds: 10
      periodSeconds: 10
      failureThreshold: 3
      successThreshold: 1
```

For more information, see the [official Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/).

## Storage configuration

The storage configuration section allows you to specify the size and the [storage class](https://kubernetes.io/docs/concepts/storage/storage-classes/) of the requested storage for a MySQL database instance:

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

The **spec.storage.className** refers to a StorageClass on the target Core Cluster. This can be a StorageClass that already exists there, or one of the storage classes created with **spec.storage.classes** of the `DBOperator` CR, as described in the [Storage configuration](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-operator.md#storage-configuration) section of the Cennso Database Operator document. If you plan to use an existing StorageClass, make sure that it exists on the target Core Cluster before you deploy the database instances.

These settings apply to all MySQL instances of the cluster. The source of each MySQL instance's volume is defined per instance in **spec.instances** or by the storage class from **spec.storage.className**. Read the next sections to get more information.

### Volumes provided by the storage class

If you don't define spec.instances[].storage, the volume of each MySQL instance is requested with a PersistentVolumeClaim (PVC) created from the volume claim template of the MySQL StatefulSet. This PVC refers to the storage class specified in **spec.storage.className**. In this case, you can not directly specify nodes or paths in the Cennso Database Instance CR. Each MySQL instance runs on a node where the provisioner can provide its volume. Depending on the provisioner, this can be any node of the Core Cluster or only specific nodes. The MySQL instances must still be listed in **spec.instances**, each as an empty entry:

```yaml
spec:
  instances:
    0: {}
    1: {}
```

### Node-local volumes

The **spec.instances[].storage** setting places a MySQL instance on a specific node and keeps its data in a specific directory on that node. Use it when the data must stay on the local disks of dedicated nodes, or when you need to know in advance on which node each MySQL instance runs.

For each entry with this setting, the Cennso Database Instance creates the following resources:

- Persistent Volume with the capacity specified in **spec.storage.capacity** for the given node and path
- Persistent Volume Claim bound to this volume

In such a case, the provisioner of the storage class specified in **spec.storage.className** does not create the volume. The name of the storage class is only assigned to the Persistent Volume and the Persistent Volume Claim. The Persistent Volume has a node affinity for the node specified in **spec.instances[].storage.node**, so the MySQL instance always runs on this node. See the configuration example:

```yaml
spec:
  instances:
    0:
      storage:
        node: {NODE-NAME-1}
        path: /opt/local-path-provisioner/mysql-cluster-datadir/instance0
    1:
      storage:
        node: {NODE-NAME-2}
        path: /opt/local-path-provisioner/mysql-cluster-datadir/instance1
```

> [!IMPORTANT]
> The directories specified in the **spec.instances[].storage.path** must exist on the nodes before you deploy the Cennso Database Instance. For more information, read the [Deploy Cennso Database](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-database.md) guide.

### Data after deletion

The database data is kept when the Cennso Database Instance is deleted if **spec.persistentVolumeReclaimPolicy** was set to [Retain](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#reclaiming) in the database's Persistent Volume. A Cennso Database Instance created later with the same name and storage configuration starts with this data. To start with empty data, remove it first:

- Without **spec.instances[].storage**, delete the Persistent Volume Claims of the MySQL instances in the namespace of the MySQL cluster. If the storage class was created by the Cennso Database Operator, also remove the directories of the volumes on the nodes, as described in the [Storage configuration](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-operator.md#storage-configuration) section of the Cennso Database Operator document. 
- With **spec.instances[].storage**, delete the content of the directories specified in **spec.instances[].storage.path** on the nodes.

## TLS secret configuration

Using the following configuration option, you can configure the reference to the Kubernetes Secret which contains TLS certificates and keys used for the encrypted connections to the MySQL server:

```yaml
spec:
  tlsSecretName: "tls-secret"
```

This Kubernetes Secret must exist in the Core Cluster, in the same namespace where you deployed your MySQL instances.

By default, this value is an empty string, which means the TLS secret created by the Cennso Database Operator is used. In addition, you can specify the secret generated based on the `XDBTLSCertificate`. For more information, see the [Cennso Database Certificate](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-certificate.md) and [Manage TLS certificates](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/certificates.md) documents.

## MySQL resources, server, and environment configuration

You can specify [resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for MySQL instances using the following configuration options:

```yaml
spec:
  mysql:
    resources:
      cpu: 8
      memory: 8Gi
```

Both **spec.mysql.resources.cpu** and **spec.mysql.resources.memory** are set to the CPU/memory requests and limits.

> [!IMPORTANT]
> The value specified in the **spec.mysql.resources.memory** parameter is a base to calculate the size of [innodb_buffer_pool_size](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_buffer_pool_size), which configures the underlying database engine. The size of the buffer pool is set to 75% of the specified resources. To get a valid value, you must use only `G` or `Gi` [quantity suffix](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory).

To configure the MySQL server, use the following configuration option:

```yaml
spec:
  mysql:
    additionalConfiguration: |
       max_error_count: 10000
```

For more information about available configuration options, see the [official MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html).

To improve memory management, you can enable [jemalloc](https://jemalloc.net/) allocator in MySQL servers. You can do this using the following configuration options:

```yaml
spec:
  jemalloc:
    enabled: true
```

By default, the jemalloc shared library is located at `/lib64/libjemalloc.so.2` and is defined in the **ldPreload** parameter. The allocator settings are specified in **mallocConf**, which is by default set to `background_thread:true,dirty_decay_ms:2000,muzzy_decay_ms:0,narenas:4,lg_tcache_max:14`. For more information about these and other available jemalloc tunables, see the [official documentation](https://jemalloc.net/jemalloc.3.html).

You can change both settings using the following configuration options:

```yaml
spec:
  jemalloc:
    ldPreload: "/lib64/libjemalloc.so.2"
    mallocConf: "background_thread:true,dirty_decay_ms:2000,muzzy_decay_ms:0,narenas:4,lg_tcache_max:14"
```

In addition, you can use the **spec.mysql.additionalEnvs** configuration option to specify extra environment variables for MySQL server instances. For example:

```yaml
spec:
  mysql:
    additionalEnvs:
      - name: LIBMYSQL_PLUGIN_DIR
        value: "/var/lib/mysql/plugin"
```

## Cloning database instances

> [!IMPORTANT]
> If you enable `binary-donor` with setting **spec.binaryDonor.enabled** to `true`, the `CLONE` is always disabled, even if you enable it by setting the configuration option described below.

When a new secondary replica is up and running, it clones data from the primary instance using the [CLONE](https://dev.mysql.com/doc/refman/8.0/en/clone-plugin.html) operation. To disable this behaviour, use the following configuration option:

```yaml
spec:
  mysql:
    cloneRequiredOnAsyncCluster: false
```

## SQL applied during role change

The Cennso Database extension lets you tune MySQL server settings based on the role of the instance. This covers the initial bootstrap, scale-out of new replicas, MySQL restarts, automatic failovers, and graceful takeovers. In every case, the matching SQL is re-applied so the server-side settings always reflect the pod's current role. The `DBInstance` CR exposes the following configuration options, which can contain a set of SQL commands executed during a role change:

```yaml
spec:
  mysql:
    roleChange:
      primarySQL: |
        set global sync_binlog = 1;
        set global innodb_flush_log_at_trx_commit = 1;
        set global event_scheduler = ON;
      replicaSQL: |
        set global sync_binlog = 0;
        set global innodb_flush_log_at_trx_commit = 0;
        set global event_scheduler = OFF;
```

The **spec.mysql.roleChange.primarySQL** is applied to the pod currently labelled as the primary. The **spec.mysql.roleChange.replicaSQL** is applied to every other pod.

> [!NOTE]
> Each statement must be terminated by `;`.

The default values prioritize replication throughput over durability. The primary flushes the binary log and InnoDB redo log on every transaction commit, while replicas leave both flush operations to the operating system. The MySQL event scheduler is enabled only on the primary, so scheduled events do not run twice during a failover.

> [!TIP]
> Events created on a primary are replicated to replicas with the status `REPLICA_SIDE_DISABLED`. After a failover, the former replica that takes over as primary may not run those events even though its event scheduler is now `ON`. To activate them on the new primary, add the following SQL command to your **spec.mysql.roleChange.primarySQL** configuration:
>
> ```sql
> ALTER DEFINER='user'@'{USER-HOST}' EVENT my_database.my_event ENABLE;
> ```

## Additional services and tools

In addition to the MySQL itself, the `DBInstance` CR controls the following components:

- [HAProxy](#haproxy-configuration)
- [Orchestrator](#orchestrator-configuration)
- [Backup](#backup-configuration)
- [Percona MySQL Toolkit](#percona-mysql-toolkit-configuration)
- [Prometheus mysqld exporter](#prometheus-mysqld-exporter-configuration)
- [Binary log donor server](#binary-log-donor-server)

The following sections provide information about the configuration of these tools and services.

### Binary log donor server

> [!IMPORTANT]
> This section provides information only about the available configuration options for `binary-donor`. For the deployment details, see the [Deploy Cennso Database](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-database.md) deployment guide. For more information, see [Enable `binary-donor`](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/binary-donor.md).

The Cennso Database extension provides a lightweight MySQL binary log server that enables zero data loss during MySQL failover. You can enable it using the following configuration options:

```yaml
spec:
  binaryDonor:
    enabled: true
```

The `binary-donor` also replaces the deprecated **spec.replicationSyncWaitTimeOnUpgrade** configuration option of the `DBOperator` Custom Resource. A restarted database instance catches up with the primary from the exposed binary logs, so the database operator does not need to wait between the restarts of the database instances. For more information, see the [Graceful upgrade](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-operator.md#graceful-upgrade) section.

Each `binary-donor` instance should have assigned [server-id](https://dev.mysql.com/doc/refman/8.0/en/replication-options.html#sysvar_server_id). You can do it using the following configuration option:

```yaml
spec:
  binaryDonor:
    serverIdBase: 70000
```

This configuration option is optional and can be omitted. In this case, the unique `server-id` is assigned during deployment, starting from `65536`.

You can specify the repository and container image tag for `binary-donor` using the following configuration options:

```yaml
spec:
  binaryDonor:
    image:
      registry: registry.cennso.com/cennso/binlog-donor
      tag: v1.0.0
      pullPolicy: Always
```

To specify [Kubernetes resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for `binary-donor`, you can use the following configuration options:

```yaml
spec:
  binaryDonor:
    resources:
      requests:
        cpu: 500m
        memory: 500Mi
      limits:
        cpu: 500m
        memory: 500Mi
```

You can apply additional [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/) and [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) to the `binary-donor` Kubernetes Deployment and Service resources:

```yaml
spec:
  binaryDonor:
    deploymentLabels:
      app.kubernetes.io/component: binlog-donor
    deploymentAnnotations:
      custom-annotation: custom-value
    serviceLabels:
      app.kubernetes.io/component: binlog-donor
    serviceAnnotations:
      custom-annotation: custom-value
```

The **spec.binaryDonor.deploymentLabels** are applied to both the Deployment and its Pod templates.

To change the log level of the log messages that `binary-donor` produces, you can use the following configuration:

```yaml
spec:
  binaryDonor:
    env:
      - name: LOG_LEVEL
        value: debug
```

The available log levels are:

- `debug`
- `info`
- `warn`
- `error`

### HAProxy configuration

To connect to the database instances, you can enable and configure the deployment of the [HAProxy](https://www.haproxy.org/) service using the following configuration options:

```yaml
spec:
  haproxy:
    enabled: true
    size: 2
    image:
      registry: {HAPROXY-IMAGE-REGISTRY}
      tag: {HAPROXY-IMAGE-TAG}
    initImage:
      registry: {HAPROXY-INIT-IMAGE-REGISTRY}
      tag: {HAPROXY-INIT-IMAGE-TAG}
```

The **spec.haproxy.image** configuration option defines the image of the HAProxy container itself, while the **spec.haproxy.initImage** configuration option defines the image of the init container that provisions the HAProxy configuration and the helper scripts.

You can specify [resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for HAProxy using the following configuration options:

```yaml
spec:
  haproxy:
    resources:
      cpu: 600m
      memory: 1G
```

Both **spec.haproxy.resources.cpu** and **spec.haproxy.resources.memory** are set to the CPU/memory requests and limits. If an HAProxy container needs more CPU than the limit, Kubernetes throttles it. If it needs more memory than the limit, Kubernetes kills the container with the `OOMKilled` reason, and the client connections through this HAProxy pod are interrupted. Set the values according to the expected load on HAProxy. To see how much CPU and memory HAProxy uses, see the [HAProxy CPU and memory usage](https://docs.cennso.com/cennso/cennso-db/latest/observability/dashboard.md#haproxy-cpu-and-memory-usage) section of the Grafana dashboard.

> [!NOTE]
> The values are applied to each container of the HAProxy pod. Every HAProxy pod runs the HAProxy container and the sidecar that updates the HAProxy backends, so the requests and limits of the pod are twice the specified CPU and memory.

You can specify the [Pod security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/), using the following configuration options:

```yaml
spec:
  haproxy:
    podSecurityContext:
      runAsUser: 1001
      fsGroup: 1001
```

HAProxy applies a set of options to each MySQL backend server. These options control the health check - a check for replication status and the value of the `read_only` status variable. This lets HAProxy detect a failed MySQL instance and stop routing traffic to it. By default, it is configured like this for each MySQL backend:

```
check inter 10000 rise 1 fall 2 weight 1
```

The default configuration means:

- `check` enables the health check for the MySQL instance.
- `inter 10000` runs a health check every `10000` milliseconds.
- `rise 1` marks the MySQL instance as available after `1` successful health check.
- `fall 2` marks the MySQL instance as unavailable after `2` consecutive failed health checks.
- `weight 1` gives the MySQL instance the same share of the traffic as the other instances with the same weight.

You can change some values of these configuration options using these parameters:

```yaml
spec:
  haproxy:
    serverOptions:
      interval: 10000
      rise: 1
      fall: 2
      weight: 1
```

Each value has an allowed range. The API server rejects a claim with a value outside it:

| Configuration option | Allowed values |
|---|---|
| **spec.haproxy.serverOptions.interval** | `1000` to `300000` milliseconds |
| **spec.haproxy.serverOptions.rise** | `1` to `20` |
| **spec.haproxy.serverOptions.fall** | `1` to `20` |
| **spec.haproxy.serverOptions.weight** | `0` to `256` |

> [!NOTE]
> The health check option is always enabled, and you can not turn it off.

Using the **spec.haproxy.serverOptions.additionalOptions** configuration option, you can append further options to the ones above. For example:

```yaml
spec:
  haproxy:
    serverOptions:
      additionalOptions: "on-marked-down shutdown-sessions"
```

> [!NOTE]
> The **spec.haproxy.serverOptions.additionalOptions** configuration option can be up to `1024` characters long, and must not contain the `check`, `no-check`, `inter`, `rise`, `fall`, and `weight` options. HAProxy applies the value from the last occurrence of a repeated option, so these options override the values configured for other **spec.haproxy.serverOptions** configuration options.

For more information about the available options, see the [official documentation](https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#server%20%28Peers%20declaration%29).

In addition, you can specify [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) for the HAProxy Kubernetes [service](https://kubernetes.io/docs/concepts/services-networking/service/) using these parameters:

```yaml
spec:
  service:
    haproxy:
      annotations: {}
```

For each entry in **spec.instances**, the Cennso Database Instance also creates a Kubernetes service that targets the single HAProxy instance with the same number. Using the optional **spec.instances[].externalIP** configuration option, you can assign an external IP address to this service. The number of external IP addresses must not exceed the number of HAProxy instances specified in **spec.haproxy.size**:

```yaml
spec:
  instances:
    0:
      externalIP: {HAPROXY-0-EXTERNAL-IP-ADDRESS}
    1:
      externalIP: {HAPROXY-1-EXTERNAL-IP-ADDRESS}
```

### Orchestrator configuration

To orchestrate the MySQL instances within a MySQL cluster, you can enable and configure the deployment of the MySQL [Orchestrator](https://github.com/openark/orchestrator) service using the following configuration options:

```yaml
spec:
  orchestrator:
    enabled: true
    size: 2
    image:
      registry: {ORCHESTRATOR-IMAGE-REGISTRY}
      image: {ORCHESTRATOR-IMAGE-NAME}:{ORCHESTRATOR-IMAGE-TAG}
```

In addition, you can use the **spec.orchestrator.additionalEnvs** configuration option to specify extra environment variables for the Orchestrator container. For example:

```yaml
spec:
  orchestrator:
    additionalEnvs:
      - name: ORC_DEBUG
        value: "true"
```

### Backup configuration

To perform backups, you can deploy the [Percona XtraBackup](https://docs.percona.com/percona-xtrabackup/8.4/) with [restic](https://restic.net/) client using the Cennso Database Instance CR. To configure the deployment of these components, use the following configuration options:

```yaml
spec:
  backup:
    enabled: true
    image:
      registry: {BACKUP-IMAGE-REGISTRY}
      image: {BACKUP-IMAGE-NAME}:{BACKUP-IMAGE-TAG}
    resources:
      cpu: "2"
      memory: "4Gi"
```

For more information about backups, see the [Cennso Database Backup](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-backup.md) and [Back up and restore](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/backup.md) documents.

### Percona MySQL Toolkit configuration

The Cennso Database Instance CR provides deployment of the [Percona Toolkit](https://www.percona.com/percona-toolkit) along with the MySQL database instances. You can configure it using the following configuration options:

```yaml
spec:
  toolkit:
    image:
      registry: {TOOLKIT-IMAGE-REGISTRY}
      image: {TOOLKIT-IMAGE-NAME}:{TOOLKIT-IMAGE-TAG}
    resources:
      cpu: "1"
      memory: "1Gi"
```

### Prometheus mysqld exporter configuration

The Cennso Database Instance CR allows deployment of the [Prometheus mysqld exporter](https://github.com/percona/mysqld_exporter) for monitoring the MySQL database clusters. You can enable it with:

```yaml
spec:
  metricsExporter:
    enabled: true
```

For more information, see [Enable metrics collector](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-database-observability.md).

---
title: "Cennso Database Schema"
description: "A Cennso Database Schema is represented by the DBSchema Custom Resource (CR). Applying this CR to a Management Cluster creates a Kubernetes Job that provisions a logical MySQL database inside an existing Cennso Database Instance."
url: "https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-schema"
---

# Cennso Database Schema

A Cennso Database Schema is represented by the `DBSchema` Custom Resource (CR). Applying this CR to a Management Cluster creates a Kubernetes Job that provisions a logical MySQL database inside an existing [Cennso Database Instance](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-instance.md).

> [!IMPORTANT]
> Before provisioning a logical database, the target `DBInstance` must be deployed, and its HAProxy Kubernetes Service must be reachable from the provisioning Job. The Job connects to the MySQL cluster through that Service and authenticates with the root credentials stored in the `ps-db-<dbInstanceName>-secrets` Kubernetes Secret.

The sections below provide information about configuration parameters that you can specify in the `DBSchema` CR. For more information on how to provision a logical database, see the [Create a database](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/database-creation.md) document.

## Kubernetes cluster secret reference

To deploy the Cennso Database Schema, you must specify a reference to the [Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/secret/) so the Core Cluster is accessible. You can do this using the following configuration parameters:

```yaml
spec:
  connectionSecretRef:
    name: {CORE-CLUSTER-NAME}
    namespace: {CORE-CLUSTER-SECRET-NAMESPACE}
```

Set **spec.connectionSecretRef.name** to the name of the Core Cluster that contains the MySQL cluster where the database should be created. The **spec.connectionSecretRef.namespace** configuration parameter defines the Kubernetes Namespace on the Management Cluster where the Kubernetes secret to access this Core Cluster is stored.

## Target Database Instance reference

To select the MySQL cluster where the logical database is created, you must specify the `DBInstance` name and the Kubernetes Namespace on the Core Cluster where it is deployed:

```yaml
spec:
  namespace: {MYSQL-CLUSTER-NAMESPACE}
  dbInstanceName: {DB-INSTANCE-NAME}
```

The **spec.dbInstanceName** must match the **metadata.name** of an existing `DBInstance` claim. The schema-provisioning Job connects to the `ps-db-<dbInstanceName>-haproxy.<namespace>.svc:3306` Kubernetes Service and uses the credentials from the `ps-db-<dbInstanceName>-secrets` Kubernetes Secret.

## Database name, character set, and collation

> [!IMPORTANT]
> The **spec.collate** value must be compatible with the chosen **spec.characterSet**. Incompatible combinations are rejected by MySQL at apply time.

To define the logical database that should be created, use the following configuration parameters:

```yaml
spec:
  databaseName: {DATABASE-NAME}
  characterSet: utf8mb4
  collate: utf8mb4_0900_ai_ci
```

The **spec.databaseName** must be a valid MySQL identifier (alphanumeric characters and underscore, up to 64 characters).

The **spec.characterSet** configures the default character set for the logical database. The supported values are: 

- `utf8mb4`
- `utf8mb3`
- `latin1`
- `ascii`
- `binary` 

The default character set is `utf8mb4`.

The **spec.collate** configures the default collation for the logical database. The supported values are: 

- `utf8mb4_0900_ai_ci`
- `utf8mb4_unicode_ci` 
- `utf8mb4_general_ci`
- `utf8mb4_bin` 

The default value is `utf8mb4_0900_ai_ci`.

For more information about the character sets and collations, see the [official MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/charset.html).

## Job retries, lifetime, and deadline

To control how the schema-provisioning [Kubernetes Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/) behaves on failure and after completion, use the following configuration parameters:

```yaml
spec:
  backoffLimit: 1
  ttlSecondsAfterFinished: 3600
  activeDeadlineSeconds: 600
  restartPolicy: OnFailure
```

The **spec.backoffLimit** configures the number of retries before the Job is marked as failed. For more information, see the [pod backoff failure policy](https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy) documentation.

The **spec.ttlSecondsAfterFinished** configures how long a finished Job (either `Complete` or `Failed`) is retained before it is automatically cleaned up. If omitted, the Job is not deleted automatically. For more information, see the [TTL mechanism for finished Jobs](https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/) documentation.

The **spec.activeDeadlineSeconds** configures a wall-clock deadline, measured from the Job start time, after which the Job is terminated and marked as failed. The default value is `600` seconds.

The **spec.restartPolicy** configures the restart policy of the Job Pod. The supported values are `OnFailure` and `Never`. The default value is `OnFailure`. For more information, see the [pod lifecycle](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy) documentation.

## Image and pull secret

You can configure the image of the schema-provisioning Job and the Kubernetes Secret used to pull it with the following configuration options:

```yaml
spec:
  image:
    registry: registry.cennso.com/cennso/mysql-server-client
    tag: v8.0.0
  imagePullSecretRef:
    name: cennso-pull-secret
```

The **spec.imagePullSecretRef.name** refers to a Kubernetes Secret that must exist on the Core Cluster in the same Kubernetes Namespace as the Job.
