processserver64-amq-postgresql-persistent-s2i.json 50 KB

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