diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml
index ef81ba37c796b946769797b7ec3f2a98b20548a4..a47122963e6b40e0046e40c92f7771436b99a2d7 100644
--- a/src/main/helm/templates/deployment.yaml
+++ b/src/main/helm/templates/deployment.yaml
@@ -61,13 +61,13 @@ spec:
             value: "/bindings"
           - name: spring_profiles_active
             value: {{ include "app.envSpringProfiles" . }}
-          {{- if not (.Values.database).useExternal }}
           - name: keycloak_realm
             value: {{ include "app.ssoRealm" . }}
           - name: keycloak_resource
             value: {{ include "app.ssoClientName" . }}
           - name: keycloak_auth-server-url
-          value: {{ include "app.ssoServerUrl" . }}
+            value: {{ include "app.ssoServerUrl" . }}
+          {{- if not (.Values.database).useExternal }}
           - name: spring_data_mongodb_uri
             valueFrom:
               secretKeyRef: