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

# Installation

This document describes how to install the Cennso Management Console (CMC) extension and lists its requirements and dependencies.

> [!NOTE]
> Cennso Management Console (CMC) is part of the Cennso platform and is installed together with Cennso. However, if it has been removed for some reason, follow these instructions to reinstall it.

## Requirements

The CMC extension has the following requirements and dependencies:

- Crossplane 2.0+ installed on the Management Cluster
- Cennso Extension Provider 1.0+ installed on the Management Cluster
- Helm Provider 0.20.4 installed on the Management Cluster

## Installation steps

Due to the nature of this package, the CMC extension can only be installed with the CLI:

1. Create a YAML file (for example: `cmc-installation.yaml`) defining a `ClusterInstallation` Custom Resource (CR). For example:

   ```yaml
   apiVersion: extension.cennso.com/v1alpha1
   kind: ClusterInstallation
   metadata:
     name: cmc
   spec:
     deletionPolicy: Delete
     forProvider:
       packageRef:
         name: cmc
         version: "1.4.0"
       values:
         cmc:
           grafana:
             ingress:
               enabled: true
               hosts:
                 - "{HOST}"
     managementPolicies:
       - '*'
     providerConfigRef:
       name: default
   ```

   where:
   - `{HOST}` - host on which the CMC application will be exposed

2. Apply the `ClusterInstallation` CR to your Management Cluster using this command:

   ```bash
   kubectl apply -f ./cmc-installation.yaml
   ```

3. To check if the `cmc` package is installed on the Management Cluster, run:

   ```bash
   kubectl get clusterinstallations cmc
   ```

   If the output has a `Ready` status of `True`, it means that package has been installed correctly.

## Next steps

Now that you’ve installed the CMC extension, you can access it using the previously specified host. To get the administrator user (`admin` username) password, run this command:

```bash
kubectl get secret cmc -n cennso-system -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
```
