Getting UPGRADE FAILED: cannot patch "postgresql-postgresql" while upgrading Devtron to newer versions

Getting UPGRADE FAILED: cannot patch "postgresql-postgresql" while upgrading Devtron to newer versions

Debug:

  1. Make sure to annotate and label all the Devtron resources.
  2. Description of error
Error: UPGRADE FAILED: cannot patch "postgresql-postgresql" with kind StatefulSet: StatefulSet.apps "postgresql-postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', 'updateStrategy' and 'minReadySeconds' are forbidden
Solution: Verify if annotations & labels are set to all k8s resources in devtroncd namespace and add --set components.postgres.persistence.volumeSize=20Gi parameter in Devtron upgrade command.
helm upgrade devtron devtron/devtron-operator --namespace devtroncd \
--set installer.modules={cicd} --reuse-values \
--set components.postgres.persistence.volumeSize=20Gi


    • Related Articles

    • After installing Devtron using Helm, getting the admin password does not work.(if using windows)

      Debug: 'base64' is not recognized as an internal or external command, operable program or batch file. Solution: The first way to debug is either install base64 encode and decode into your windows machine and use the appropriate cmd to get the admin ...
    • Unable to login with admin password or reset devtron admin password

      Debug: Run the command for admin credentials and use it for login in dashboard: kubectl -n devtroncd get secret devtron-secret -o jsonpath='{.data.ADMIN_PASSWORD}' | base64 -d If you are getting an error message of "invalid username or password" or ...
    • Devtron Enterprise DT-33 Release Note

      The latest release of Devtron is here, with new features and enhancements. Here's a summary of the DT-33 release and related updates. Highlights: Exception in Configuration Approval Policies (Beta) When urgent releases are needed, teams often face ...
    • Devtron Enterprise DT-32 Release Note

      The latest release of Devtron is here, with new features and enhancements. Here's a summary of the DT-32 release and related updates. Highlights: Application Templates Devtron is introducing Application Templates, a feature that allows users to ...
    • Devtron Enterprise DT-34 Release Note

      The latest release of Devtron is here, with new features and enhancements. Here's a summary of the DT-34 release and related updates. Highlights: Support for Bulk Deployment of Only Active (Non-Hibernated) Apps While executing bulk deployments, users ...