eap71-amq-s2i.json 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  1. {
  2. "kind": "Template",
  3. "apiVersion": "v1",
  4. "metadata": {
  5. "annotations": {
  6. "iconClass": "icon-eap",
  7. "tags": "eap,javaee,java,jboss,xpaas,hidden",
  8. "version": "1.4.7",
  9. "openshift.io/display-name": "JBoss EAP 7.1 + A-MQ (with https)",
  10. "openshift.io/provider-display-name": "Red Hat, Inc.",
  11. "description": "An example EAP 7 A-MQ application. For more information about using this template, see https://github.com/jboss-openshift/application-templates.",
  12. "template.openshift.io/long-description": "This template defines resources needed to develop Red Hat Enterprise Application Server 7.1 based application, including a build configuration, application deployment configuration, using Red Hat JBoss A-MQ and secure communication using https.",
  13. "template.openshift.io/documentation-url": "https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/",
  14. "template.openshift.io/support-url": "https://access.redhat.com"
  15. },
  16. "name": "eap71-amq-s2i"
  17. },
  18. "labels": {
  19. "template": "eap71-amq-s2i",
  20. "xpaas": "1.4.7"
  21. },
  22. "message": "A new EAP 7 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 \"${SERVICE_ACCOUNT_NAME}\" service account and 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.",
  23. "parameters": [
  24. {
  25. "displayName": "Application Name",
  26. "description": "The name for the application.",
  27. "name": "APPLICATION_NAME",
  28. "value": "eap-app",
  29. "required": true
  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. {
  46. "displayName": "Git Repository URL",
  47. "description": "Git source URI for application",
  48. "name": "SOURCE_REPOSITORY_URL",
  49. "value": "https://github.com/jboss-openshift/openshift-quickstarts.git",
  50. "required": true
  51. },
  52. {
  53. "displayName": "Git Reference",
  54. "description": "Git branch/tag reference",
  55. "name": "SOURCE_REPOSITORY_REF",
  56. "value": "1.3",
  57. "required": false
  58. },
  59. {
  60. "displayName": "Context Directory",
  61. "description": "Path within Git project to build; empty for root project directory.",
  62. "name": "CONTEXT_DIR",
  63. "value": "helloworld-mdb",
  64. "required": false
  65. },
  66. {
  67. "displayName": "JMS Connection Factory JNDI Name",
  68. "description": "JNDI name for connection factory used by applications to connect to the broker, e.g. java:/ConnectionFactory",
  69. "name": "MQ_JNDI",
  70. "value": "java:/ConnectionFactory",
  71. "required": false
  72. },
  73. {
  74. "displayName": "A-MQ Protocols",
  75. "description": "Broker protocols to configure, separated by commas. Allowed values are: `openwire`, `amqp`, `stomp` and `mqtt`. Only `openwire` is supported by EAP.",
  76. "name": "MQ_PROTOCOL",
  77. "value": "openwire",
  78. "required": false
  79. },
  80. {
  81. "displayName": "Queues",
  82. "description": "Queue names, separated by commas. These queues will be automatically created when the broker starts. Also, they will be made accessible as JNDI resources in EAP.",
  83. "name": "MQ_QUEUES",
  84. "value": "HELLOWORLDMDBQueue",
  85. "required": false
  86. },
  87. {
  88. "displayName": "Topics",
  89. "description": "Topic names, separated by commas. These topics will be automatically created when the broker starts. Also, they will be made accessible as JNDI resources in EAP.",
  90. "name": "MQ_TOPICS",
  91. "value": "HELLOWORLDMDBTopic",
  92. "required": false
  93. },
  94. {
  95. "displayName": "A-MQ Serializable Packages",
  96. "description": "List of packages that are allowed to be serialized for use in ObjectMessage, separated by commas. If your app doesn't use ObjectMessages, leave this blank. This is a security enforcement. For the rationale, see http://activemq.apache.org/objectmessage.html",
  97. "name": "MQ_SERIALIZABLE_PACKAGES",
  98. "value": "",
  99. "required": false
  100. },
  101. {
  102. "displayName": "Service Account Name",
  103. "description": "The name of the service account to use for the deployment. The service account should be configured to allow useage of the secret(s) specified by HTTPS_SECRET and JGROUPS_ENCRYPT_SECRET.",
  104. "name": "SERVICE_ACCOUNT_NAME",
  105. "value": "eap7-service-account",
  106. "required": true
  107. },
  108. {
  109. "displayName": "Server Keystore Secret Name",
  110. "description": "The name of the secret containing the keystore file",
  111. "name": "HTTPS_SECRET",
  112. "value": "eap7-app-secret",
  113. "required": true
  114. },
  115. {
  116. "displayName": "Server Keystore Filename",
  117. "description": "The name of the keystore file within the secret",
  118. "name": "HTTPS_KEYSTORE",
  119. "value": "keystore.jks",
  120. "required": false
  121. },
  122. {
  123. "displayName": "Server Keystore Type",
  124. "description": "The type of the keystore file (JKS or JCEKS)",
  125. "name": "HTTPS_KEYSTORE_TYPE",
  126. "value": "",
  127. "required": false
  128. },
  129. {
  130. "displayName": "Server Certificate Name",
  131. "description": "The name associated with the server certificate",
  132. "name": "HTTPS_NAME",
  133. "value": "",
  134. "required": false
  135. },
  136. {
  137. "displayName": "Server Keystore Password",
  138. "description": "The password for the keystore and certificate",
  139. "name": "HTTPS_PASSWORD",
  140. "value": "",
  141. "required": false
  142. },
  143. {
  144. "displayName": "A-MQ Username",
  145. "description": "User name for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
  146. "name": "MQ_USERNAME",
  147. "from": "user[a-zA-Z0-9]{3}",
  148. "generate": "expression",
  149. "required": false
  150. },
  151. {
  152. "displayName": "A-MQ Password",
  153. "description": "Password for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
  154. "name": "MQ_PASSWORD",
  155. "from": "[a-zA-Z0-9]{8}",
  156. "generate": "expression",
  157. "required": false
  158. },
  159. {
  160. "displayName": "A-MQ Mesh Discovery Type",
  161. "description": "The discovery agent type to use for discovering mesh endpoints. 'dns' will use OpenShift's DNS service to resolve endpoints. 'kube' will use Kubernetes REST API to resolve service endpoints. If using 'kube' the service account for the pod must have the 'view' role, which can be added via 'oc policy add-role-to-user view system:serviceaccount:<namespace>:default' where <namespace> is the project namespace.",
  162. "name": "AMQ_MESH_DISCOVERY_TYPE",
  163. "value": "kube",
  164. "required": false
  165. },
  166. {
  167. "displayName": "A-MQ Storage Limit",
  168. "description": "The A-MQ storage usage limit",
  169. "name": "AMQ_STORAGE_USAGE_LIMIT",
  170. "value": "100 gb",
  171. "required": false
  172. },
  173. {
  174. "displayName": "Github Webhook Secret",
  175. "description": "GitHub trigger secret",
  176. "name": "GITHUB_WEBHOOK_SECRET",
  177. "from": "[a-zA-Z0-9]{8}",
  178. "generate": "expression",
  179. "required": true
  180. },
  181. {
  182. "displayName": "Generic Webhook Secret",
  183. "description": "Generic build trigger secret",
  184. "name": "GENERIC_WEBHOOK_SECRET",
  185. "from": "[a-zA-Z0-9]{8}",
  186. "generate": "expression",
  187. "required": true
  188. },
  189. {
  190. "displayName": "ImageStream Namespace",
  191. "description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
  192. "name": "IMAGE_STREAM_NAMESPACE",
  193. "value": "openshift",
  194. "required": true
  195. },
  196. {
  197. "displayName": "JGroups Secret Name",
  198. "description": "The name of the secret containing the keystore file",
  199. "name": "JGROUPS_ENCRYPT_SECRET",
  200. "value": "eap7-app-secret",
  201. "required": false
  202. },
  203. {
  204. "displayName": "JGroups Keystore Filename",
  205. "description": "The name of the keystore file within the secret",
  206. "name": "JGROUPS_ENCRYPT_KEYSTORE",
  207. "value": "jgroups.jceks",
  208. "required": false
  209. },
  210. {
  211. "displayName": "JGroups Certificate Name",
  212. "description": "The name associated with the server certificate",
  213. "name": "JGROUPS_ENCRYPT_NAME",
  214. "value": "",
  215. "required": false
  216. },
  217. {
  218. "displayName": "JGroups Keystore Password",
  219. "description": "The password for the keystore and certificate",
  220. "name": "JGROUPS_ENCRYPT_PASSWORD",
  221. "value": "",
  222. "required": false
  223. },
  224. {
  225. "displayName": "JGroups Cluster Password",
  226. "description": "JGroups cluster password",
  227. "name": "JGROUPS_CLUSTER_PASSWORD",
  228. "from": "[a-zA-Z0-9]{8}",
  229. "generate": "expression",
  230. "required": true
  231. },
  232. {
  233. "displayName": "Deploy Exploded Archives",
  234. "description": "Controls whether exploded deployment content should be automatically deployed",
  235. "name": "AUTO_DEPLOY_EXPLODED",
  236. "value": "false",
  237. "required": false
  238. },
  239. {
  240. "displayName": "Maven mirror URL",
  241. "description": "Maven mirror to use for S2I builds",
  242. "name": "MAVEN_MIRROR_URL",
  243. "value": "",
  244. "required": false
  245. },
  246. {
  247. "description": "List of directories from which archives will be copied into the deployment folder. If unspecified, all archives in /target will be copied.",
  248. "name": "ARTIFACT_DIR",
  249. "value": "",
  250. "required": false
  251. }
  252. ],
  253. "objects": [
  254. {
  255. "kind": "Service",
  256. "apiVersion": "v1",
  257. "spec": {
  258. "ports": [
  259. {
  260. "port": 8080,
  261. "targetPort": 8080
  262. }
  263. ],
  264. "selector": {
  265. "deploymentConfig": "${APPLICATION_NAME}"
  266. }
  267. },
  268. "metadata": {
  269. "name": "${APPLICATION_NAME}",
  270. "labels": {
  271. "application": "${APPLICATION_NAME}"
  272. },
  273. "annotations": {
  274. "description": "The web server's HTTP port.",
  275. "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-amq-tcp\", \"kind\": \"Service\"}]"
  276. }
  277. }
  278. },
  279. {
  280. "kind": "Service",
  281. "apiVersion": "v1",
  282. "spec": {
  283. "ports": [
  284. {
  285. "port": 8443,
  286. "targetPort": 8443
  287. }
  288. ],
  289. "selector": {
  290. "deploymentConfig": "${APPLICATION_NAME}"
  291. }
  292. },
  293. "metadata": {
  294. "name": "secure-${APPLICATION_NAME}",
  295. "labels": {
  296. "application": "${APPLICATION_NAME}"
  297. },
  298. "annotations": {
  299. "description": "The web server's HTTPS port.",
  300. "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-amq-tcp\", \"kind\": \"Service\"}]"
  301. }
  302. }
  303. },
  304. {
  305. "kind": "Service",
  306. "apiVersion": "v1",
  307. "spec": {
  308. "ports": [
  309. {
  310. "port": 61616,
  311. "targetPort": 61616
  312. }
  313. ],
  314. "selector": {
  315. "deploymentConfig": "${APPLICATION_NAME}-amq"
  316. }
  317. },
  318. "metadata": {
  319. "name": "${APPLICATION_NAME}-amq-tcp",
  320. "labels": {
  321. "application": "${APPLICATION_NAME}"
  322. },
  323. "annotations": {
  324. "description": "The broker's OpenWire port."
  325. }
  326. }
  327. },
  328. {
  329. "kind": "Route",
  330. "apiVersion": "v1",
  331. "id": "${APPLICATION_NAME}-http",
  332. "metadata": {
  333. "name": "${APPLICATION_NAME}",
  334. "labels": {
  335. "application": "${APPLICATION_NAME}"
  336. },
  337. "annotations": {
  338. "description": "Route for application's HTTP service."
  339. }
  340. },
  341. "spec": {
  342. "host": "${HOSTNAME_HTTP}",
  343. "to": {
  344. "name": "${APPLICATION_NAME}"
  345. }
  346. }
  347. },
  348. {
  349. "kind": "Route",
  350. "apiVersion": "v1",
  351. "id": "${APPLICATION_NAME}-https",
  352. "metadata": {
  353. "name": "secure-${APPLICATION_NAME}",
  354. "labels": {
  355. "application": "${APPLICATION_NAME}"
  356. },
  357. "annotations": {
  358. "description": "Route for application's HTTPS service."
  359. }
  360. },
  361. "spec": {
  362. "host": "${HOSTNAME_HTTPS}",
  363. "to": {
  364. "name": "secure-${APPLICATION_NAME}"
  365. },
  366. "tls": {
  367. "termination": "passthrough"
  368. }
  369. }
  370. },
  371. {
  372. "kind": "ImageStream",
  373. "apiVersion": "v1",
  374. "metadata": {
  375. "name": "${APPLICATION_NAME}",
  376. "labels": {
  377. "application": "${APPLICATION_NAME}"
  378. }
  379. }
  380. },
  381. {
  382. "kind": "BuildConfig",
  383. "apiVersion": "v1",
  384. "metadata": {
  385. "name": "${APPLICATION_NAME}",
  386. "labels": {
  387. "application": "${APPLICATION_NAME}"
  388. }
  389. },
  390. "spec": {
  391. "source": {
  392. "type": "Git",
  393. "git": {
  394. "uri": "${SOURCE_REPOSITORY_URL}",
  395. "ref": "${SOURCE_REPOSITORY_REF}"
  396. },
  397. "contextDir": "${CONTEXT_DIR}"
  398. },
  399. "strategy": {
  400. "type": "Source",
  401. "sourceStrategy": {
  402. "env": [
  403. {
  404. "name": "MAVEN_MIRROR_URL",
  405. "value": "${MAVEN_MIRROR_URL}"
  406. },
  407. {
  408. "name": "ARTIFACT_DIR",
  409. "value": "${ARTIFACT_DIR}"
  410. }
  411. ],
  412. "forcePull": true,
  413. "from": {
  414. "kind": "ImageStreamTag",
  415. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  416. "name": "jboss-eap71-openshift:TP"
  417. }
  418. }
  419. },
  420. "output": {
  421. "to": {
  422. "kind": "ImageStreamTag",
  423. "name": "${APPLICATION_NAME}:latest"
  424. }
  425. },
  426. "triggers": [
  427. {
  428. "type": "GitHub",
  429. "github": {
  430. "secret": "${GITHUB_WEBHOOK_SECRET}"
  431. }
  432. },
  433. {
  434. "type": "Generic",
  435. "generic": {
  436. "secret": "${GENERIC_WEBHOOK_SECRET}"
  437. }
  438. },
  439. {
  440. "type": "ImageChange",
  441. "imageChange": {}
  442. },
  443. {
  444. "type": "ConfigChange"
  445. }
  446. ]
  447. }
  448. },
  449. {
  450. "kind": "DeploymentConfig",
  451. "apiVersion": "v1",
  452. "metadata": {
  453. "name": "${APPLICATION_NAME}",
  454. "labels": {
  455. "application": "${APPLICATION_NAME}"
  456. }
  457. },
  458. "spec": {
  459. "strategy": {
  460. "type": "Recreate"
  461. },
  462. "triggers": [
  463. {
  464. "type": "ImageChange",
  465. "imageChangeParams": {
  466. "automatic": true,
  467. "containerNames": [
  468. "${APPLICATION_NAME}"
  469. ],
  470. "from": {
  471. "kind": "ImageStreamTag",
  472. "name": "${APPLICATION_NAME}:latest"
  473. }
  474. }
  475. },
  476. {
  477. "type": "ConfigChange"
  478. }
  479. ],
  480. "replicas": 1,
  481. "selector": {
  482. "deploymentConfig": "${APPLICATION_NAME}"
  483. },
  484. "template": {
  485. "metadata": {
  486. "name": "${APPLICATION_NAME}",
  487. "labels": {
  488. "deploymentConfig": "${APPLICATION_NAME}",
  489. "application": "${APPLICATION_NAME}"
  490. }
  491. },
  492. "spec": {
  493. "serviceAccountName": "${SERVICE_ACCOUNT_NAME}",
  494. "terminationGracePeriodSeconds": 60,
  495. "containers": [
  496. {
  497. "name": "${APPLICATION_NAME}",
  498. "image": "${APPLICATION_NAME}",
  499. "imagePullPolicy": "Always",
  500. "volumeMounts": [
  501. {
  502. "name": "eap-keystore-volume",
  503. "mountPath": "/etc/eap-secret-volume",
  504. "readOnly": true
  505. },
  506. {
  507. "name": "eap-jgroups-keystore-volume",
  508. "mountPath": "/etc/jgroups-encrypt-secret-volume",
  509. "readOnly": true
  510. }
  511. ],
  512. "livenessProbe": {
  513. "exec": {
  514. "command": [
  515. "/bin/bash",
  516. "-c",
  517. "/opt/eap/bin/livenessProbe.sh"
  518. ]
  519. }
  520. },
  521. "readinessProbe": {
  522. "exec": {
  523. "command": [
  524. "/bin/bash",
  525. "-c",
  526. "/opt/eap/bin/readinessProbe.sh"
  527. ]
  528. }
  529. },
  530. "ports": [
  531. {
  532. "name": "jolokia",
  533. "containerPort": 8778,
  534. "protocol": "TCP"
  535. },
  536. {
  537. "name": "http",
  538. "containerPort": 8080,
  539. "protocol": "TCP"
  540. },
  541. {
  542. "name": "https",
  543. "containerPort": 8443,
  544. "protocol": "TCP"
  545. },
  546. {
  547. "name": "ping",
  548. "containerPort": 8888,
  549. "protocol": "TCP"
  550. }
  551. ],
  552. "env": [
  553. {
  554. "name": "MQ_SERVICE_PREFIX_MAPPING",
  555. "value": "${APPLICATION_NAME}-amq=MQ"
  556. },
  557. {
  558. "name": "MQ_JNDI",
  559. "value": "${MQ_JNDI}"
  560. },
  561. {
  562. "name": "MQ_USERNAME",
  563. "value": "${MQ_USERNAME}"
  564. },
  565. {
  566. "name": "MQ_PASSWORD",
  567. "value": "${MQ_PASSWORD}"
  568. },
  569. {
  570. "name": "MQ_PROTOCOL",
  571. "value": "tcp"
  572. },
  573. {
  574. "name": "MQ_QUEUES",
  575. "value": "${MQ_QUEUES}"
  576. },
  577. {
  578. "name": "MQ_TOPICS",
  579. "value": "${MQ_TOPICS}"
  580. },
  581. {
  582. "name": "MQ_SERIALIZABLE_PACKAGES",
  583. "value": "${MQ_SERIALIZABLE_PACKAGES}"
  584. },
  585. {
  586. "name": "OPENSHIFT_KUBE_PING_LABELS",
  587. "value": "application=${APPLICATION_NAME}"
  588. },
  589. {
  590. "name": "OPENSHIFT_KUBE_PING_NAMESPACE",
  591. "valueFrom": {
  592. "fieldRef": {
  593. "fieldPath": "metadata.namespace"
  594. }
  595. }
  596. },
  597. {
  598. "name": "HTTPS_KEYSTORE_DIR",
  599. "value": "/etc/eap-secret-volume"
  600. },
  601. {
  602. "name": "HTTPS_KEYSTORE",
  603. "value": "${HTTPS_KEYSTORE}"
  604. },
  605. {
  606. "name": "HTTPS_KEYSTORE_TYPE",
  607. "value": "${HTTPS_KEYSTORE_TYPE}"
  608. },
  609. {
  610. "name": "HTTPS_NAME",
  611. "value": "${HTTPS_NAME}"
  612. },
  613. {
  614. "name": "HTTPS_PASSWORD",
  615. "value": "${HTTPS_PASSWORD}"
  616. },
  617. {
  618. "name": "JGROUPS_ENCRYPT_SECRET",
  619. "value": "${JGROUPS_ENCRYPT_SECRET}"
  620. },
  621. {
  622. "name": "JGROUPS_ENCRYPT_KEYSTORE_DIR",
  623. "value": "/etc/jgroups-encrypt-secret-volume"
  624. },
  625. {
  626. "name": "JGROUPS_ENCRYPT_KEYSTORE",
  627. "value": "${JGROUPS_ENCRYPT_KEYSTORE}"
  628. },
  629. {
  630. "name": "JGROUPS_ENCRYPT_NAME",
  631. "value": "${JGROUPS_ENCRYPT_NAME}"
  632. },
  633. {
  634. "name": "JGROUPS_ENCRYPT_PASSWORD",
  635. "value": "${JGROUPS_ENCRYPT_PASSWORD}"
  636. },
  637. {
  638. "name": "JGROUPS_CLUSTER_PASSWORD",
  639. "value": "${JGROUPS_CLUSTER_PASSWORD}"
  640. },
  641. {
  642. "name": "AUTO_DEPLOY_EXPLODED",
  643. "value": "${AUTO_DEPLOY_EXPLODED}"
  644. }
  645. ]
  646. }
  647. ],
  648. "volumes": [
  649. {
  650. "name": "eap-keystore-volume",
  651. "secret": {
  652. "secretName": "${HTTPS_SECRET}"
  653. }
  654. },
  655. {
  656. "name": "eap-jgroups-keystore-volume",
  657. "secret": {
  658. "secretName": "${JGROUPS_ENCRYPT_SECRET}"
  659. }
  660. }
  661. ]
  662. }
  663. }
  664. }
  665. },
  666. {
  667. "kind": "DeploymentConfig",
  668. "apiVersion": "v1",
  669. "metadata": {
  670. "name": "${APPLICATION_NAME}-amq",
  671. "labels": {
  672. "application": "${APPLICATION_NAME}"
  673. }
  674. },
  675. "spec": {
  676. "strategy": {
  677. "type": "Recreate"
  678. },
  679. "triggers": [
  680. {
  681. "type": "ImageChange",
  682. "imageChangeParams": {
  683. "automatic": true,
  684. "containerNames": [
  685. "${APPLICATION_NAME}-amq"
  686. ],
  687. "from": {
  688. "kind": "ImageStreamTag",
  689. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  690. "name": "jboss-amq-62:1.6"
  691. }
  692. }
  693. },
  694. {
  695. "type": "ConfigChange"
  696. }
  697. ],
  698. "replicas": 1,
  699. "selector": {
  700. "deploymentConfig": "${APPLICATION_NAME}-amq"
  701. },
  702. "template": {
  703. "metadata": {
  704. "name": "${APPLICATION_NAME}-amq",
  705. "labels": {
  706. "deploymentConfig": "${APPLICATION_NAME}-amq",
  707. "application": "${APPLICATION_NAME}"
  708. }
  709. },
  710. "spec": {
  711. "terminationGracePeriodSeconds": 60,
  712. "containers": [
  713. {
  714. "name": "${APPLICATION_NAME}-amq",
  715. "image": "jboss-amq-62",
  716. "imagePullPolicy": "Always",
  717. "readinessProbe": {
  718. "exec": {
  719. "command": [
  720. "/bin/bash",
  721. "-c",
  722. "/opt/amq/bin/readinessProbe.sh"
  723. ]
  724. }
  725. },
  726. "ports": [
  727. {
  728. "name": "jolokia",
  729. "containerPort": 8778,
  730. "protocol": "TCP"
  731. },
  732. {
  733. "name": "amqp",
  734. "containerPort": 5672,
  735. "protocol": "TCP"
  736. },
  737. {
  738. "name": "amqp-ssl",
  739. "containerPort": 5671,
  740. "protocol": "TCP"
  741. },
  742. {
  743. "name": "mqtt",
  744. "containerPort": 1883,
  745. "protocol": "TCP"
  746. },
  747. {
  748. "name": "stomp",
  749. "containerPort": 61613,
  750. "protocol": "TCP"
  751. },
  752. {
  753. "name": "stomp-ssl",
  754. "containerPort": 61612,
  755. "protocol": "TCP"
  756. },
  757. {
  758. "name": "tcp",
  759. "containerPort": 61616,
  760. "protocol": "TCP"
  761. },
  762. {
  763. "name": "tcp-ssl",
  764. "containerPort": 61617,
  765. "protocol": "TCP"
  766. }
  767. ],
  768. "env": [
  769. {
  770. "name": "AMQ_USER",
  771. "value": "${MQ_USERNAME}"
  772. },
  773. {
  774. "name": "AMQ_PASSWORD",
  775. "value": "${MQ_PASSWORD}"
  776. },
  777. {
  778. "name": "AMQ_TRANSPORTS",
  779. "value": "${MQ_PROTOCOL}"
  780. },
  781. {
  782. "name": "AMQ_QUEUES",
  783. "value": "${MQ_QUEUES}"
  784. },
  785. {
  786. "name": "AMQ_TOPICS",
  787. "value": "${MQ_TOPICS}"
  788. },
  789. {
  790. "name": "MQ_SERIALIZABLE_PACKAGES",
  791. "value": "${MQ_SERIALIZABLE_PACKAGES}"
  792. },
  793. {
  794. "name": "AMQ_MESH_DISCOVERY_TYPE",
  795. "value": "${AMQ_MESH_DISCOVERY_TYPE}"
  796. },
  797. {
  798. "name": "AMQ_MESH_SERVICE_NAME",
  799. "value": "${APPLICATION_NAME}-amq-tcp"
  800. },
  801. {
  802. "name": "AMQ_MESH_SERVICE_NAMESPACE",
  803. "valueFrom": {
  804. "fieldRef": {
  805. "fieldPath": "metadata.namespace"
  806. }
  807. }
  808. },
  809. {
  810. "name": "AMQ_STORAGE_USAGE_LIMIT",
  811. "value": "${AMQ_STORAGE_USAGE_LIMIT}"
  812. }
  813. ]
  814. }
  815. ]
  816. }
  817. }
  818. }
  819. }
  820. ]
  821. }