processserver64-postgresql-persistent-s2i.json 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  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 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.4 intelligent process server + PostgreSQL (Persistent with https)"
  11. },
  12. "name": "processserver64-postgresql-persistent-s2i"
  13. },
  14. "labels": {
  15. "template": "processserver64-postgresql-persistent-s2i",
  16. "xpaas": "1.4.0"
  17. },
  18. "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 \"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 Persistence Dialect",
  65. "description": "Hibernate persistence dialect.",
  66. "name": "KIE_SERVER_PERSISTENCE_DIALECT",
  67. "value": "org.hibernate.dialect.PostgreSQL82Dialect",
  68. "required": false
  69. },
  70. {
  71. "displayName": "Application Name",
  72. "description": "The name for the application.",
  73. "name": "APPLICATION_NAME",
  74. "value": "kie-app",
  75. "required": true
  76. },
  77. {
  78. "displayName": "Custom http Route Hostname",
  79. "description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
  80. "name": "HOSTNAME_HTTP",
  81. "value": "",
  82. "required": false
  83. },
  84. {
  85. "displayName": "Custom https Route Hostname",
  86. "description": "Custom hostname for https service route. Leave blank for default hostname, e.g.: secure-<application-name>-<project>.<default-domain-suffix>",
  87. "name": "HOSTNAME_HTTPS",
  88. "value": "",
  89. "required": false
  90. },
  91. {
  92. "displayName": "Git Repository URL",
  93. "description": "Git source URI for application",
  94. "name": "SOURCE_REPOSITORY_URL",
  95. "value": "https://github.com/jboss-openshift/openshift-quickstarts",
  96. "required": true
  97. },
  98. {
  99. "displayName": "Git Reference",
  100. "description": "Git branch/tag reference",
  101. "name": "SOURCE_REPOSITORY_REF",
  102. "value": "1.3",
  103. "required": false
  104. },
  105. {
  106. "displayName": "Context Directory",
  107. "description": "Path within Git project to build; empty for root project directory.",
  108. "name": "CONTEXT_DIR",
  109. "value": "processserver/library",
  110. "required": false
  111. },
  112. {
  113. "displayName": "Database JNDI Name",
  114. "description": "Database JNDI name used by application to resolve the datasource, e.g. java:/jboss/datasources/ExampleDS",
  115. "name": "DB_JNDI",
  116. "value": "java:jboss/datasources/ExampleDS",
  117. "required": false
  118. },
  119. {
  120. "displayName": "Database Name",
  121. "description": "Database name",
  122. "name": "DB_DATABASE",
  123. "value": "root",
  124. "required": true
  125. },
  126. {
  127. "displayName": "Database Volume Capacity",
  128. "description": "Size of persistent storage for database volume.",
  129. "name": "VOLUME_CAPACITY",
  130. "value": "512Mi",
  131. "required": true
  132. },
  133. {
  134. "displayName": "Queues",
  135. "description": "Queue names",
  136. "name": "HORNETQ_QUEUES",
  137. "value": "",
  138. "required": false
  139. },
  140. {
  141. "displayName": "Topics",
  142. "description": "Topic names",
  143. "name": "HORNETQ_TOPICS",
  144. "value": "",
  145. "required": false
  146. },
  147. {
  148. "displayName": "Server Keystore Secret Name",
  149. "description": "The name of the secret containing the keystore file",
  150. "name": "HTTPS_SECRET",
  151. "value": "processserver-app-secret",
  152. "required": false
  153. },
  154. {
  155. "displayName": "Server Keystore Filename",
  156. "description": "The name of the keystore file within the secret",
  157. "name": "HTTPS_KEYSTORE",
  158. "value": "keystore.jks",
  159. "required": false
  160. },
  161. {
  162. "displayName": "Server Certificate Name",
  163. "description": "The name associated with the server certificate",
  164. "name": "HTTPS_NAME",
  165. "value": "jboss",
  166. "required": false
  167. },
  168. {
  169. "displayName": "Server Keystore Password",
  170. "description": "The password for the keystore and certificate",
  171. "name": "HTTPS_PASSWORD",
  172. "value": "mykeystorepass",
  173. "required": false
  174. },
  175. {
  176. "displayName": "Database Username",
  177. "description": "Database user name",
  178. "name": "DB_USERNAME",
  179. "from": "user[a-zA-Z0-9]{3}",
  180. "generate": "expression",
  181. "required": true
  182. },
  183. {
  184. "displayName": "Database Password",
  185. "description": "Database user password",
  186. "name": "DB_PASSWORD",
  187. "from": "[a-zA-Z0-9]{8}",
  188. "generate": "expression",
  189. "required": true
  190. },
  191. {
  192. "displayName": "Datasource Minimum Pool Size",
  193. "description": "Sets xa-pool/min-pool-size for the configured datasource.",
  194. "name": "DB_MIN_POOL_SIZE",
  195. "required": false
  196. },
  197. {
  198. "displayName": "Datasource Maximum Pool Size",
  199. "description": "Sets xa-pool/max-pool-size for the configured datasource.",
  200. "name": "DB_MAX_POOL_SIZE",
  201. "required": false
  202. },
  203. {
  204. "displayName": "Datasource Transaction Isolation",
  205. "description": "Sets transaction-isolation for the configured datasource.",
  206. "name": "DB_TX_ISOLATION",
  207. "required": false
  208. },
  209. {
  210. "displayName": "PostgreSQL Maximum number of connections",
  211. "description": "The maximum number of client connections allowed. This also sets the maximum number of prepared transactions.",
  212. "name": "POSTGRESQL_MAX_CONNECTIONS",
  213. "required": false
  214. },
  215. {
  216. "displayName": "PostgreSQL Shared Buffers",
  217. "description": "Configures how much memory is dedicated to PostgreSQL for caching data.",
  218. "name": "POSTGRESQL_SHARED_BUFFERS",
  219. "required": false
  220. },
  221. {
  222. "displayName": "HornetQ Password",
  223. "description": "HornetQ cluster admin password",
  224. "name": "HORNETQ_CLUSTER_PASSWORD",
  225. "from": "[a-zA-Z0-9]{8}",
  226. "generate": "expression",
  227. "required": true
  228. },
  229. {
  230. "displayName": "Github Webhook Secret",
  231. "description": "GitHub trigger secret",
  232. "name": "GITHUB_WEBHOOK_SECRET",
  233. "from": "[a-zA-Z0-9]{8}",
  234. "generate": "expression",
  235. "required": true
  236. },
  237. {
  238. "displayName": "Generic Webhook Secret",
  239. "description": "Generic build trigger secret",
  240. "name": "GENERIC_WEBHOOK_SECRET",
  241. "from": "[a-zA-Z0-9]{8}",
  242. "generate": "expression",
  243. "required": true
  244. },
  245. {
  246. "displayName": "ImageStream Namespace",
  247. "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.",
  248. "name": "IMAGE_STREAM_NAMESPACE",
  249. "value": "openshift",
  250. "required": true
  251. },
  252. {
  253. "displayName": "Maven mirror URL",
  254. "description": "Maven mirror to use for S2I builds",
  255. "name": "MAVEN_MIRROR_URL",
  256. "value": "",
  257. "required": false
  258. },
  259. {
  260. "description": "List of directories from which archives will be copied into the deployment folder. If unspecified, all archives in /target will be copied.",
  261. "name": "ARTIFACT_DIR",
  262. "value": "",
  263. "required": false
  264. },
  265. {
  266. "displayName": "PostgreSQL Image Stream Tag",
  267. "description": "The tag to use for the \"postgresql\" image stream. Typically, this aligns with the major.minor version of PostgreSQL.",
  268. "name": "POSTGRESQL_IMAGE_STREAM_TAG",
  269. "value": "9.5",
  270. "required": true
  271. }
  272. ],
  273. "objects": [
  274. {
  275. "kind": "Service",
  276. "apiVersion": "v1",
  277. "spec": {
  278. "ports": [
  279. {
  280. "port": 8080,
  281. "targetPort": 8080
  282. }
  283. ],
  284. "selector": {
  285. "deploymentConfig": "${APPLICATION_NAME}"
  286. }
  287. },
  288. "metadata": {
  289. "name": "${APPLICATION_NAME}",
  290. "labels": {
  291. "application": "${APPLICATION_NAME}"
  292. },
  293. "annotations": {
  294. "description": "The web server's http port.",
  295. "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-postgresql\", \"kind\": \"Service\"}]"
  296. }
  297. }
  298. },
  299. {
  300. "kind": "Service",
  301. "apiVersion": "v1",
  302. "spec": {
  303. "ports": [
  304. {
  305. "port": 8443,
  306. "targetPort": 8443
  307. }
  308. ],
  309. "selector": {
  310. "deploymentConfig": "${APPLICATION_NAME}"
  311. }
  312. },
  313. "metadata": {
  314. "name": "secure-${APPLICATION_NAME}",
  315. "labels": {
  316. "application": "${APPLICATION_NAME}"
  317. },
  318. "annotations": {
  319. "description": "The web server's https port.",
  320. "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-postgresql\", \"kind\": \"Service\"}]"
  321. }
  322. }
  323. },
  324. {
  325. "kind": "Service",
  326. "apiVersion": "v1",
  327. "spec": {
  328. "ports": [
  329. {
  330. "port": 5432,
  331. "targetPort": 5432
  332. }
  333. ],
  334. "selector": {
  335. "deploymentConfig": "${APPLICATION_NAME}-postgresql"
  336. }
  337. },
  338. "metadata": {
  339. "name": "${APPLICATION_NAME}-postgresql",
  340. "labels": {
  341. "application": "${APPLICATION_NAME}"
  342. },
  343. "annotations": {
  344. "description": "The database server's port."
  345. }
  346. }
  347. },
  348. {
  349. "kind": "Route",
  350. "apiVersion": "v1",
  351. "id": "${APPLICATION_NAME}-http",
  352. "metadata": {
  353. "name": "${APPLICATION_NAME}",
  354. "labels": {
  355. "application": "${APPLICATION_NAME}"
  356. },
  357. "annotations": {
  358. "description": "Route for application's http service."
  359. }
  360. },
  361. "spec": {
  362. "host": "${HOSTNAME_HTTP}",
  363. "to": {
  364. "name": "${APPLICATION_NAME}"
  365. }
  366. }
  367. },
  368. {
  369. "kind": "Route",
  370. "apiVersion": "v1",
  371. "id": "${APPLICATION_NAME}-https",
  372. "metadata": {
  373. "name": "secure-${APPLICATION_NAME}",
  374. "labels": {
  375. "application": "${APPLICATION_NAME}"
  376. },
  377. "annotations": {
  378. "description": "Route for application's https service."
  379. }
  380. },
  381. "spec": {
  382. "host": "${HOSTNAME_HTTPS}",
  383. "to": {
  384. "name": "secure-${APPLICATION_NAME}"
  385. },
  386. "tls": {
  387. "termination": "passthrough"
  388. }
  389. }
  390. },
  391. {
  392. "kind": "ImageStream",
  393. "apiVersion": "v1",
  394. "metadata": {
  395. "name": "${APPLICATION_NAME}",
  396. "labels": {
  397. "application": "${APPLICATION_NAME}"
  398. }
  399. }
  400. },
  401. {
  402. "kind": "BuildConfig",
  403. "apiVersion": "v1",
  404. "metadata": {
  405. "name": "${APPLICATION_NAME}",
  406. "labels": {
  407. "application": "${APPLICATION_NAME}"
  408. }
  409. },
  410. "spec": {
  411. "source": {
  412. "type": "Git",
  413. "git": {
  414. "uri": "${SOURCE_REPOSITORY_URL}",
  415. "ref": "${SOURCE_REPOSITORY_REF}"
  416. },
  417. "contextDir": "${CONTEXT_DIR}"
  418. },
  419. "strategy": {
  420. "type": "Source",
  421. "sourceStrategy": {
  422. "env": [
  423. {
  424. "name": "KIE_CONTAINER_DEPLOYMENT",
  425. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  426. },
  427. {
  428. "name": "MAVEN_MIRROR_URL",
  429. "value": "${MAVEN_MIRROR_URL}"
  430. },
  431. {
  432. "name": "ARTIFACT_DIR",
  433. "value": "${ARTIFACT_DIR}"
  434. }
  435. ],
  436. "forcePull": true,
  437. "from": {
  438. "kind": "ImageStreamTag",
  439. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  440. "name": "jboss-processserver64-openshift:1.0"
  441. }
  442. }
  443. },
  444. "output": {
  445. "to": {
  446. "kind": "ImageStreamTag",
  447. "name": "${APPLICATION_NAME}:latest"
  448. }
  449. },
  450. "triggers": [
  451. {
  452. "type": "GitHub",
  453. "github": {
  454. "secret": "${GITHUB_WEBHOOK_SECRET}"
  455. }
  456. },
  457. {
  458. "type": "Generic",
  459. "generic": {
  460. "secret": "${GENERIC_WEBHOOK_SECRET}"
  461. }
  462. },
  463. {
  464. "type": "ImageChange",
  465. "imageChange": {}
  466. },
  467. {
  468. "type": "ConfigChange"
  469. }
  470. ]
  471. }
  472. },
  473. {
  474. "kind": "DeploymentConfig",
  475. "apiVersion": "v1",
  476. "metadata": {
  477. "name": "${APPLICATION_NAME}",
  478. "labels": {
  479. "application": "${APPLICATION_NAME}"
  480. }
  481. },
  482. "spec": {
  483. "strategy": {
  484. "type": "Recreate"
  485. },
  486. "triggers": [
  487. {
  488. "type": "ImageChange",
  489. "imageChangeParams": {
  490. "automatic": true,
  491. "containerNames": [
  492. "${APPLICATION_NAME}"
  493. ],
  494. "from": {
  495. "kind": "ImageStream",
  496. "name": "${APPLICATION_NAME}"
  497. }
  498. }
  499. },
  500. {
  501. "type": "ConfigChange"
  502. }
  503. ],
  504. "replicas": 1,
  505. "selector": {
  506. "deploymentConfig": "${APPLICATION_NAME}"
  507. },
  508. "template": {
  509. "metadata": {
  510. "name": "${APPLICATION_NAME}",
  511. "labels": {
  512. "deploymentConfig": "${APPLICATION_NAME}",
  513. "application": "${APPLICATION_NAME}"
  514. }
  515. },
  516. "spec": {
  517. "serviceAccountName": "processserver-service-account",
  518. "terminationGracePeriodSeconds": 60,
  519. "containers": [
  520. {
  521. "name": "${APPLICATION_NAME}",
  522. "image": "${APPLICATION_NAME}",
  523. "imagePullPolicy": "Always",
  524. "volumeMounts": [
  525. {
  526. "name": "processserver-keystore-volume",
  527. "mountPath": "/etc/processserver-secret-volume",
  528. "readOnly": true
  529. }
  530. ],
  531. "livenessProbe": {
  532. "exec": {
  533. "command": [
  534. "/bin/bash",
  535. "-c",
  536. "/opt/eap/bin/livenessProbe.sh"
  537. ]
  538. }
  539. },
  540. "readinessProbe": {
  541. "exec": {
  542. "command": [
  543. "/bin/bash",
  544. "-c",
  545. "/opt/eap/bin/readinessProbe.sh"
  546. ]
  547. }
  548. },
  549. "ports": [
  550. {
  551. "name": "jolokia",
  552. "containerPort": 8778,
  553. "protocol": "TCP"
  554. },
  555. {
  556. "name": "http",
  557. "containerPort": 8080,
  558. "protocol": "TCP"
  559. },
  560. {
  561. "name": "https",
  562. "containerPort": 8443,
  563. "protocol": "TCP"
  564. }
  565. ],
  566. "env": [
  567. {
  568. "name": "KIE_CONTAINER_DEPLOYMENT",
  569. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  570. },
  571. {
  572. "name": "KIE_SERVER_PROTOCOL",
  573. "value": "${KIE_SERVER_PROTOCOL}"
  574. },
  575. {
  576. "name": "KIE_SERVER_PORT",
  577. "value": "${KIE_SERVER_PORT}"
  578. },
  579. {
  580. "name": "KIE_SERVER_USER",
  581. "value": "${KIE_SERVER_USER}"
  582. },
  583. {
  584. "name": "KIE_SERVER_PASSWORD",
  585. "value": "${KIE_SERVER_PASSWORD}"
  586. },
  587. {
  588. "name": "KIE_SERVER_DOMAIN",
  589. "value": "${KIE_SERVER_DOMAIN}"
  590. },
  591. {
  592. "name": "KIE_SERVER_PERSISTENCE_DIALECT",
  593. "value": "${KIE_SERVER_PERSISTENCE_DIALECT}"
  594. },
  595. {
  596. "name": "DB_SERVICE_PREFIX_MAPPING",
  597. "value": "${APPLICATION_NAME}-postgresql=DB,${APPLICATION_NAME}-postgresql=QUARTZ"
  598. },
  599. {
  600. "name": "TX_DATABASE_PREFIX_MAPPING",
  601. "value": "${APPLICATION_NAME}-postgresql=DB"
  602. },
  603. {
  604. "name": "DB_JNDI",
  605. "value": "${DB_JNDI}"
  606. },
  607. {
  608. "name": "DB_USERNAME",
  609. "value": "${DB_USERNAME}"
  610. },
  611. {
  612. "name": "DB_PASSWORD",
  613. "value": "${DB_PASSWORD}"
  614. },
  615. {
  616. "name": "DB_DATABASE",
  617. "value": "${DB_DATABASE}"
  618. },
  619. {
  620. "name": "DB_MIN_POOL_SIZE",
  621. "value": "${DB_MIN_POOL_SIZE}"
  622. },
  623. {
  624. "name": "DB_MAX_POOL_SIZE",
  625. "value": "${DB_MAX_POOL_SIZE}"
  626. },
  627. {
  628. "name": "DB_TX_ISOLATION",
  629. "value": "${DB_TX_ISOLATION}"
  630. },
  631. {
  632. "name": "QUARTZ_JNDI",
  633. "value": "${DB_JNDI}NotManaged"
  634. },
  635. {
  636. "name": "QUARTZ_USERNAME",
  637. "value": "${DB_USERNAME}"
  638. },
  639. {
  640. "name": "QUARTZ_PASSWORD",
  641. "value": "${DB_PASSWORD}"
  642. },
  643. {
  644. "name": "QUARTZ_DATABASE",
  645. "value": "${DB_DATABASE}"
  646. },
  647. {
  648. "name": "QUARTZ_MIN_POOL_SIZE",
  649. "value": "${DB_MIN_POOL_SIZE}"
  650. },
  651. {
  652. "name": "QUARTZ_MAX_POOL_SIZE",
  653. "value": "${DB_MAX_POOL_SIZE}"
  654. },
  655. {
  656. "name": "QUARTZ_TX_ISOLATION",
  657. "value": "${DB_TX_ISOLATION}"
  658. },
  659. {
  660. "name": "QUARTZ_JTA",
  661. "value": "false"
  662. },
  663. {
  664. "name": "QUARTZ_NONXA",
  665. "value": "true"
  666. },
  667. {
  668. "name": "HTTPS_KEYSTORE_DIR",
  669. "value": "/etc/processserver-secret-volume"
  670. },
  671. {
  672. "name": "HTTPS_KEYSTORE",
  673. "value": "${HTTPS_KEYSTORE}"
  674. },
  675. {
  676. "name": "HTTPS_NAME",
  677. "value": "${HTTPS_NAME}"
  678. },
  679. {
  680. "name": "HTTPS_PASSWORD",
  681. "value": "${HTTPS_PASSWORD}"
  682. },
  683. {
  684. "name": "HORNETQ_CLUSTER_PASSWORD",
  685. "value": "${HORNETQ_CLUSTER_PASSWORD}"
  686. },
  687. {
  688. "name": "HORNETQ_QUEUES",
  689. "value": "${HORNETQ_QUEUES}"
  690. },
  691. {
  692. "name": "HORNETQ_TOPICS",
  693. "value": "${HORNETQ_TOPICS}"
  694. }
  695. ]
  696. }
  697. ],
  698. "volumes": [
  699. {
  700. "name": "processserver-keystore-volume",
  701. "secret": {
  702. "secretName": "${HTTPS_SECRET}"
  703. }
  704. }
  705. ]
  706. }
  707. }
  708. }
  709. },
  710. {
  711. "kind": "DeploymentConfig",
  712. "apiVersion": "v1",
  713. "metadata": {
  714. "name": "${APPLICATION_NAME}-postgresql",
  715. "labels": {
  716. "application": "${APPLICATION_NAME}"
  717. }
  718. },
  719. "spec": {
  720. "strategy": {
  721. "type": "Recreate"
  722. },
  723. "triggers": [
  724. {
  725. "type": "ImageChange",
  726. "imageChangeParams": {
  727. "automatic": true,
  728. "containerNames": [
  729. "${APPLICATION_NAME}-postgresql"
  730. ],
  731. "from": {
  732. "kind": "ImageStreamTag",
  733. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  734. "name": "postgresql:${POSTGRESQL_IMAGE_STREAM_TAG}"
  735. }
  736. }
  737. },
  738. {
  739. "type": "ConfigChange"
  740. }
  741. ],
  742. "replicas": 1,
  743. "selector": {
  744. "deploymentConfig": "${APPLICATION_NAME}-postgresql"
  745. },
  746. "template": {
  747. "metadata": {
  748. "name": "${APPLICATION_NAME}-postgresql",
  749. "labels": {
  750. "deploymentConfig": "${APPLICATION_NAME}-postgresql",
  751. "application": "${APPLICATION_NAME}"
  752. }
  753. },
  754. "spec": {
  755. "terminationGracePeriodSeconds": 60,
  756. "containers": [
  757. {
  758. "name": "${APPLICATION_NAME}-postgresql",
  759. "image": "postgresql",
  760. "imagePullPolicy": "Always",
  761. "ports": [
  762. {
  763. "containerPort": 5432,
  764. "protocol": "TCP"
  765. }
  766. ],
  767. "volumeMounts": [
  768. {
  769. "mountPath": "/var/lib/pgsql/data",
  770. "name": "${APPLICATION_NAME}-postgresql-pvol"
  771. }
  772. ],
  773. "env": [
  774. {
  775. "name": "POSTGRESQL_USER",
  776. "value": "${DB_USERNAME}"
  777. },
  778. {
  779. "name": "POSTGRESQL_PASSWORD",
  780. "value": "${DB_PASSWORD}"
  781. },
  782. {
  783. "name": "POSTGRESQL_DATABASE",
  784. "value": "${DB_DATABASE}"
  785. },
  786. {
  787. "name": "POSTGRESQL_MAX_CONNECTIONS",
  788. "value": "${POSTGRESQL_MAX_CONNECTIONS}"
  789. },
  790. {
  791. "name": "POSTGRESQL_SHARED_BUFFERS",
  792. "value": "${POSTGRESQL_SHARED_BUFFERS}"
  793. }
  794. ]
  795. }
  796. ],
  797. "volumes": [
  798. {
  799. "name": "${APPLICATION_NAME}-postgresql-pvol",
  800. "persistentVolumeClaim": {
  801. "claimName": "${APPLICATION_NAME}-postgresql-claim"
  802. }
  803. }
  804. ]
  805. }
  806. }
  807. }
  808. },
  809. {
  810. "apiVersion": "v1",
  811. "kind": "PersistentVolumeClaim",
  812. "metadata": {
  813. "name": "${APPLICATION_NAME}-postgresql-claim",
  814. "labels": {
  815. "application": "${APPLICATION_NAME}"
  816. }
  817. },
  818. "spec": {
  819. "accessModes": [
  820. "ReadWriteOnce"
  821. ],
  822. "resources": {
  823. "requests": {
  824. "storage": "${VOLUME_CAPACITY}"
  825. }
  826. }
  827. }
  828. }
  829. ]
  830. }