|
6 | 6 | "iconClass": "icon-eap",
|
7 | 7 | "tags": "eap,javaee,java,jboss,hidden",
|
8 | 8 | "version": "1.4.14",
|
9 |
| - "openshift.io/display-name": "JBoss EAP 6.4 + A-MQ (Ephemeral with https)", |
| 9 | + "openshift.io/display-name": "JBoss EAP 6.4 + A-MQ (Ephemeral)", |
10 | 10 | "openshift.io/provider-display-name": "Red Hat, Inc.",
|
11 | 11 | "description": "An example EAP 6 A-MQ application. For more information about using this template, see https://github.com/jboss-openshift/application-templates.",
|
12 | 12 | "template.openshift.io/long-description": "This template defines resources needed to develop Red Hat Enterprise Application Server 6.4 based application, including a build configuration, application deployment configuration, using Red Hat JBoss A-MQ and secure communication using https.",
|
|
19 | 19 | "template": "eap64-amq-s2i",
|
20 | 20 | "xpaas": "1.4.14"
|
21 | 21 | },
|
22 |
| - "message": "A new EAP 6 and A-MQ based application with SSL support has been created in your project. The username/password for accessing the A-MQ service is ${MQ_USERNAME}/${MQ_PASSWORD}. Please be sure to create the following secrets: \"${HTTPS_SECRET}\" containing the ${HTTPS_KEYSTORE} file used for serving secure content; \"${JGROUPS_ENCRYPT_SECRET}\" containing the ${JGROUPS_ENCRYPT_KEYSTORE} file used for securing JGroups communications.", |
| 22 | + "message": "A new EAP 6 and A-MQ based application has been created in your project. The username/password for accessing the A-MQ service is ${MQ_USERNAME}/${MQ_PASSWORD}.", |
23 | 23 | "parameters": [
|
24 | 24 | {
|
25 | 25 | "displayName": "Application Name",
|
|
28 | 28 | "value": "eap-app",
|
29 | 29 | "required": true
|
30 | 30 | },
|
31 |
| - { |
32 |
| - "displayName": "Custom http Route Hostname", |
33 |
| - "description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>", |
34 |
| - "name": "HOSTNAME_HTTP", |
35 |
| - "value": "", |
36 |
| - "required": false |
37 |
| - }, |
38 |
| - { |
39 |
| - "displayName": "Custom https Route Hostname", |
40 |
| - "description": "Custom hostname for https service route. Leave blank for default hostname, e.g.: secure-<application-name>-<project>.<default-domain-suffix>", |
41 |
| - "name": "HOSTNAME_HTTPS", |
42 |
| - "value": "", |
43 |
| - "required": false |
44 |
| - }, |
45 | 31 | {
|
46 | 32 | "displayName": "Git Repository URL",
|
47 | 33 | "description": "Git source URI for application",
|
|
98 | 84 | "value": "",
|
99 | 85 | "required": false
|
100 | 86 | },
|
101 |
| - { |
102 |
| - "displayName": "Server Keystore Secret Name", |
103 |
| - "description": "The name of the secret containing the keystore file", |
104 |
| - "name": "HTTPS_SECRET", |
105 |
| - "value": "eap-app-secret", |
106 |
| - "required": false |
107 |
| - }, |
108 |
| - { |
109 |
| - "displayName": "Server Keystore Filename", |
110 |
| - "description": "The name of the keystore file within the secret", |
111 |
| - "name": "HTTPS_KEYSTORE", |
112 |
| - "value": "keystore.jks", |
113 |
| - "required": false |
114 |
| - }, |
115 |
| - { |
116 |
| - "displayName": "Server Keystore Type", |
117 |
| - "description": "The type of the keystore file (JKS or JCEKS)", |
118 |
| - "name": "HTTPS_KEYSTORE_TYPE", |
119 |
| - "value": "", |
120 |
| - "required": false |
121 |
| - }, |
122 |
| - { |
123 |
| - "displayName": "Server Certificate Name", |
124 |
| - "description": "The name associated with the server certificate", |
125 |
| - "name": "HTTPS_NAME", |
126 |
| - "value": "", |
127 |
| - "required": false |
128 |
| - }, |
129 |
| - { |
130 |
| - "displayName": "Server Keystore Password", |
131 |
| - "description": "The password for the keystore and certificate", |
132 |
| - "name": "HTTPS_PASSWORD", |
133 |
| - "value": "", |
134 |
| - "required": false |
135 |
| - }, |
136 | 87 | {
|
137 | 88 | "displayName": "A-MQ Username",
|
138 | 89 | "description": "User name for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
|
|
186 | 137 | "value": "openshift",
|
187 | 138 | "required": true
|
188 | 139 | },
|
189 |
| - { |
190 |
| - "displayName": "JGroups Secret Name", |
191 |
| - "description": "The name of the secret containing the keystore file", |
192 |
| - "name": "JGROUPS_ENCRYPT_SECRET", |
193 |
| - "value": "eap-app-secret", |
194 |
| - "required": false |
195 |
| - }, |
196 |
| - { |
197 |
| - "displayName": "JGroups Keystore Filename", |
198 |
| - "description": "The name of the keystore file within the secret", |
199 |
| - "name": "JGROUPS_ENCRYPT_KEYSTORE", |
200 |
| - "value": "jgroups.jceks", |
201 |
| - "required": false |
202 |
| - }, |
203 |
| - { |
204 |
| - "displayName": "JGroups Certificate Name", |
205 |
| - "description": "The name associated with the server certificate", |
206 |
| - "name": "JGROUPS_ENCRYPT_NAME", |
207 |
| - "value": "", |
208 |
| - "required": false |
209 |
| - }, |
210 |
| - { |
211 |
| - "displayName": "JGroups Keystore Password", |
212 |
| - "description": "The password for the keystore and certificate", |
213 |
| - "name": "JGROUPS_ENCRYPT_PASSWORD", |
214 |
| - "value": "", |
215 |
| - "required": false |
216 |
| - }, |
217 | 140 | {
|
218 | 141 | "displayName": "JGroups Cluster Password",
|
219 | 142 | "description": "JGroups cluster password",
|
|
275 | 198 | }
|
276 | 199 | }
|
277 | 200 | },
|
278 |
| - { |
279 |
| - "kind": "Service", |
280 |
| - "apiVersion": "v1", |
281 |
| - "spec": { |
282 |
| - "ports": [ |
283 |
| - { |
284 |
| - "port": 8443, |
285 |
| - "targetPort": 8443 |
286 |
| - } |
287 |
| - ], |
288 |
| - "selector": { |
289 |
| - "deploymentConfig": "${APPLICATION_NAME}" |
290 |
| - } |
291 |
| - }, |
292 |
| - "metadata": { |
293 |
| - "name": "secure-${APPLICATION_NAME}", |
294 |
| - "labels": { |
295 |
| - "application": "${APPLICATION_NAME}" |
296 |
| - }, |
297 |
| - "annotations": { |
298 |
| - "description": "The web server's HTTPS port.", |
299 |
| - "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-amq-tcp\", \"kind\": \"Service\"}]" |
300 |
| - } |
301 |
| - } |
302 |
| - }, |
303 | 201 | {
|
304 | 202 | "kind": "Service",
|
305 | 203 | "apiVersion": "v1",
|
|
390 | 288 | }
|
391 | 289 | },
|
392 | 290 | "spec": {
|
393 |
| - "host": "${HOSTNAME_HTTP}", |
394 | 291 | "to": {
|
395 | 292 | "name": "${APPLICATION_NAME}"
|
396 |
| - } |
397 |
| - } |
398 |
| - }, |
399 |
| - { |
400 |
| - "kind": "Route", |
401 |
| - "apiVersion": "v1", |
402 |
| - "id": "${APPLICATION_NAME}-https", |
403 |
| - "metadata": { |
404 |
| - "name": "secure-${APPLICATION_NAME}", |
405 |
| - "labels": { |
406 |
| - "application": "${APPLICATION_NAME}" |
407 |
| - }, |
408 |
| - "annotations": { |
409 |
| - "description": "Route for application's HTTPS service." |
410 |
| - } |
411 |
| - }, |
412 |
| - "spec": { |
413 |
| - "host": "${HOSTNAME_HTTPS}", |
414 |
| - "to": { |
415 |
| - "name": "secure-${APPLICATION_NAME}" |
416 | 293 | },
|
417 | 294 | "tls": {
|
418 |
| - "termination": "passthrough" |
| 295 | + "termination": "edge" |
419 | 296 | }
|
420 | 297 | }
|
421 | 298 | },
|
|
552 | 429 | "memory": "${MEMORY_LIMIT}"
|
553 | 430 | }
|
554 | 431 | },
|
555 |
| - "volumeMounts": [ |
556 |
| - { |
557 |
| - "name": "eap-keystore-volume", |
558 |
| - "mountPath": "/etc/eap-secret-volume", |
559 |
| - "readOnly": true |
560 |
| - }, |
561 |
| - { |
562 |
| - "name": "eap-jgroups-keystore-volume", |
563 |
| - "mountPath": "/etc/jgroups-encrypt-secret-volume", |
564 |
| - "readOnly": true |
565 |
| - } |
566 |
| - ], |
567 | 432 | "livenessProbe": {
|
568 | 433 | "exec": {
|
569 | 434 | "command": [
|
|
594 | 459 | "containerPort": 8080,
|
595 | 460 | "protocol": "TCP"
|
596 | 461 | },
|
597 |
| - { |
598 |
| - "name": "https", |
599 |
| - "containerPort": 8443, |
600 |
| - "protocol": "TCP" |
601 |
| - }, |
602 | 462 | {
|
603 | 463 | "name": "ping",
|
604 | 464 | "containerPort": 8888,
|
|
650 | 510 | "name": "OPENSHIFT_DNS_PING_SERVICE_PORT",
|
651 | 511 | "value": "8888"
|
652 | 512 | },
|
653 |
| - { |
654 |
| - "name": "HTTPS_KEYSTORE_DIR", |
655 |
| - "value": "/etc/eap-secret-volume" |
656 |
| - }, |
657 |
| - { |
658 |
| - "name": "HTTPS_KEYSTORE", |
659 |
| - "value": "${HTTPS_KEYSTORE}" |
660 |
| - }, |
661 |
| - { |
662 |
| - "name": "HTTPS_KEYSTORE_TYPE", |
663 |
| - "value": "${HTTPS_KEYSTORE_TYPE}" |
664 |
| - }, |
665 |
| - { |
666 |
| - "name": "HTTPS_NAME", |
667 |
| - "value": "${HTTPS_NAME}" |
668 |
| - }, |
669 |
| - { |
670 |
| - "name": "HTTPS_PASSWORD", |
671 |
| - "value": "${HTTPS_PASSWORD}" |
672 |
| - }, |
673 |
| - { |
674 |
| - "name": "JGROUPS_ENCRYPT_SECRET", |
675 |
| - "value": "${JGROUPS_ENCRYPT_SECRET}" |
676 |
| - }, |
677 |
| - { |
678 |
| - "name": "JGROUPS_ENCRYPT_KEYSTORE_DIR", |
679 |
| - "value": "/etc/jgroups-encrypt-secret-volume" |
680 |
| - }, |
681 |
| - { |
682 |
| - "name": "JGROUPS_ENCRYPT_KEYSTORE", |
683 |
| - "value": "${JGROUPS_ENCRYPT_KEYSTORE}" |
684 |
| - }, |
685 |
| - { |
686 |
| - "name": "JGROUPS_ENCRYPT_NAME", |
687 |
| - "value": "${JGROUPS_ENCRYPT_NAME}" |
688 |
| - }, |
689 |
| - { |
690 |
| - "name": "JGROUPS_ENCRYPT_PASSWORD", |
691 |
| - "value": "${JGROUPS_ENCRYPT_PASSWORD}" |
692 |
| - }, |
693 | 513 | {
|
694 | 514 | "name": "JGROUPS_CLUSTER_PASSWORD",
|
695 | 515 | "value": "${JGROUPS_CLUSTER_PASSWORD}"
|
|
700 | 520 | }
|
701 | 521 | ]
|
702 | 522 | }
|
703 |
| - ], |
704 |
| - "volumes": [ |
705 |
| - { |
706 |
| - "name": "eap-keystore-volume", |
707 |
| - "secret": { |
708 |
| - "secretName": "${HTTPS_SECRET}" |
709 |
| - } |
710 |
| - }, |
711 |
| - { |
712 |
| - "name": "eap-jgroups-keystore-volume", |
713 |
| - "secret": { |
714 |
| - "secretName": "${JGROUPS_ENCRYPT_SECRET}" |
715 |
| - } |
716 |
| - } |
717 | 523 | ]
|
718 | 524 | }
|
719 | 525 | }
|
|
0 commit comments