Comment on page


If you want to check the current version of Devtron you are using, please use the following command.
kubectl -n devtroncd get installers installer-devtron -o jsonpath='{}' | grep "^LTAG=" | cut -d"=" -f2-

Follow the below mentioned steps to upgrade the Devtron version using Helm

1. Check the devtron release name

helm list --namespace devtroncd

2. Set release name in the variable


3. Annotate and Label all the Devtron resources

kubectl -n devtroncd label all --all ""
kubectl -n devtroncd annotate all --all "$RELEASE_NAME" ""
kubectl -n devtroncd label secret --all ""
kubectl -n devtroncd annotate secret --all "$RELEASE_NAME" ""
kubectl -n devtroncd label cm --all ""
kubectl -n devtroncd annotate cm --all "$RELEASE_NAME" ""
kubectl -n devtroncd label sa --all ""
kubectl -n devtroncd annotate sa --all "$RELEASE_NAME" ""
kubectl label clusterrole devtron ""
kubectl annotate clusterrole devtron "$RELEASE_NAME" ""
kubectl label clusterrolebinding devtron ""
kubectl annotate clusterrolebinding devtron "$RELEASE_NAME" ""
kubectl -n devtroncd label role --all ""
kubectl -n devtroncd annotate role --all "$RELEASE_NAME" ""
kubectl -n devtroncd label rolebinding --all ""
kubectl -n devtroncd annotate rolebinding --all "$RELEASE_NAME" ""

4. Fetch the latest Devtron helm chart

helm repo update

5. Upgrade Devtron

5.1 Upgrade Devtron to latest version
helm upgrade devtron devtron/devtron-operator --namespace devtroncd \
-f \
--set installer.modules={cicd} --reuse-values
5.2 Upgrade Devtron to a custom version. You can find the latest releases from Devtron on Github
helm upgrade devtron devtron/devtron-operator --namespace devtroncd \
-f$DEVTRON_TARGET_VERSION/charts/devtron/devtron-bom.yaml \
--set installer.modules={cicd} --reuse-values