processserver63-amq-postgresql-s2i.json 38 KB

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