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

# Configure CDM Mesh

Cennso Data Mesh (CDM) `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

- Core Cluster registered in the Cennso Management Cluster
- Node attached to the Core Cluster
- CDM Provider installed on the Management Cluster

## 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/1.3/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
    ```
