-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migration steps for 0.6 to 0.7 (#5411)
- Loading branch information
1 parent
27abc25
commit f544a33
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |