# Upgrade

## RedHat OpenShift

OpenShift updates are delivered directly through the Operator Lifecycle Manager framework.

To upgrade from **4.0.x** to **5.0.x**, the cluster administrator must switch the subscription channel from `4.0.x` to `5.0.x` via the **Subscription** tab in the OpenShift Console. Once the channel is updated, the upgrade process will proceed based on the configured **approval strategy** (automatic or manual).

<figure><img src="https://3687660749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCTOr12Vqhbdb4RbVz7e%2Fuploads%2Fgit-blob-a80c459d5f1a826700aee42edbf12e06e99a37dc%2FScreenshot%20from%202024-11-27%2017-09-20.png?alt=media" alt=""><figcaption></figcaption></figure>

When installing the Trilio Operator, the cluster admin can specify how to update via an approval strategy - either manual or automatic.

A manual subscription will require manually approving the new update that is available. An automatic subscription will automatically update the application when an update is available.

![OpenShift Approval Strategy](https://3687660749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCTOr12Vqhbdb4RbVz7e%2Fuploads%2Fgit-blob-ff5e5363e9b9f068de608a45724a0d7f430de14a%2Fimage%20\(213\).png?alt=media)

**Enable/Disable Openshift Console Plugin**

* Navigate to Installed Operator and search for Trilio for Kubernetes. Inside the Detail section will find console plugin in side tab as marked in image below.

<figure><img src="https://3687660749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCTOr12Vqhbdb4RbVz7e%2Fuploads%2Fgit-blob-98ddcc85873105cb5d08ae60e892407f7095a838%2FScreenshot%20from%202024-01-17%2000-19-45.png?alt=media" alt=""><figcaption><p>console plugin</p></figcaption></figure>

After clicking on enabled tab pop-up with option enable and disable for enable/disable console plugin on openshift cluster.

<figure><img src="https://3687660749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCTOr12Vqhbdb4RbVz7e%2Fuploads%2Fgit-blob-8da5439b2950886c65a796435a2e69c2662335fe%2FScreenshot%20from%202024-01-17%2000-20-07.png?alt=media" alt="" width="321"><figcaption></figcaption></figure>

## Upstream Kubernetes

For Upstream or non-OpenShift environments, Trilio provides its own Operator for installing and managing instances of Trilio for Kubernetes. Follow the steps below to upgrade the operator

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

```
prafull@EMPID18004:~$ 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:

```
prafull@EMPID18004:~$ 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:

```
prafull@EMPID18004:~$ helm ls
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-2.6.2	2.6.2

prafull@EMPID18004:~$ 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 Trilio Operator has started, run:


  kubectl --namespace=default get deployments -l "release=trilio-operator"

prafull@EMPID18004:~$ helm ls
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-2.10.0	2.10.0
```

Once the operator pod comes up, it will automatically install the corresponding Trilio version.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trilio.io/kubernetes/installation/upgrade.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
