diff --git a/templates/miq-template-ext-db.yaml b/templates/miq-template-ext-db.yaml index 5a7981c99..da482422b 100644 --- a/templates/miq-template-ext-db.yaml +++ b/templates/miq-template-ext-db.yaml @@ -101,10 +101,13 @@ objects: - name: "${NAME}-server" mountPath: "/persistent" env: - - name: MY_POD_NAMESPACE + - name: ALLOW_INSECURE_SESSION + value: true + - name: APPLICATION_ADMIN_PASSWORD valueFrom: - fieldRef: - fieldPath: metadata.namespace + secretKeyRef: + name: "${NAME}-secrets" + key: admin-password - name: APPLICATION_INIT_DELAY value: "${APPLICATION_INIT_DELAY}" - name: DATABASE_REGION @@ -114,16 +117,15 @@ objects: secretKeyRef: name: "${NAME}-secrets" key: database-url + - name: MY_POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace - name: V2_KEY valueFrom: secretKeyRef: name: "${NAME}-secrets" key: v2-key - - name: APPLICATION_ADMIN_PASSWORD - valueFrom: - secretKeyRef: - name: "${NAME}-secrets" - key: admin-password resources: requests: memory: "${APPLICATION_MEM_REQ}" diff --git a/templates/miq-template.yaml b/templates/miq-template.yaml index 16fdc3d6e..a3fad1baf 100644 --- a/templates/miq-template.yaml +++ b/templates/miq-template.yaml @@ -369,10 +369,13 @@ objects: - name: "${NAME}-server" mountPath: "/persistent" env: - - name: MY_POD_NAMESPACE + - name: ALLOW_INSECURE_SESSION + value: true + - name: APPLICATION_ADMIN_PASSWORD valueFrom: - fieldRef: - fieldPath: metadata.namespace + secretKeyRef: + name: "${NAME}-secrets" + key: admin-password - name: APPLICATION_INIT_DELAY value: "${APPLICATION_INIT_DELAY}" - name: DATABASE_REGION @@ -382,16 +385,15 @@ objects: secretKeyRef: name: "${NAME}-secrets" key: database-url + - name: MY_POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace - name: V2_KEY valueFrom: secretKeyRef: name: "${NAME}-secrets" key: v2-key - - name: APPLICATION_ADMIN_PASSWORD - valueFrom: - secretKeyRef: - name: "${NAME}-secrets" - key: admin-password resources: requests: memory: "${APPLICATION_MEM_REQ}"