processserver64-postgresql-persistent-s2i.json 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. {
  2. "kind": "Template",
  3. "apiVersion": "v1",
  4. "metadata": {
  5. "annotations": {
  6. "iconClass": "icon-processserver",
  7. "tags": "processserver,jboss",
  8. "version": "1.4.14",
  9. "openshift.io/display-name": "JBoss BPM Suite 6.4 intelligent process server + PostgreSQL (with https)",
  10. "openshift.io/provider-display-name": "Red Hat, Inc.",
  11. "description": "An example BPM Suite application with a PostgreSQL database. For more information about using this template, see https://github.com/jboss-openshift/application-templates.",
  12. "template.openshift.io/long-description": "This template defines resources needed to develop Red Hat Business Process Suite intelligent process server 6.4 based application, including a build configuration, application deployment configuration, database deployment configuration for PostgreSQL using persistence and secure communication using https.",
  13. "template.openshift.io/documentation-url": "https://access.redhat.com/documentation/en/red-hat-jboss-bpm-suite/",
  14. "template.openshift.io/support-url": "https://access.redhat.com"
  15. },
  16. "name": "processserver64-postgresql-persistent-s2i"
  17. },
  18. "labels": {
  19. "template": "processserver64-postgresql-persistent-s2i",
  20. "xpaas": "1.4.14"
  21. },
  22. "message": "A new persistent BPMS application (using PostgreSQL) 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}. Please be sure to create the secret named \"${HTTPS_SECRET}\" containing the ${HTTPS_KEYSTORE} file used for serving secure content.",
  23. "parameters": [
  24. {
  25. "displayName": "KIE Container Deployment",
  26. "description": "The KIE Container deployment configuration in format: containerId=groupId:artifactId:version|c2=g2:a2:v2",
  27. "name": "KIE_CONTAINER_DEPLOYMENT",
  28. "value": "processserver-library=org.openshift.quickstarts:processserver-library:1.3.0.Final",
  29. "required": false
  30. },
  31. {
  32. "displayName": "KIE Server Protocol",
  33. "description": "The protocol to access the KIE Server REST interface.",
  34. "name": "KIE_SERVER_PROTOCOL",
  35. "value": "https",
  36. "required": false
  37. },
  38. {
  39. "displayName": "KIE Server Port",
  40. "description": "The port to access the KIE Server REST interface.",
  41. "name": "KIE_SERVER_PORT",
  42. "value": "8443",
  43. "required": false
  44. },
  45. {
  46. "displayName": "KIE Server Username",
  47. "description": "The user name to access the KIE Server REST or JMS interface.",
  48. "name": "KIE_SERVER_USER",
  49. "value": "kieserver",
  50. "required": false
  51. },
  52. {
  53. "displayName": "KIE Server Password",
  54. "description": "The password to access the KIE Server REST or JMS interface. Must be different than username; must not be root, admin, or administrator; must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), and 1 non-alphanumeric symbol(s).",
  55. "name": "KIE_SERVER_PASSWORD",
  56. "from": "[a-zA-Z]{6}[0-9]{1}!",
  57. "generate": "expression",
  58. "required": false
  59. },
  60. {
  61. "displayName": "KIE Server Domain",
  62. "description": "JAAS LoginContext domain that shall be used to authenticate users when using JMS.",
  63. "name": "KIE_SERVER_DOMAIN",
  64. "value": "other",
  65. "required": false
  66. },
  67. {
  68. "displayName": "KIE Server Persistence Dialect",
  69. "description": "Hibernate persistence dialect.",
  70. "name": "KIE_SERVER_PERSISTENCE_DIALECT",
  71. "value": "org.hibernate.dialect.PostgreSQL82Dialect",
  72. "required": false
  73. },
  74. {
  75. "displayName": "Application Name",
  76. "description": "The name for the application.",
  77. "name": "APPLICATION_NAME",
  78. "value": "kie-app",
  79. "required": true
  80. },
  81. {
  82. "displayName": "Custom http Route Hostname",
  83. "description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
  84. "name": "HOSTNAME_HTTP",
  85. "value": "",
  86. "required": false
  87. },
  88. {
  89. "displayName": "Custom https Route Hostname",
  90. "description": "Custom hostname for https service route. Leave blank for default hostname, e.g.: secure-<application-name>-<project>.<default-domain-suffix>",
  91. "name": "HOSTNAME_HTTPS",
  92. "value": "",
  93. "required": false
  94. },
  95. {
  96. "displayName": "Git Repository URL",
  97. "description": "Git source URI for application",
  98. "name": "SOURCE_REPOSITORY_URL",
  99. "value": "https://github.com/jboss-openshift/openshift-quickstarts",
  100. "required": true
  101. },
  102. {
  103. "displayName": "Git Reference",
  104. "description": "Git branch/tag reference",
  105. "name": "SOURCE_REPOSITORY_REF",
  106. "value": "1.3",
  107. "required": false
  108. },
  109. {
  110. "displayName": "Context Directory",
  111. "description": "Path within Git project to build; empty for root project directory.",
  112. "name": "CONTEXT_DIR",
  113. "value": "processserver/library",
  114. "required": false
  115. },
  116. {
  117. "displayName": "Database JNDI Name",
  118. "description": "Database JNDI name used by application to resolve the datasource, e.g. java:/jboss/datasources/ExampleDS",
  119. "name": "DB_JNDI",
  120. "value": "java:jboss/datasources/ExampleDS",
  121. "required": false
  122. },
  123. {
  124. "displayName": "Database Name",
  125. "description": "Database name",
  126. "name": "DB_DATABASE",
  127. "value": "root",
  128. "required": true
  129. },
  130. {
  131. "displayName": "Database Volume Capacity",
  132. "description": "Size of persistent storage for database volume.",
  133. "name": "VOLUME_CAPACITY",
  134. "value": "1Gi",
  135. "required": true
  136. },
  137. {
  138. "displayName": "Queues",
  139. "description": "Queue names",
  140. "name": "HORNETQ_QUEUES",
  141. "value": "",
  142. "required": false
  143. },
  144. {
  145. "displayName": "Topics",
  146. "description": "Topic names",
  147. "name": "HORNETQ_TOPICS",
  148. "value": "",
  149. "required": false
  150. },
  151. {
  152. "displayName": "Server Keystore Secret Name",
  153. "description": "The name of the secret containing the keystore file",
  154. "name": "HTTPS_SECRET",
  155. "value": "processserver-app-secret",
  156. "required": false
  157. },
  158. {
  159. "displayName": "Server Keystore Filename",
  160. "description": "The name of the keystore file within the secret",
  161. "name": "HTTPS_KEYSTORE",
  162. "value": "keystore.jks",
  163. "required": false
  164. },
  165. {
  166. "displayName": "Server Certificate Name",
  167. "description": "The name associated with the server certificate",
  168. "name": "HTTPS_NAME",
  169. "value": "jboss",
  170. "required": false
  171. },
  172. {
  173. "displayName": "Server Keystore Password",
  174. "description": "The password for the keystore and certificate",
  175. "name": "HTTPS_PASSWORD",
  176. "value": "mykeystorepass",
  177. "required": false
  178. },
  179. {
  180. "displayName": "Database Username",
  181. "description": "Database user name",
  182. "name": "DB_USERNAME",
  183. "from": "user[a-zA-Z0-9]{3}",
  184. "generate": "expression",
  185. "required": true
  186. },
  187. {
  188. "displayName": "Database Password",
  189. "description": "Database user password",
  190. "name": "DB_PASSWORD",
  191. "from": "[a-zA-Z0-9]{8}",
  192. "generate": "expression",
  193. "required": true
  194. },
  195. {
  196. "displayName": "Datasource Minimum Pool Size",
  197. "description": "Sets xa-pool/min-pool-size for the configured datasource.",
  198. "name": "DB_MIN_POOL_SIZE",
  199. "required": false
  200. },
  201. {
  202. "displayName": "Datasource Maximum Pool Size",
  203. "description": "Sets xa-pool/max-pool-size for the configured datasource.",
  204. "name": "DB_MAX_POOL_SIZE",
  205. "required": false
  206. },
  207. {
  208. "displayName": "Datasource Transaction Isolation",
  209. "description": "Sets transaction-isolation for the configured datasource.",
  210. "name": "DB_TX_ISOLATION",
  211. "required": false
  212. },
  213. {
  214. "displayName": "PostgreSQL Maximum number of connections",
  215. "description": "The maximum number of client connections allowed. This also sets the maximum number of prepared transactions.",
  216. "name": "POSTGRESQL_MAX_CONNECTIONS",
  217. "required": false
  218. },
  219. {
  220. "displayName": "PostgreSQL Shared Buffers",
  221. "description": "Configures how much memory is dedicated to PostgreSQL for caching data.",
  222. "name": "POSTGRESQL_SHARED_BUFFERS",
  223. "required": false
  224. },
  225. {
  226. "displayName": "HornetQ Password",
  227. "description": "HornetQ cluster admin password",
  228. "name": "HORNETQ_CLUSTER_PASSWORD",
  229. "from": "[a-zA-Z0-9]{8}",
  230. "generate": "expression",
  231. "required": true
  232. },
  233. {
  234. "displayName": "Github Webhook Secret",
  235. "description": "GitHub trigger secret",
  236. "name": "GITHUB_WEBHOOK_SECRET",
  237. "from": "[a-zA-Z0-9]{8}",
  238. "generate": "expression",
  239. "required": true
  240. },
  241. {
  242. "displayName": "Generic Webhook Secret",
  243. "description": "Generic build trigger secret",
  244. "name": "GENERIC_WEBHOOK_SECRET",
  245. "from": "[a-zA-Z0-9]{8}",
  246. "generate": "expression",
  247. "required": true
  248. },
  249. {
  250. "displayName": "ImageStream Namespace",
  251. "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.",
  252. "name": "IMAGE_STREAM_NAMESPACE",
  253. "value": "openshift",
  254. "required": true
  255. },
  256. {
  257. "displayName": "Maven mirror URL",
  258. "description": "Maven mirror to use for S2I builds",
  259. "name": "MAVEN_MIRROR_URL",
  260. "value": "",
  261. "required": false
  262. },
  263. {
  264. "description": "List of directories from which archives will be copied into the deployment folder. If unspecified, all archives in /target will be copied.",
  265. "name": "ARTIFACT_DIR",
  266. "value": "",
  267. "required": false
  268. },
  269. {
  270. "displayName": "PostgreSQL Image Stream Tag",
  271. "description": "The tag to use for the \"postgresql\" image stream. Typically, this aligns with the major.minor version of PostgreSQL.",
  272. "name": "POSTGRESQL_IMAGE_STREAM_TAG",
  273. "value": "9.5",
  274. "required": true
  275. },
  276. {
  277. "description": "Container memory limit",
  278. "name": "MEMORY_LIMIT",
  279. "value": "1Gi",
  280. "required": false
  281. }
  282. ],
  283. "objects": [
  284. {
  285. "kind": "Service",
  286. "apiVersion": "v1",
  287. "spec": {
  288. "ports": [
  289. {
  290. "port": 8080,
  291. "targetPort": 8080
  292. }
  293. ],
  294. "selector": {
  295. "deploymentConfig": "${APPLICATION_NAME}"
  296. }
  297. },
  298. "metadata": {
  299. "name": "${APPLICATION_NAME}",
  300. "labels": {
  301. "application": "${APPLICATION_NAME}"
  302. },
  303. "annotations": {
  304. "description": "The web server's http port.",
  305. "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-postgresql\", \"kind\": \"Service\"}]"
  306. }
  307. }
  308. },
  309. {
  310. "kind": "Service",
  311. "apiVersion": "v1",
  312. "spec": {
  313. "ports": [
  314. {
  315. "port": 8443,
  316. "targetPort": 8443
  317. }
  318. ],
  319. "selector": {
  320. "deploymentConfig": "${APPLICATION_NAME}"
  321. }
  322. },
  323. "metadata": {
  324. "name": "secure-${APPLICATION_NAME}",
  325. "labels": {
  326. "application": "${APPLICATION_NAME}"
  327. },
  328. "annotations": {
  329. "description": "The web server's https port.",
  330. "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-postgresql\", \"kind\": \"Service\"}]"
  331. }
  332. }
  333. },
  334. {
  335. "kind": "Service",
  336. "apiVersion": "v1",
  337. "spec": {
  338. "ports": [
  339. {
  340. "port": 5432,
  341. "targetPort": 5432
  342. }
  343. ],
  344. "selector": {
  345. "deploymentConfig": "${APPLICATION_NAME}-postgresql"
  346. }
  347. },
  348. "metadata": {
  349. "name": "${APPLICATION_NAME}-postgresql",
  350. "labels": {
  351. "application": "${APPLICATION_NAME}"
  352. },
  353. "annotations": {
  354. "description": "The database server's 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. "name": "MAVEN_MIRROR_URL",
  439. "value": "${MAVEN_MIRROR_URL}"
  440. },
  441. {
  442. "name": "ARTIFACT_DIR",
  443. "value": "${ARTIFACT_DIR}"
  444. }
  445. ],
  446. "forcePull": true,
  447. "from": {
  448. "kind": "ImageStreamTag",
  449. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  450. "name": "jboss-processserver64-openshift:1.3"
  451. }
  452. }
  453. },
  454. "output": {
  455. "to": {
  456. "kind": "ImageStreamTag",
  457. "name": "${APPLICATION_NAME}:latest"
  458. }
  459. },
  460. "triggers": [
  461. {
  462. "type": "GitHub",
  463. "github": {
  464. "secret": "${GITHUB_WEBHOOK_SECRET}"
  465. }
  466. },
  467. {
  468. "type": "Generic",
  469. "generic": {
  470. "secret": "${GENERIC_WEBHOOK_SECRET}"
  471. }
  472. },
  473. {
  474. "type": "ImageChange",
  475. "imageChange": {}
  476. },
  477. {
  478. "type": "ConfigChange"
  479. }
  480. ]
  481. }
  482. },
  483. {
  484. "kind": "DeploymentConfig",
  485. "apiVersion": "v1",
  486. "metadata": {
  487. "name": "${APPLICATION_NAME}",
  488. "labels": {
  489. "application": "${APPLICATION_NAME}"
  490. }
  491. },
  492. "spec": {
  493. "strategy": {
  494. "type": "Recreate"
  495. },
  496. "triggers": [
  497. {
  498. "type": "ImageChange",
  499. "imageChangeParams": {
  500. "automatic": true,
  501. "containerNames": [
  502. "${APPLICATION_NAME}"
  503. ],
  504. "from": {
  505. "kind": "ImageStream",
  506. "name": "${APPLICATION_NAME}"
  507. }
  508. }
  509. },
  510. {
  511. "type": "ConfigChange"
  512. }
  513. ],
  514. "replicas": 1,
  515. "selector": {
  516. "deploymentConfig": "${APPLICATION_NAME}"
  517. },
  518. "template": {
  519. "metadata": {
  520. "name": "${APPLICATION_NAME}",
  521. "labels": {
  522. "deploymentConfig": "${APPLICATION_NAME}",
  523. "application": "${APPLICATION_NAME}"
  524. }
  525. },
  526. "spec": {
  527. "terminationGracePeriodSeconds": 60,
  528. "containers": [
  529. {
  530. "name": "${APPLICATION_NAME}",
  531. "image": "${APPLICATION_NAME}",
  532. "imagePullPolicy": "Always",
  533. "resources": {
  534. "limits": {
  535. "memory": "${MEMORY_LIMIT}"
  536. }
  537. },
  538. "volumeMounts": [
  539. {
  540. "name": "processserver-keystore-volume",
  541. "mountPath": "/etc/processserver-secret-volume",
  542. "readOnly": true
  543. }
  544. ],
  545. "livenessProbe": {
  546. "exec": {
  547. "command": [
  548. "/bin/bash",
  549. "-c",
  550. "/opt/eap/bin/livenessProbe.sh"
  551. ]
  552. },
  553. "initialDelaySeconds": 60
  554. },
  555. "readinessProbe": {
  556. "exec": {
  557. "command": [
  558. "/bin/bash",
  559. "-c",
  560. "/opt/eap/bin/readinessProbe.sh"
  561. ]
  562. }
  563. },
  564. "ports": [
  565. {
  566. "name": "jolokia",
  567. "containerPort": 8778,
  568. "protocol": "TCP"
  569. },
  570. {
  571. "name": "http",
  572. "containerPort": 8080,
  573. "protocol": "TCP"
  574. },
  575. {
  576. "name": "https",
  577. "containerPort": 8443,
  578. "protocol": "TCP"
  579. }
  580. ],
  581. "env": [
  582. {
  583. "name": "KIE_CONTAINER_DEPLOYMENT",
  584. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  585. },
  586. {
  587. "name": "KIE_SERVER_PROTOCOL",
  588. "value": "${KIE_SERVER_PROTOCOL}"
  589. },
  590. {
  591. "name": "KIE_SERVER_PORT",
  592. "value": "${KIE_SERVER_PORT}"
  593. },
  594. {
  595. "name": "KIE_SERVER_USER",
  596. "value": "${KIE_SERVER_USER}"
  597. },
  598. {
  599. "name": "KIE_SERVER_PASSWORD",
  600. "value": "${KIE_SERVER_PASSWORD}"
  601. },
  602. {
  603. "name": "KIE_SERVER_DOMAIN",
  604. "value": "${KIE_SERVER_DOMAIN}"
  605. },
  606. {
  607. "name": "KIE_SERVER_PERSISTENCE_DIALECT",
  608. "value": "${KIE_SERVER_PERSISTENCE_DIALECT}"
  609. },
  610. {
  611. "name": "DB_SERVICE_PREFIX_MAPPING",
  612. "value": "${APPLICATION_NAME}-postgresql=DB,${APPLICATION_NAME}-postgresql=QUARTZ"
  613. },
  614. {
  615. "name": "TX_DATABASE_PREFIX_MAPPING",
  616. "value": "${APPLICATION_NAME}-postgresql=DB"
  617. },
  618. {
  619. "name": "DB_JNDI",
  620. "value": "${DB_JNDI}"
  621. },
  622. {
  623. "name": "DB_USERNAME",
  624. "value": "${DB_USERNAME}"
  625. },
  626. {
  627. "name": "DB_PASSWORD",
  628. "value": "${DB_PASSWORD}"
  629. },
  630. {
  631. "name": "DB_DATABASE",
  632. "value": "${DB_DATABASE}"
  633. },
  634. {
  635. "name": "DB_MIN_POOL_SIZE",
  636. "value": "${DB_MIN_POOL_SIZE}"
  637. },
  638. {
  639. "name": "DB_MAX_POOL_SIZE",
  640. "value": "${DB_MAX_POOL_SIZE}"
  641. },
  642. {
  643. "name": "DB_TX_ISOLATION",
  644. "value": "${DB_TX_ISOLATION}"
  645. },
  646. {
  647. "name": "QUARTZ_JNDI",
  648. "value": "${DB_JNDI}NotManaged"
  649. },
  650. {
  651. "name": "QUARTZ_USERNAME",
  652. "value": "${DB_USERNAME}"
  653. },
  654. {
  655. "name": "QUARTZ_PASSWORD",
  656. "value": "${DB_PASSWORD}"
  657. },
  658. {
  659. "name": "QUARTZ_DATABASE",
  660. "value": "${DB_DATABASE}"
  661. },
  662. {
  663. "name": "QUARTZ_MIN_POOL_SIZE",
  664. "value": "${DB_MIN_POOL_SIZE}"
  665. },
  666. {
  667. "name": "QUARTZ_MAX_POOL_SIZE",
  668. "value": "${DB_MAX_POOL_SIZE}"
  669. },
  670. {
  671. "name": "QUARTZ_TX_ISOLATION",
  672. "value": "${DB_TX_ISOLATION}"
  673. },
  674. {
  675. "name": "QUARTZ_JTA",
  676. "value": "false"
  677. },
  678. {
  679. "name": "QUARTZ_NONXA",
  680. "value": "true"
  681. },
  682. {
  683. "name": "HTTPS_KEYSTORE_DIR",
  684. "value": "/etc/processserver-secret-volume"
  685. },
  686. {
  687. "name": "HTTPS_KEYSTORE",
  688. "value": "${HTTPS_KEYSTORE}"
  689. },
  690. {
  691. "name": "HTTPS_NAME",
  692. "value": "${HTTPS_NAME}"
  693. },
  694. {
  695. "name": "HTTPS_PASSWORD",
  696. "value": "${HTTPS_PASSWORD}"
  697. },
  698. {
  699. "name": "HORNETQ_CLUSTER_PASSWORD",
  700. "value": "${HORNETQ_CLUSTER_PASSWORD}"
  701. },
  702. {
  703. "name": "HORNETQ_QUEUES",
  704. "value": "${HORNETQ_QUEUES}"
  705. },
  706. {
  707. "name": "HORNETQ_TOPICS",
  708. "value": "${HORNETQ_TOPICS}"
  709. }
  710. ]
  711. }
  712. ],
  713. "volumes": [
  714. {
  715. "name": "processserver-keystore-volume",
  716. "secret": {
  717. "secretName": "${HTTPS_SECRET}"
  718. }
  719. }
  720. ]
  721. }
  722. }
  723. }
  724. },
  725. {
  726. "kind": "DeploymentConfig",
  727. "apiVersion": "v1",
  728. "metadata": {
  729. "name": "${APPLICATION_NAME}-postgresql",
  730. "labels": {
  731. "application": "${APPLICATION_NAME}"
  732. }
  733. },
  734. "spec": {
  735. "strategy": {
  736. "type": "Recreate"
  737. },
  738. "triggers": [
  739. {
  740. "type": "ImageChange",
  741. "imageChangeParams": {
  742. "automatic": true,
  743. "containerNames": [
  744. "${APPLICATION_NAME}-postgresql"
  745. ],
  746. "from": {
  747. "kind": "ImageStreamTag",
  748. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  749. "name": "postgresql:${POSTGRESQL_IMAGE_STREAM_TAG}"
  750. }
  751. }
  752. },
  753. {
  754. "type": "ConfigChange"
  755. }
  756. ],
  757. "replicas": 1,
  758. "selector": {
  759. "deploymentConfig": "${APPLICATION_NAME}-postgresql"
  760. },
  761. "template": {
  762. "metadata": {
  763. "name": "${APPLICATION_NAME}-postgresql",
  764. "labels": {
  765. "deploymentConfig": "${APPLICATION_NAME}-postgresql",
  766. "application": "${APPLICATION_NAME}"
  767. }
  768. },
  769. "spec": {
  770. "terminationGracePeriodSeconds": 60,
  771. "containers": [
  772. {
  773. "name": "${APPLICATION_NAME}-postgresql",
  774. "image": "postgresql",
  775. "imagePullPolicy": "Always",
  776. "ports": [
  777. {
  778. "containerPort": 5432,
  779. "protocol": "TCP"
  780. }
  781. ],
  782. "readinessProbe": {
  783. "timeoutSeconds": 1,
  784. "initialDelaySeconds": 5,
  785. "exec": {
  786. "command": [ "/bin/sh", "-i", "-c", "psql -h 127.0.0.1 -U $POSTGRESQL_USER -q -d $POSTGRESQL_DATABASE -c 'SELECT 1'"]
  787. }
  788. },
  789. "livenessProbe": {
  790. "timeoutSeconds": 1,
  791. "initialDelaySeconds": 30,
  792. "tcpSocket": {
  793. "port": 5432
  794. }
  795. },
  796. "volumeMounts": [
  797. {
  798. "mountPath": "/var/lib/pgsql/data",
  799. "name": "${APPLICATION_NAME}-postgresql-pvol"
  800. }
  801. ],
  802. "env": [
  803. {
  804. "name": "POSTGRESQL_USER",
  805. "value": "${DB_USERNAME}"
  806. },
  807. {
  808. "name": "POSTGRESQL_PASSWORD",
  809. "value": "${DB_PASSWORD}"
  810. },
  811. {
  812. "name": "POSTGRESQL_DATABASE",
  813. "value": "${DB_DATABASE}"
  814. },
  815. {
  816. "name": "POSTGRESQL_MAX_CONNECTIONS",
  817. "value": "${POSTGRESQL_MAX_CONNECTIONS}"
  818. },
  819. {
  820. "name": "POSTGRESQL_SHARED_BUFFERS",
  821. "value": "${POSTGRESQL_SHARED_BUFFERS}"
  822. }
  823. ]
  824. }
  825. ],
  826. "volumes": [
  827. {
  828. "name": "${APPLICATION_NAME}-postgresql-pvol",
  829. "persistentVolumeClaim": {
  830. "claimName": "${APPLICATION_NAME}-postgresql-claim"
  831. }
  832. }
  833. ]
  834. }
  835. }
  836. }
  837. },
  838. {
  839. "apiVersion": "v1",
  840. "kind": "PersistentVolumeClaim",
  841. "metadata": {
  842. "name": "${APPLICATION_NAME}-postgresql-claim",
  843. "labels": {
  844. "application": "${APPLICATION_NAME}"
  845. }
  846. },
  847. "spec": {
  848. "accessModes": [
  849. "ReadWriteOnce"
  850. ],
  851. "resources": {
  852. "requests": {
  853. "storage": "${VOLUME_CAPACITY}"
  854. }
  855. }
  856. }
  857. }
  858. ]
  859. }