Upgrade

Upgrading TrilioVault via OpenShift and Upstream Kubernetes is discussed in this section.

2.0.4 to 2.1.0 Upgrade

Since direct upgrade from 2.0.4 to 2.1.0 is not supported, uninstall the 2.0.x version and then reinstall the 2.1.0 version. The only difference from a regular reinstall is that you are not deleting the backups.

  1. Uninstall the TVK instance

    1. Uninstall the TVM for Upstream environments / Uninstall the Operator from OLM environments.

    2. Ensure there are no TVK pods running on the cluster.

  2. Delete the backups one by one and delete the finalizer block to avoid it being stuck in a 'deleting' state. This will remove the local references to the backup without touching the actual backup in the target.

    1. A quick article on deleting multiple finalizers together

RedHat OpenShift

OpenShift updates are delivered directly through the Operator Lifecycle Manager framework. When installing the TrilioVault Operator the cluster-admin can specify how to update via an approval strategy- either manual or automatic. Manual subscription will require manually approving the new update that is available. Automatic subscription will automatically update the application when an update is available.

OpenShift Approval Strategy

Upstream Kubernetes

  1. Find the helm repository for TrilioVault Manager using the following command:

[email protected]:~$ helm repo list
NAME URL
signtest http://127.0.0.1:43961
tvm http://charts.k8strilio.net/trilio-stable/k8s-triliovault-operator

2. Update your repo to receive the latest updates:

[email protected]:~$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "tvm" chart repository
Update Complete. ⎈ Happy Helming!⎈

3. Update your upstream operator:

NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
trilio-operator default 1 2021-01-13 18:50:12.554889335 +0530 IST deployed k8s-triliovault-operator-v2.0.1 v2.0.1
[email protected]:~$ helm upgrade trilio-operator tvm/k8s-triliovault-operator
Release "trilio-operator" has been upgraded. Happy Helming!
NAME: trilio-operator
LAST DEPLOYED: Wed Jan 13 18:51:28 2021
NAMESPACE: default
STATUS: deployed
REVISION: 2
TEST SUITE: None
NOTES:
To verify that TrilioVault Operator has started, run:
kubectl --namespace=default get deployments -l "release=trilio-operator"
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
trilio-operator default 2 2021-01-13 18:51:28.709468861 +0530 IST deployed k8s-triliovault-operator-v2.0.2 v2.0.2

Update the TVM CR and providetrilioVaultAppVersion: v2.0.3 and apply the CR.

This will upgrade TVK to version 2.0.3.