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

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