|
| 1 | +# Upgrading Devtron 0.4.x to 0.5.x |
| 2 | + |
| 3 | +If you want to check the current version of Devtron you are using, please use the following command. |
| 4 | + |
| 5 | +``` |
| 6 | +kubectl -n devtroncd get installers installer-devtron -o jsonpath='{.status.sync.data}' | grep "^LTAG=" | cut -d"=" -f2- |
| 7 | +``` |
| 8 | + |
| 9 | +## Follow the below mentioned steps to upgrade the Devtron version using Helm |
| 10 | + |
| 11 | + |
| 12 | +### 1. Apply Prerequisites Patch Job |
| 13 | + |
| 14 | +If you are using rawYaml in deployment template, this update can introduce breaking changes. We recommend you to update the `Chart Version` |
| 15 | +of your app to `v4.13.0` to make rawYaml section compatible to new argocd version `v2.4.0`. |
| 16 | + |
| 17 | +Or |
| 18 | + |
| 19 | +We have released a argocd-v2.4.0 patch job to fix the compatibilities issues. Please apply this job in your cluster and wait for completion |
| 20 | +and then only upgrade to `Devtron v0.5.x`. |
| 21 | + |
| 22 | +```bash |
| 23 | +kubectl apply -f https://raw.githubusercontent.com/devtron-labs/utilities/main/scripts/jobs/argocd-2.4.0-prerequisites-patch-job.yaml |
| 24 | +``` |
| 25 | + |
| 26 | +### 2. Check the devtron release name |
| 27 | + |
| 28 | +```bash |
| 29 | +helm list --namespace devtroncd |
| 30 | +``` |
| 31 | + |
| 32 | +### 3. Set release name in the variable |
| 33 | +```bash |
| 34 | +RELEASE_NAME=devtron |
| 35 | +``` |
| 36 | + |
| 37 | +### 4. Fetch the latest Devtron helm chart |
| 38 | + |
| 39 | +```bash |
| 40 | +helm repo update |
| 41 | +``` |
| 42 | + |
| 43 | + |
| 44 | +### 5. Upgrade Devtron |
| 45 | + |
| 46 | +**`5.1` Upgrade Devtron to latest version** |
| 47 | + |
| 48 | +```bash |
| 49 | +helm upgrade devtron devtron/devtron-operator --namespace devtroncd \ |
| 50 | +-f https://raw.githubusercontent.com/devtron-labs/devtron/main/charts/devtron/devtron-bom.yaml \ |
| 51 | +--set installer.modules={cicd} --reuse-values |
| 52 | +``` |
| 53 | +OR |
| 54 | + |
| 55 | +**`5.2` Upgrade Devtron to a custom version** |
| 56 | + |
| 57 | + You can find the latest releases from Devtron on Github https://github.com/devtron-labs/devtron/releases |
| 58 | + |
| 59 | +```bash |
| 60 | +DEVTRON_TARGET_VERSION=v0.5.x |
| 61 | + |
| 62 | +helm upgrade devtron devtron/devtron-operator --namespace devtroncd \ |
| 63 | +-f https://raw.githubusercontent.com/devtron-labs/devtron/$DEVTRON_TARGET_VERSION/charts/devtron/devtron-bom.yaml \ |
| 64 | +--set installer.modules={cicd} --reuse-values |
| 65 | +``` |
0 commit comments