Skip to content

Commit

Permalink
Add observability upgrade support documentation (#1134)
Browse files Browse the repository at this point in the history
* add documentation for obs upgrade

* update notes for observability upgrade

* fix link
  • Loading branch information
chimanjain authored Jun 5, 2024
1 parent 45cfcdb commit 9dbbc5f
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 4 deletions.
41 changes: 41 additions & 0 deletions content/docs/deployment/csmoperator/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,47 @@ The following notes explain some of the general items to take care of.
configVersion: v2.10.0
```

### Upgrade Observability module using Dell CSM Operator

The Observability module installed by the Dell CSM Operator can be updated like any Kubernetes resource.

* Modifying the existing driver and module installation directly via `kubectl edit`

```sh
$ kubectl get <driver-object> -n <driver-namespace>
```

For example - If the CSI PowerScale driver is installed then run this command to get the object name

```sh
# Replace driver-namespace with the namespace where the CSI PowerScale driver is installed
$ kubectl get csm -n <driver-namespace>
```

use the object name in `kubectl edit` command.

```sh
$ kubectl edit csm <driver-object>/<object-name> -n <driver-namespace>
```

For example - If the object name is isilon then use the name as isilon

```sh
# Replace object-name with the isilon
$ kubectl edit csm isilon -n <driver-namespace>
```

* Modify the installation

* Update the driver config version and image tag

* Update the Observability config version, csm-topology image and the driver metrics images(e.g. for CSI PowerScale driver, the metrics driver image would be `csm-metrics-powerscale`)

>NOTE:
* In observability module upgrade, only `n-1` to `n` upgrade is supported, e.g. if the current observability version is `v1.7.x`, it can be upgraded to `1.8.x`.
* Upgrade to csm-operator and csi-driver first which support the corresponding observability module version.

## Custom Resource Definitions
As part of the Dell CSM Operator installation, a CRD representing configuration for the CSI Driver and CSM Modules is also installed.
`containerstoragemodule` CRD is installed in API Group `storage.dell.com`.
Expand Down
14 changes: 10 additions & 4 deletions content/docs/deployment/csmoperator/modules/observability.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ The CSM Observability module for supported Dell CSI Drivers can be installed via
## Prerequisites

- Create a namespace `karavi`

```bash
kubectl create namespace karavi
```

- Enable Observability module and components in [sample manifests](https://github.com/dell/csm-operator/tree/main/samples). If cert-manager has already been installed, don't enable it.
- To use Observablity with CSM Authorization, the [Authorization Proxy Server](../authorization/) should be installed and configured first. Then, enable the Authorization module along with the Observability module in the sample manifest.
- Observability will deploy with self-signed certificates by default. If you want to have custom certificates created instead, please generate certificates and private keys, encode them in base64, and insert them into the sample file as shown below for whichever components you are enabling:
```

```yaml
# observability: allows to configure observability
- name: observability
...
Expand Down Expand Up @@ -44,13 +47,16 @@ The CSM Observability module for supported Dell CSI Drivers can be installed via
privateKey: "<INSERT BASE64-ENCODED OTEL-COLLECTOR PRIVATE KEY HERE>"
...
```

- Notes:
- If you enable `metrics-powerscale` or `metrics-powerflex`, you must enable `otel-collector` as well.
- otel-collector cannot be enabled without a metrics component also enabled.
- If you are deploying multiple drivers, only enable topology, otel-collector, and cert-manager in the first driver. For subsequent drivers, only enable the metrics component. When deleting the deployment, the driver that was created first must be deleted last.
- If you enable `metrics-powerscale` or `metrics-powerflex`, you must enable `otel-collector` as well.
- otel-collector cannot be enabled without a metrics component also enabled.
- If you are deploying multiple drivers, only enable topology, otel-collector, and cert-manager in the first driver. For subsequent drivers, only enable the metrics component. When deleting the deployment, the driver that was created first must be deleted last.

## Install Observability

- Once you have prepared the sample file(s) (one per driver being installed), deploy by running `kubectl apply -f <SAMPLE FILE>` on the sample file.

## Upgrade Observability

- To upgrade observability module, please check the following section: [Upgrade Observability module using Dell CSM Operator](../../#upgrade-observability-module-using-dell-csm-operator)

0 comments on commit 9dbbc5f

Please sign in to comment.