Skip to content

Commit

Permalink
Observability upgrade for installer scripts (#123)
Browse files Browse the repository at this point in the history
* Kubernetes 1.23 support documentation (#116)

* added upgrade for observability online installer

* update to obs upgrade

* fixed wording

* Revert "Kubernetes 1.23 support documentation (#116)"

This reverts commit 84414e2.

Co-authored-by: shanmydell <[email protected]>
  • Loading branch information
shaynafinocchiaro and shanmydell authored Jan 12, 2022
1 parent e2c3a99 commit c6b27d7
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 10 deletions.
1 change: 1 addition & 0 deletions content/docs/observability/deployment/online.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Usage: ./karavi-observability-install.sh mode options...
Mode:
install Installs Karavi Observability and enables Karavi Authorization if already installed
enable-authorization Updates existing installation of Karavi Observability with Karavi Authorization
upgrade Upgrades existing installation of Karavi Observability to the latest release
Options:
Required
--namespace[=]<namespace> Namespace where Karavi Observability will be installed
Expand Down
62 changes: 52 additions & 10 deletions content/docs/observability/upgrade/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ description: >
Dell EMC Container Storage Modules (CSM) for Observability Upgrade
---

CSM for Observability can only be upgraded via the Helm chart following the instructions below.

CSM for Observability Helm upgrade can be used if the initial deployment was performed using the [Helm chart](../deployment/helm) or [Online Installer](../deployment/online).

>Note: The [Offline Installer](../deployment/offline) does not support upgrade.
This section outlines the upgrade steps for Container Storage Modules (CSM) for Observability. CSM for Observability upgrade can be achieved in one of two ways:

- Helm Chart Upgrade
- Online Installer Upgrade

## Helm Chart Upgrade

CSM for Observability Helm upgrade supports [Helm](../deployment/helm), [Online Installer](../deployment/online), and [Offline Installer](../deployment/offline) deployments.

To upgrade an existing Helm installation of CSM for Observability to the latest release, download the latest Helm charts.

```console
```
helm repo update
```

Check if the latest Helm chart version is available:

```console
```
helm search repo dell
NAME CHART VERSION APP VERSION DESCRIPTION
dell/karavi-observability 1.0.1 1.0.0 CSM for Observability is part of the [Container...
Expand All @@ -33,8 +33,50 @@ dell/karavi-observability 1.0.1 1.0.0 CSM for Observab
Upgrade to the latest CSM for Observability release:

```console
$ helm upgrade --version $latest_chart_version --values values.yaml karavi-observability dell/karavi-observability -n $namespace
```
Upgrade Helm and Online Installer deployments:
$ helm upgrade --version $latest_chart_version --values values.yaml karavi-observability dell/karavi-observability -n $namespace
Upgrade Offline Installer deployment:
$ helm upgrade --version $latest_chart_version karavi-observability dell/karavi-observability -n $namespace
```

The [configuration](../deployment/helm#configuration) section lists all the parameters that can be configured using the `values.yaml` file.

## Online Installer Upgrade

CSM for Observability online installer upgrade can be used if the initial deployment was performed using the [Online Installer](../deployment/online) or [Helm](../deployment/helm).

1. Change to the installer directory:
```
[user@system /home/user]# cd karavi-observability/installer
```
2. Update `values.yaml` file as needed. Configuration options are outlined in the [Helm chart deployment section](../deployment/helm#configuration).
The [configuration](../deployment/helm#configuration) section lists all the parameters that can be configured using the values.yaml file.
2. Execute the `./karavi-observability-install.sh` script:
```
[user@system /home/user/karavi-observability/installer]# ./karavi-observability-install.sh upgrade --namespace $namespace --values myvalues.yaml --version $latest_chart_version
---------------------------------------------------------------------------------
> Upgrading Karavi Observability in namespace karavi on 1.21
---------------------------------------------------------------------------------
|
|- Karavi Observability is installed. Upgrade can continue Success
|
|- Verifying Kubernetes versions
|
|--> Verifying minimum Kubernetes version Success
|
|--> Verifying maximum Kubernetes version Success
|
|- Verifying helm version Success
|
|- Upgrading CertManager CRDs Success
|
|- Updating helm repositories Success
|
|- Upgrading Karavi Observability helm chart Success
|
|- Waiting for pods in namespace karavi to be ready Success
```

0 comments on commit c6b27d7

Please sign in to comment.