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

doc: Added migration steps for 0.6 to 0.7 upgrade #5411

Merged
merged 1 commit into from
Jul 2, 2024
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 docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
* [Build Infra](user-guide/global-configurations/build-infra.md)
* [Devtron Upgrade](setup/upgrade/README.md)
* [Update Devtron from Devtron UI](setup/upgrade/upgrade-devtron-ui.md)
* [0.6.x-0.7.x](setup/upgrade/devtron-upgrade-0.6.x-0.7.x.md)
* [0.5.x-0.6.x](setup/upgrade/devtron-upgrade-0.5.x-0.6.x.md)
* [0.4.x-0.5.x](setup/upgrade/devtron-upgrade-0.4.x-0.5.x.md)
* [0.4.x-0.4.x](setup/upgrade/devtron-upgrade-0.4.x-0.4.x.md)
Expand Down
1 change: 1 addition & 0 deletions docs/setup/upgrade/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Devtron can be upgraded in one of the following ways:

**Versions Upgrade**

- [0.6.x to 0.7.x](devtron-upgrade-0.6.x-0.7.x.md)
- [0.5.x to 0.6.x](devtron-upgrade-0.5.x-0.6.x.md)
- [0.4.x to 0.5.x](devtron-upgrade-0.4.x-0.5.x.md)
- [0.4.x to 0.4.x](devtron-upgrade-0.4.x-0.4.x.md)
Expand Down
55 changes: 55 additions & 0 deletions docs/setup/upgrade/devtron-upgrade-0.6.x-0.7.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Upgrading Devtron 0.6.x to 0.7.x

To check the current version of your Devtron setup, use the following command

```bash
kubectl -n devtroncd get installers installer-devtron -o jsonpath='{.status.sync.data}' | grep "^LTAG=" | cut -d"=" -f2-
```

Proceed with the following steps only if the version is `0.6.x`

---

## Prerequisites

1. Set the release name

```bash
export RELEASE_NAME=devtron
```

2. Label and annotate the service accounts in the `devtron-ci` namespace

```bash
kubectl -n devtron-ci label sa --all "app.kubernetes.io/managed-by=Helm" --overwrite
kubectl -n devtron-ci annotate sa --all "meta.helm.sh/release-name=$RELEASE_NAME" "meta.helm.sh/release-namespace=devtroncd" --overwrite
```

3. Now, label and annotate the service accounts in the `devtron-cd` namespace

```
kubectl -n devtron-cd label sa --all "app.kubernetes.io/managed-by=Helm" --overwrite
kubectl -n devtron-cd annotate sa --all "meta.helm.sh/release-name=$RELEASE_NAME" "meta.helm.sh/release-namespace=devtroncd" --overwrite
```

---

## Upgrade Commands

1. Update the Helm repository

```bash
helm repo update
```

2. Run the upgrade command for Devtron

```bash
helm upgrade devtron devtron/devtron-operator -n devtroncd --reuse-values -f https://raw.githubusercontent.com/devtron-labs/devtron/main/charts/devtron/devtron-bom.yaml
```

---

## Expected Command Output

![Command Output](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/kubernetes-resource-browser/command-output.jpg)
Loading