Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Observability upgrade for installer scripts #123

Merged
merged 5 commits into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```