processserver63-amq-postgresql-persistent-s2i.json 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052
  1. {
  2. "kind": "Template",
  3. "apiVersion": "v1",
  4. "metadata": {
  5. "annotations": {
  6. "description": "Application template for Red Hat JBoss BPM Suite 6.3 intelligent process server AMQ and PostgreSQL applications with persistent storage built using S2I.",
  7. "iconClass": "icon-jboss",
  8. "tags": "processserver,amq,postgresql,javaee,java,database,jboss,xpaas",
  9. "version": "1.3.3"
  10. },
  11. "name": "processserver63-amq-postgresql-persistent-s2i"
  12. },
  13. "labels": {
  14. "template": "processserver63-amq-postgresql-persistent-s2i",
  15. "xpaas": "1.3.3"
  16. },
  17. "parameters": [
  18. {
  19. "description": "The KIE Container deployment configuration in format: containerId=groupId:artifactId:version|c2=g2:a2:v2",
  20. "name": "KIE_CONTAINER_DEPLOYMENT",
  21. "value": "processserver-library=org.openshift.quickstarts:processserver-library:1.3.0.Final",
  22. "required": false
  23. },
  24. {
  25. "description": "The protocol to access the KIE Server REST interface.",
  26. "name": "KIE_SERVER_PROTOCOL",
  27. "value": "https",
  28. "required": false
  29. },
  30. {
  31. "description": "The port to access the KIE Server REST interface.",
  32. "name": "KIE_SERVER_PORT",
  33. "value": "8443",
  34. "required": false
  35. },
  36. {
  37. "description": "The user name to access the KIE Server REST or JMS interface.",
  38. "name": "KIE_SERVER_USER",
  39. "value": "kieserver",
  40. "required": false
  41. },
  42. {
  43. "description": "The password to access the KIE Server REST or JMS interface. Must be different than username; must not be root, admin, or administrator; must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), and 1 non-alphanumeric symbol(s).",
  44. "name": "KIE_SERVER_PASSWORD",
  45. "from": "[a-zA-Z]{6}[0-9]{1}!",
  46. "generate": "expression",
  47. "required": false
  48. },
  49. {
  50. "description": "JAAS LoginContext domain that shall be used to authenticate users when using JMS.",
  51. "name": "KIE_SERVER_DOMAIN",
  52. "value": "other",
  53. "required": false
  54. },
  55. {
  56. "description": "JNDI name of request queue for JMS.",
  57. "name": "KIE_SERVER_JMS_QUEUES_REQUEST",
  58. "value": "queue/KIE.SERVER.REQUEST",
  59. "required": false
  60. },
  61. {
  62. "description": "JNDI name of response queue for JMS.",
  63. "name": "KIE_SERVER_JMS_QUEUES_RESPONSE",
  64. "value": "queue/KIE.SERVER.RESPONSE",
  65. "required": false
  66. },
  67. {
  68. "description": "JNDI name of executor queue for JMS.",
  69. "name": "KIE_SERVER_EXECUTOR_JMS_QUEUE",
  70. "value": "queue/KIE.SERVER.EXECUTOR",
  71. "required": false
  72. },
  73. {
  74. "description": "Hibernate persistence dialect.",
  75. "name": "KIE_SERVER_PERSISTENCE_DIALECT",
  76. "value": "org.hibernate.dialect.PostgreSQL82Dialect",
  77. "required": false
  78. },
  79. {
  80. "description": "The name for the application.",
  81. "name": "APPLICATION_NAME",
  82. "value": "kie-app",
  83. "required": true
  84. },
  85. {
  86. "description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
  87. "name": "HOSTNAME_HTTP",
  88. "value": "",
  89. "required": false
  90. },
  91. {
  92. "description": "Custom hostname for https service route. Leave blank for default hostname, e.g.: secure-<application-name>-<project>.<default-domain-suffix>",
  93. "name": "HOSTNAME_HTTPS",
  94. "value": "",
  95. "required": false
  96. },
  97. {
  98. "description": "Git source URI for application",
  99. "name": "SOURCE_REPOSITORY_URL",
  100. "value": "https://github.com/jboss-openshift/openshift-quickstarts",
  101. "required": true
  102. },
  103. {
  104. "description": "Git branch/tag reference",
  105. "name": "SOURCE_REPOSITORY_REF",
  106. "value": "1.3",
  107. "required": false
  108. },
  109. {
  110. "description": "Path within Git project to build; empty for root project directory.",
  111. "name": "CONTEXT_DIR",
  112. "value": "processserver/library",
  113. "required": false
  114. },
  115. {
  116. "description": "Database JNDI name used by application to resolve the datasource, e.g. java:/jboss/datasources/ExampleDS",
  117. "name": "DB_JNDI",
  118. "value": "java:jboss/datasources/ExampleDS",
  119. "required": false
  120. },
  121. {
  122. "description": "Database name",
  123. "name": "DB_DATABASE",
  124. "value": "root",
  125. "required": true
  126. },
  127. {
  128. "description": "Size of persistent storage for database volume.",
  129. "name": "VOLUME_CAPACITY",
  130. "value": "512Mi",
  131. "required": true
  132. },
  133. {
  134. "description": "JNDI name for connection factory used by applications to connect to the broker, e.g. java:/JmsXA",
  135. "name": "MQ_JNDI",
  136. "value": "java:/JmsXA",
  137. "required": false
  138. },
  139. {
  140. "description": "Split the data directory for each node in a mesh.",
  141. "name": "AMQ_SPLIT",
  142. "value": "false",
  143. "required": false
  144. },
  145. {
  146. "description": "Broker protocols to configure, separated by commas. Allowed values are: `openwire`, `amqp`, `stomp` and `mqtt`. Only `openwire` is supported by EAP.",
  147. "name": "MQ_PROTOCOL",
  148. "value": "openwire",
  149. "required": false
  150. },
  151. {
  152. "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.",
  153. "name": "MQ_QUEUES",
  154. "value": "KIE.SERVER.REQUEST,KIE.SERVER.RESPONSE,KIE.SERVER.EXECUTOR",
  155. "required": false
  156. },
  157. {
  158. "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.",
  159. "name": "MQ_TOPICS",
  160. "value": "",
  161. "required": false
  162. },
  163. {
  164. "description": "The name of the secret containing the keystore file",
  165. "name": "HTTPS_SECRET",
  166. "value": "processserver-app-secret",
  167. "required": false
  168. },
  169. {
  170. "description": "The name of the keystore file within the secret",
  171. "name": "HTTPS_KEYSTORE",
  172. "value": "keystore.jks",
  173. "required": false
  174. },
  175. {
  176. "description": "The name associated with the server certificate",
  177. "name": "HTTPS_NAME",
  178. "value": "jboss",
  179. "required": false
  180. },
  181. {
  182. "description": "The password for the keystore and certificate",
  183. "name": "HTTPS_PASSWORD",
  184. "value": "mykeystorepass",
  185. "required": false
  186. },
  187. {
  188. "description": "Database user name",
  189. "name": "DB_USERNAME",
  190. "from": "user[a-zA-Z0-9]{3}",
  191. "generate": "expression",
  192. "required": true
  193. },
  194. {
  195. "description": "Database user password",
  196. "name": "DB_PASSWORD",
  197. "from": "[a-zA-Z0-9]{8}",
  198. "generate": "expression",
  199. "required": true
  200. },
  201. {
  202. "description": "Sets xa-pool/min-pool-size for the configured datasource.",
  203. "name": "DB_MIN_POOL_SIZE",
  204. "required": false
  205. },
  206. {
  207. "description": "Sets xa-pool/max-pool-size for the configured datasource.",
  208. "name": "DB_MAX_POOL_SIZE",
  209. "required": false
  210. },
  211. {
  212. "description": "Sets transaction-isolation for the configured datasource.",
  213. "name": "DB_TX_ISOLATION",
  214. "required": false
  215. },
  216. {
  217. "description": "The maximum number of client connections allowed. This also sets the maximum number of prepared transactions.",
  218. "name": "POSTGRESQL_MAX_CONNECTIONS",
  219. "required": false
  220. },
  221. {
  222. "description": "Configures how much memory is dedicated to PostgreSQL for caching data.",
  223. "name": "POSTGRESQL_SHARED_BUFFERS",
  224. "required": false
  225. },
  226. {
  227. "description": "User name for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
  228. "name": "MQ_USERNAME",
  229. "from": "user[a-zA-Z0-9]{3}",
  230. "generate": "expression",
  231. "required": false
  232. },
  233. {
  234. "description": "Password for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
  235. "name": "MQ_PASSWORD",
  236. "from": "[a-zA-Z0-9]{8}",
  237. "generate": "expression",
  238. "required": false
  239. },
  240. {
  241. "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.",
  242. "name": "AMQ_MESH_DISCOVERY_TYPE",
  243. "value": "kube",
  244. "required": false
  245. },
  246. {
  247. "description": "The A-MQ storage usage limit",
  248. "name": "AMQ_STORAGE_USAGE_LIMIT",
  249. "value": "100 gb",
  250. "required": false
  251. },
  252. {
  253. "description": "GitHub trigger secret",
  254. "name": "GITHUB_WEBHOOK_SECRET",
  255. "from": "[a-zA-Z0-9]{8}",
  256. "generate": "expression",
  257. "required": true
  258. },
  259. {
  260. "description": "Generic build trigger secret",
  261. "name": "GENERIC_WEBHOOK_SECRET",
  262. "from": "[a-zA-Z0-9]{8}",
  263. "generate": "expression",
  264. "required": true
  265. },
  266. {
  267. "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.",
  268. "name": "IMAGE_STREAM_NAMESPACE",
  269. "value": "openshift",
  270. "required": true
  271. }
  272. ],
  273. "objects": [
  274. {
  275. "kind": "Service",
  276. "apiVersion": "v1",
  277. "spec": {
  278. "ports": [
  279. {
  280. "port": 8080,
  281. "targetPort": 8080
  282. }
  283. ],
  284. "selector": {
  285. "deploymentConfig": "${APPLICATION_NAME}"
  286. }
  287. },
  288. "metadata": {
  289. "name": "${APPLICATION_NAME}",
  290. "labels": {
  291. "application": "${APPLICATION_NAME}"
  292. },
  293. "annotations": {
  294. "description": "The web server's http port."
  295. }
  296. }
  297. },
  298. {
  299. "kind": "Service",
  300. "apiVersion": "v1",
  301. "spec": {
  302. "ports": [
  303. {
  304. "port": 8443,
  305. "targetPort": 8443
  306. }
  307. ],
  308. "selector": {
  309. "deploymentConfig": "${APPLICATION_NAME}"
  310. }
  311. },
  312. "metadata": {
  313. "name": "secure-${APPLICATION_NAME}",
  314. "labels": {
  315. "application": "${APPLICATION_NAME}"
  316. },
  317. "annotations": {
  318. "description": "The web server's https port."
  319. }
  320. }
  321. },
  322. {
  323. "kind": "Service",
  324. "apiVersion": "v1",
  325. "spec": {
  326. "ports": [
  327. {
  328. "port": 5432,
  329. "targetPort": 5432
  330. }
  331. ],
  332. "selector": {
  333. "deploymentConfig": "${APPLICATION_NAME}-postgresql"
  334. }
  335. },
  336. "metadata": {
  337. "name": "${APPLICATION_NAME}-postgresql",
  338. "labels": {
  339. "application": "${APPLICATION_NAME}"
  340. },
  341. "annotations": {
  342. "description": "The database server's port."
  343. }
  344. }
  345. },
  346. {
  347. "kind": "Service",
  348. "apiVersion": "v1",
  349. "spec": {
  350. "ports": [
  351. {
  352. "port": 61616,
  353. "targetPort": 61616
  354. }
  355. ],
  356. "selector": {
  357. "deploymentConfig": "${APPLICATION_NAME}-amq"
  358. }
  359. },
  360. "metadata": {
  361. "name": "${APPLICATION_NAME}-amq-tcp",
  362. "labels": {
  363. "application": "${APPLICATION_NAME}"
  364. },
  365. "annotations": {
  366. "description": "The broker's OpenWire port."
  367. }
  368. }
  369. },
  370. {
  371. "kind": "Route",
  372. "apiVersion": "v1",
  373. "id": "${APPLICATION_NAME}-http",
  374. "metadata": {
  375. "name": "${APPLICATION_NAME}",
  376. "labels": {
  377. "application": "${APPLICATION_NAME}"
  378. },
  379. "annotations": {
  380. "description": "Route for application's http service."
  381. }
  382. },
  383. "spec": {
  384. "host": "${HOSTNAME_HTTP}",
  385. "to": {
  386. "name": "${APPLICATION_NAME}"
  387. }
  388. }
  389. },
  390. {
  391. "kind": "Route",
  392. "apiVersion": "v1",
  393. "id": "${APPLICATION_NAME}-https",
  394. "metadata": {
  395. "name": "secure-${APPLICATION_NAME}",
  396. "labels": {
  397. "application": "${APPLICATION_NAME}"
  398. },
  399. "annotations": {
  400. "description": "Route for application's https service."
  401. }
  402. },
  403. "spec": {
  404. "host": "${HOSTNAME_HTTPS}",
  405. "to": {
  406. "name": "secure-${APPLICATION_NAME}"
  407. },
  408. "tls": {
  409. "termination": "passthrough"
  410. }
  411. }
  412. },
  413. {
  414. "kind": "ImageStream",
  415. "apiVersion": "v1",
  416. "metadata": {
  417. "name": "${APPLICATION_NAME}",
  418. "labels": {
  419. "application": "${APPLICATION_NAME}"
  420. }
  421. }
  422. },
  423. {
  424. "kind": "BuildConfig",
  425. "apiVersion": "v1",
  426. "metadata": {
  427. "name": "${APPLICATION_NAME}",
  428. "labels": {
  429. "application": "${APPLICATION_NAME}"
  430. }
  431. },
  432. "spec": {
  433. "source": {
  434. "type": "Git",
  435. "git": {
  436. "uri": "${SOURCE_REPOSITORY_URL}",
  437. "ref": "${SOURCE_REPOSITORY_REF}"
  438. },
  439. "contextDir": "${CONTEXT_DIR}"
  440. },
  441. "strategy": {
  442. "type": "Source",
  443. "sourceStrategy": {
  444. "env": [
  445. {
  446. "name": "KIE_CONTAINER_DEPLOYMENT",
  447. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  448. }
  449. ],
  450. "forcePull": true,
  451. "from": {
  452. "kind": "ImageStreamTag",
  453. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  454. "name": "jboss-processserver63-openshift:1.3"
  455. }
  456. }
  457. },
  458. "output": {
  459. "to": {
  460. "kind": "ImageStreamTag",
  461. "name": "${APPLICATION_NAME}:latest"
  462. }
  463. },
  464. "triggers": [
  465. {
  466. "type": "GitHub",
  467. "github": {
  468. "secret": "${GITHUB_WEBHOOK_SECRET}"
  469. }
  470. },
  471. {
  472. "type": "Generic",
  473. "generic": {
  474. "secret": "${GENERIC_WEBHOOK_SECRET}"
  475. }
  476. },
  477. {
  478. "type": "ImageChange",
  479. "imageChange": {}
  480. },
  481. {
  482. "type": "ConfigChange"
  483. }
  484. ]
  485. }
  486. },
  487. {
  488. "kind": "DeploymentConfig",
  489. "apiVersion": "v1",
  490. "metadata": {
  491. "name": "${APPLICATION_NAME}",
  492. "labels": {
  493. "application": "${APPLICATION_NAME}"
  494. }
  495. },
  496. "spec": {
  497. "strategy": {
  498. "type": "Recreate"
  499. },
  500. "triggers": [
  501. {
  502. "type": "ImageChange",
  503. "imageChangeParams": {
  504. "automatic": true,
  505. "containerNames": [
  506. "${APPLICATION_NAME}"
  507. ],
  508. "from": {
  509. "kind": "ImageStream",
  510. "name": "${APPLICATION_NAME}"
  511. }
  512. }
  513. },
  514. {
  515. "type": "ConfigChange"
  516. }
  517. ],
  518. "replicas": 1,
  519. "selector": {
  520. "deploymentConfig": "${APPLICATION_NAME}"
  521. },
  522. "template": {
  523. "metadata": {
  524. "name": "${APPLICATION_NAME}",
  525. "labels": {
  526. "deploymentConfig": "${APPLICATION_NAME}",
  527. "application": "${APPLICATION_NAME}"
  528. }
  529. },
  530. "spec": {
  531. "serviceAccountName": "processserver-service-account",
  532. "terminationGracePeriodSeconds": 60,
  533. "containers": [
  534. {
  535. "name": "${APPLICATION_NAME}",
  536. "image": "${APPLICATION_NAME}",
  537. "imagePullPolicy": "Always",
  538. "volumeMounts": [
  539. {
  540. "name": "processserver-keystore-volume",
  541. "mountPath": "/etc/processserver-secret-volume",
  542. "readOnly": true
  543. }
  544. ],
  545. "livenessProbe": {
  546. "exec": {
  547. "command": [
  548. "/bin/bash",
  549. "-c",
  550. "/opt/eap/bin/livenessProbe.sh"
  551. ]
  552. }
  553. },
  554. "readinessProbe": {
  555. "exec": {
  556. "command": [
  557. "/bin/bash",
  558. "-c",
  559. "/opt/eap/bin/readinessProbe.sh"
  560. ]
  561. }
  562. },
  563. "ports": [
  564. {
  565. "name": "jolokia",
  566. "containerPort": 8778,
  567. "protocol": "TCP"
  568. },
  569. {
  570. "name": "http",
  571. "containerPort": 8080,
  572. "protocol": "TCP"
  573. },
  574. {
  575. "name": "https",
  576. "containerPort": 8443,
  577. "protocol": "TCP"
  578. }
  579. ],
  580. "env": [
  581. {
  582. "name": "KIE_CONTAINER_DEPLOYMENT",
  583. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  584. },
  585. {
  586. "name": "KIE_SERVER_PROTOCOL",
  587. "value": "${KIE_SERVER_PROTOCOL}"
  588. },
  589. {
  590. "name": "KIE_SERVER_PORT",
  591. "value": "${KIE_SERVER_PORT}"
  592. },
  593. {
  594. "name": "KIE_SERVER_USER",
  595. "value": "${KIE_SERVER_USER}"
  596. },
  597. {
  598. "name": "KIE_SERVER_PASSWORD",
  599. "value": "${KIE_SERVER_PASSWORD}"
  600. },
  601. {
  602. "name": "KIE_SERVER_DOMAIN",
  603. "value": "${KIE_SERVER_DOMAIN}"
  604. },
  605. {
  606. "name": "KIE_SERVER_JMS_QUEUES_REQUEST",
  607. "value": "${KIE_SERVER_JMS_QUEUES_REQUEST}"
  608. },
  609. {
  610. "name": "KIE_SERVER_JMS_QUEUES_RESPONSE",
  611. "value": "${KIE_SERVER_JMS_QUEUES_RESPONSE}"
  612. },
  613. {
  614. "name": "KIE_SERVER_EXECUTOR_JMS_QUEUE",
  615. "value": "${KIE_SERVER_EXECUTOR_JMS_QUEUE}"
  616. },
  617. {
  618. "name": "MQ_SERVICE_PREFIX_MAPPING",
  619. "value": "${APPLICATION_NAME}-amq=MQ"
  620. },
  621. {
  622. "name": "MQ_JNDI",
  623. "value": "${MQ_JNDI}"
  624. },
  625. {
  626. "name": "MQ_USERNAME",
  627. "value": "${MQ_USERNAME}"
  628. },
  629. {
  630. "name": "MQ_PASSWORD",
  631. "value": "${MQ_PASSWORD}"
  632. },
  633. {
  634. "name": "MQ_PROTOCOL",
  635. "value": "tcp"
  636. },
  637. {
  638. "name": "MQ_QUEUES",
  639. "value": "${MQ_QUEUES}"
  640. },
  641. {
  642. "name": "MQ_TOPICS",
  643. "value": "${MQ_TOPICS}"
  644. },
  645. {
  646. "name": "KIE_SERVER_PERSISTENCE_DIALECT",
  647. "value": "${KIE_SERVER_PERSISTENCE_DIALECT}"
  648. },
  649. {
  650. "name": "DB_SERVICE_PREFIX_MAPPING",
  651. "value": "${APPLICATION_NAME}-postgresql=DB,${APPLICATION_NAME}-postgresql=QUARTZ"
  652. },
  653. {
  654. "name": "TX_DATABASE_PREFIX_MAPPING",
  655. "value": "${APPLICATION_NAME}-postgresql=DB"
  656. },
  657. {
  658. "name": "DB_JNDI",
  659. "value": "${DB_JNDI}"
  660. },
  661. {
  662. "name": "DB_USERNAME",
  663. "value": "${DB_USERNAME}"
  664. },
  665. {
  666. "name": "DB_PASSWORD",
  667. "value": "${DB_PASSWORD}"
  668. },
  669. {
  670. "name": "DB_DATABASE",
  671. "value": "${DB_DATABASE}"
  672. },
  673. {
  674. "name": "DB_MIN_POOL_SIZE",
  675. "value": "${DB_MIN_POOL_SIZE}"
  676. },
  677. {
  678. "name": "DB_MAX_POOL_SIZE",
  679. "value": "${DB_MAX_POOL_SIZE}"
  680. },
  681. {
  682. "name": "DB_TX_ISOLATION",
  683. "value": "${DB_TX_ISOLATION}"
  684. },
  685. {
  686. "name": "QUARTZ_JNDI",
  687. "value": "${DB_JNDI}NotManaged"
  688. },
  689. {
  690. "name": "QUARTZ_USERNAME",
  691. "value": "${DB_USERNAME}"
  692. },
  693. {
  694. "name": "QUARTZ_PASSWORD",
  695. "value": "${DB_PASSWORD}"
  696. },
  697. {
  698. "name": "QUARTZ_DATABASE",
  699. "value": "${DB_DATABASE}"
  700. },
  701. {
  702. "name": "QUARTZ_MIN_POOL_SIZE",
  703. "value": "${DB_MIN_POOL_SIZE}"
  704. },
  705. {
  706. "name": "QUARTZ_MAX_POOL_SIZE",
  707. "value": "${DB_MAX_POOL_SIZE}"
  708. },
  709. {
  710. "name": "QUARTZ_TX_ISOLATION",
  711. "value": "${DB_TX_ISOLATION}"
  712. },
  713. {
  714. "name": "QUARTZ_JTA",
  715. "value": "false"
  716. },
  717. {
  718. "name": "QUARTZ_NONXA",
  719. "value": "true"
  720. },
  721. {
  722. "name": "HTTPS_KEYSTORE_DIR",
  723. "value": "/etc/processserver-secret-volume"
  724. },
  725. {
  726. "name": "HTTPS_KEYSTORE",
  727. "value": "${HTTPS_KEYSTORE}"
  728. },
  729. {
  730. "name": "HTTPS_NAME",
  731. "value": "${HTTPS_NAME}"
  732. },
  733. {
  734. "name": "HTTPS_PASSWORD",
  735. "value": "${HTTPS_PASSWORD}"
  736. }
  737. ]
  738. }
  739. ],
  740. "volumes": [
  741. {
  742. "name": "processserver-keystore-volume",
  743. "secret": {
  744. "secretName": "${HTTPS_SECRET}"
  745. }
  746. }
  747. ]
  748. }
  749. }
  750. }
  751. },
  752. {
  753. "kind": "DeploymentConfig",
  754. "apiVersion": "v1",
  755. "metadata": {
  756. "name": "${APPLICATION_NAME}-postgresql",
  757. "labels": {
  758. "application": "${APPLICATION_NAME}"
  759. }
  760. },
  761. "spec": {
  762. "strategy": {
  763. "type": "Recreate"
  764. },
  765. "triggers": [
  766. {
  767. "type": "ImageChange",
  768. "imageChangeParams": {
  769. "automatic": true,
  770. "containerNames": [
  771. "${APPLICATION_NAME}-postgresql"
  772. ],
  773. "from": {
  774. "kind": "ImageStreamTag",
  775. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  776. "name": "postgresql:latest"
  777. }
  778. }
  779. },
  780. {
  781. "type": "ConfigChange"
  782. }
  783. ],
  784. "replicas": 1,
  785. "selector": {
  786. "deploymentConfig": "${APPLICATION_NAME}-postgresql"
  787. },
  788. "template": {
  789. "metadata": {
  790. "name": "${APPLICATION_NAME}-postgresql",
  791. "labels": {
  792. "deploymentConfig": "${APPLICATION_NAME}-postgresql",
  793. "application": "${APPLICATION_NAME}"
  794. }
  795. },
  796. "spec": {
  797. "terminationGracePeriodSeconds": 60,
  798. "containers": [
  799. {
  800. "name": "${APPLICATION_NAME}-postgresql",
  801. "image": "postgresql",
  802. "imagePullPolicy": "Always",
  803. "ports": [
  804. {
  805. "containerPort": 5432,
  806. "protocol": "TCP"
  807. }
  808. ],
  809. "volumeMounts": [
  810. {
  811. "mountPath": "/var/lib/pgsql/data",
  812. "name": "${APPLICATION_NAME}-postgresql-pvol"
  813. }
  814. ],
  815. "env": [
  816. {
  817. "name": "POSTGRESQL_USER",
  818. "value": "${DB_USERNAME}"
  819. },
  820. {
  821. "name": "POSTGRESQL_PASSWORD",
  822. "value": "${DB_PASSWORD}"
  823. },
  824. {
  825. "name": "POSTGRESQL_DATABASE",
  826. "value": "${DB_DATABASE}"
  827. },
  828. {
  829. "name": "POSTGRESQL_MAX_CONNECTIONS",
  830. "value": "${POSTGRESQL_MAX_CONNECTIONS}"
  831. },
  832. {
  833. "name": "POSTGRESQL_SHARED_BUFFERS",
  834. "value": "${POSTGRESQL_SHARED_BUFFERS}"
  835. }
  836. ]
  837. }
  838. ],
  839. "volumes": [
  840. {
  841. "name": "${APPLICATION_NAME}-postgresql-pvol",
  842. "persistentVolumeClaim": {
  843. "claimName": "${APPLICATION_NAME}-postgresql-claim"
  844. }
  845. }
  846. ]
  847. }
  848. }
  849. }
  850. },
  851. {
  852. "apiVersion": "v1",
  853. "kind": "PersistentVolumeClaim",
  854. "metadata": {
  855. "name": "${APPLICATION_NAME}-postgresql-claim",
  856. "labels": {
  857. "application": "${APPLICATION_NAME}"
  858. }
  859. },
  860. "spec": {
  861. "accessModes": [
  862. "ReadWriteOnce"
  863. ],
  864. "resources": {
  865. "requests": {
  866. "storage": "${VOLUME_CAPACITY}"
  867. }
  868. }
  869. }
  870. },
  871. {
  872. "kind": "DeploymentConfig",
  873. "apiVersion": "v1",
  874. "metadata": {
  875. "name": "${APPLICATION_NAME}-amq",
  876. "labels": {
  877. "application": "${APPLICATION_NAME}"
  878. }
  879. },
  880. "spec": {
  881. "strategy": {
  882. "type": "Recreate"
  883. },
  884. "triggers": [
  885. {
  886. "type": "ImageChange",
  887. "imageChangeParams": {
  888. "automatic": true,
  889. "containerNames": [
  890. "${APPLICATION_NAME}-amq"
  891. ],
  892. "from": {
  893. "kind": "ImageStreamTag",
  894. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  895. "name": "jboss-amq-62:1.3"
  896. }
  897. }
  898. },
  899. {
  900. "type": "ConfigChange"
  901. }
  902. ],
  903. "replicas": 1,
  904. "selector": {
  905. "deploymentConfig": "${APPLICATION_NAME}-amq"
  906. },
  907. "template": {
  908. "metadata": {
  909. "name": "${APPLICATION_NAME}-amq",
  910. "labels": {
  911. "deploymentConfig": "${APPLICATION_NAME}-amq",
  912. "application": "${APPLICATION_NAME}"
  913. }
  914. },
  915. "spec": {
  916. "terminationGracePeriodSeconds": 60,
  917. "containers": [
  918. {
  919. "name": "${APPLICATION_NAME}-amq",
  920. "image": "jboss-amq-62",
  921. "imagePullPolicy": "Always",
  922. "volumeMounts": [
  923. {
  924. "mountPath": "/opt/amq/data",
  925. "name": "${APPLICATION_NAME}-amq-pvol"
  926. }
  927. ],
  928. "readinessProbe": {
  929. "exec": {
  930. "command": [
  931. "/bin/bash",
  932. "-c",
  933. "/opt/amq/bin/readinessProbe.sh"
  934. ]
  935. }
  936. },
  937. "ports": [
  938. {
  939. "name": "jolokia",
  940. "containerPort": 8778,
  941. "protocol": "TCP"
  942. },
  943. {
  944. "name": "amqp",
  945. "containerPort": 5672,
  946. "protocol": "TCP"
  947. },
  948. {
  949. "name": "amqp-ssl",
  950. "containerPort": 5671,
  951. "protocol": "TCP"
  952. },
  953. {
  954. "name": "mqtt",
  955. "containerPort": 1883,
  956. "protocol": "TCP"
  957. },
  958. {
  959. "name": "stomp",
  960. "containerPort": 61613,
  961. "protocol": "TCP"
  962. },
  963. {
  964. "name": "stomp-ssl",
  965. "containerPort": 61612,
  966. "protocol": "TCP"
  967. },
  968. {
  969. "name": "tcp",
  970. "containerPort": 61616,
  971. "protocol": "TCP"
  972. },
  973. {
  974. "name": "tcp-ssl",
  975. "containerPort": 61617,
  976. "protocol": "TCP"
  977. }
  978. ],
  979. "env": [
  980. {
  981. "name": "AMQ_USER",
  982. "value": "${MQ_USERNAME}"
  983. },
  984. {
  985. "name": "AMQ_PASSWORD",
  986. "value": "${MQ_PASSWORD}"
  987. },
  988. {
  989. "name": "AMQ_TRANSPORTS",
  990. "value": "${MQ_PROTOCOL}"
  991. },
  992. {
  993. "name": "AMQ_SPLIT",
  994. "value": "${AMQ_SPLIT}"
  995. },
  996. {
  997. "name": "AMQ_MESH_DISCOVERY_TYPE",
  998. "value": "${AMQ_MESH_DISCOVERY_TYPE}"
  999. },
  1000. {
  1001. "name": "AMQ_MESH_SERVICE_NAME",
  1002. "value": "${APPLICATION_NAME}-amq-tcp"
  1003. },
  1004. {
  1005. "name": "AMQ_MESH_SERVICE_NAMESPACE",
  1006. "valueFrom": {
  1007. "fieldRef": {
  1008. "fieldPath": "metadata.namespace"
  1009. }
  1010. }
  1011. },
  1012. {
  1013. "name": "AMQ_STORAGE_USAGE_LIMIT",
  1014. "value": "${AMQ_STORAGE_USAGE_LIMIT}"
  1015. }
  1016. ]
  1017. }
  1018. ],
  1019. "volumes": [
  1020. {
  1021. "name": "${APPLICATION_NAME}-amq-pvol",
  1022. "persistentVolumeClaim": {
  1023. "claimName": "${APPLICATION_NAME}-amq-claim"
  1024. }
  1025. }
  1026. ]
  1027. }
  1028. }
  1029. }
  1030. },
  1031. {
  1032. "apiVersion": "v1",
  1033. "kind": "PersistentVolumeClaim",
  1034. "metadata": {
  1035. "name": "${APPLICATION_NAME}-amq-claim",
  1036. "labels": {
  1037. "application": "${APPLICATION_NAME}"
  1038. }
  1039. },
  1040. "spec": {
  1041. "accessModes": [
  1042. "ReadWriteMany"
  1043. ],
  1044. "resources": {
  1045. "requests": {
  1046. "storage": "${VOLUME_CAPACITY}"
  1047. }
  1048. }
  1049. }
  1050. }
  1051. ]
  1052. }