Skip to content

Commit c8df97d

Browse files
Shubham9t9Shubham9t9prakarsh-dt
authored
docs: devtron upgrade 0.4.x to 0.5.x doc (#2259)
* devtron upgrade doc * README.md update * Update devtron-upgrade-0.4.x-0.5.x.md Co-authored-by: Shubham9t9 <[email protected]> Co-authored-by: Prakarsh <[email protected]>
1 parent bf68e74 commit c8df97d

File tree

3 files changed

+67
-1
lines changed

3 files changed

+67
-1
lines changed

docs/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* [External links](user-guide/global-configurations/external-links.md)
2929
* [Devtron Upgrade](setup/upgrade/README.md)
3030
* [Update Devtron from Devtron UI](setup/upgrade/upgrade-devtron-ui.md)
31+
* [0.4.x-0.5.x](setup/upgrade/devtron-upgrade-0.4.x-0.5.x.md)
3132
* [0.4.x-0.4.x](setup/upgrade/devtron-upgrade-0.4.x-0.4.x.md)
3233
* [0.3.x-0.4.x](setup/upgrade/devtron-upgrade-0.3.x-0.4.x.md)
3334
* [0.3.x-0.3.x](setup/upgrade/devtron-upgrade-0.3.x-0.3.x.md)
@@ -84,4 +85,3 @@
8485
## Depricated
8586

8687
* [Hyperion](hyperion/devtron.md)
87-

docs/setup/upgrade/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Devtron can be upgraded in one of the following ways:
66

77
**Versions Upgrade**
88

9+
- [0.4.x to 0.5.x](devtron-upgrade-0.4.x-0.5.x.md)
910
- [0.4.x to 0.4.x](devtron-upgrade-0.4.x-0.4.x.md)
1011
- [0.3.x to 0.4.x](devtron-upgrade-0.3.x-0.4.x.md)
1112
- [0.3.x to 0.3.x](devtron-upgrade-0.3.x-0.3.x.md)
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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

Comments
 (0)