processserver64-amq-postgresql-s2i.json 46 KB

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