Skip to content

Commit 4f55e15

Browse files
author
Pascal Grimaud
authored
Merge pull request #13283 from jh64/patch-2
bug fix for #13281 and #13282
2 parents 0a63bc3 + 985e6eb commit 4f55e15

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

generators/openshift/templates/deployment.yml.ejs

+9
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ objects:
126126
env:
127127
- name: SPRING_PROFILES_ACTIVE
128128
value: prod,api-docs
129+
<%_ if (!app.serviceDiscoveryType || app.applicationType === 'uaa') { _%>
130+
- name: JHIPSTER_SECURITY_AUTHENTICATION_JWT_BASE64_SECRET
131+
value: YlhrdGMyVmpjbVYwTFhSdmEyVnVMWFJ2TFdOb1lXNW5aUzFwYmkxd2NtOWtkV04wYVc5dUxXRnVaQzEwYnkxclpXVndMV2x1TFdFdGMyVmpkWEpsTFhCc1lXTmwK
132+
<%_ } _%>
129133
<%_ if (app.serviceDiscoveryType === 'eureka') { _%>
130134
- name: SPRING_CLOUD_CONFIG_URI
131135
value: http://admin:${jhipster.registry.password}@jhipster-registry:8761/config
@@ -238,7 +242,12 @@ objects:
238242
type: LoadBalancer
239243
ports:
240244
- name: http
245+
<%_ if (!app.serviceDiscoveryType || app.applicationType === 'uaa') { _%>
246+
port: 80
247+
targetPort: ${{APP_PORT}}
248+
<%_ } else { _%>
241249
port: ${{APP_PORT}}
250+
<%_ } _%>
242251
-
243252
apiVersion: <%= KUBERNETES_CORE_API_VERSION %>
244253
kind: Route

0 commit comments

Comments
 (0)