eap64-amq-persistent-s2i.json 37 KB

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