rhpam70-kieserver-postgresql.yaml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. ---
  2. kind: Template
  3. apiVersion: v1
  4. metadata:
  5. annotations:
  6. description: Application template for a managed KIE server with a PostgreSQL database, for Red Hat Process Automation Manager 7.0
  7. iconClass: icon-jboss
  8. tags: rhpam,jboss,xpaas
  9. version: 1.4.0
  10. openshift.io/display-name: Red Hat Process Automation Manager 7.0 managed KIE server with a PostgreSQL database
  11. name: rhpam70-kieserver-postgresql
  12. labels:
  13. template: rhpam70-kieserver-postgresql
  14. xpaas: 1.4.0
  15. message: A new environment has been set up for Red Hat Process Automation Manager 7. The username/password for accessing the KIE server is ${KIE_SERVER_USER}/${KIE_SERVER_PWD}.
  16. parameters:
  17. - displayName: Application Name
  18. description: The name for the application.
  19. name: APPLICATION_NAME
  20. value: myapp
  21. required: true
  22. - displayName: Maven repository URL
  23. description: Fully qualified URL to a Maven repository or service.
  24. name: MAVEN_REPO_URL
  25. example: http://nexus.nexus-project.svc.cluster.local:8081/nexus/content/groups/public/
  26. required: true
  27. - displayName: Maven repository username
  28. description: Username to access the Maven repository, if required.
  29. name: MAVEN_REPO_USERNAME
  30. required: true
  31. - displayName: Maven repository password
  32. description: Password to access the Maven repository, if required.
  33. name: MAVEN_REPO_PASSWORD
  34. required: true
  35. - displayName: EAP Admin User
  36. description: EAP administrator username
  37. name: ADMIN_USERNAME
  38. value: eapadmin
  39. required: false
  40. - displayName: EAP Admin Password
  41. description: EAP administrator password
  42. name: ADMIN_PASSWORD
  43. from: "[a-zA-Z]{6}[0-9]{1}!"
  44. generate: expression
  45. required: false
  46. - displayName: KIE Admin User
  47. description: KIE administrator username
  48. name: KIE_ADMIN_USER
  49. value: adminUser
  50. required: false
  51. - displayName: KIE Admin Password
  52. description: KIE administrator password
  53. name: KIE_ADMIN_PWD
  54. from: "[a-zA-Z]{6}[0-9]{1}!"
  55. generate: expression
  56. required: false
  57. - displayName: KIE Server ID
  58. description: The KIE server ID to use, which defaults to ${APPLICATION_NAME}-kieserver if not specified (Sets the org.kie.server.id system property).
  59. name: KIE_SERVER_ID
  60. required: false
  61. - displayName: KIE Server User
  62. description: KIE execution server username (Sets the org.kie.server.user system property)
  63. name: KIE_SERVER_USER
  64. value: executionUser
  65. required: false
  66. - displayName: KIE Server Password
  67. description: KIE execution server password (Sets the org.kie.server.pwd system property)
  68. name: KIE_SERVER_PWD
  69. from: "[a-zA-Z]{6}[0-9]{1}!"
  70. generate: expression
  71. required: false
  72. - displayName: ImageStream Namespace
  73. description: Namespace in which the ImageStreams for Red Hat Middleware images are
  74. installed. These ImageStreams are normally installed in the openshift namespace.
  75. You should only need to modify this if you've installed the ImageStreams in a
  76. different namespace/project.
  77. name: IMAGE_STREAM_NAMESPACE
  78. value: openshift
  79. required: true
  80. - displayName: ImageStream Tag
  81. description: A named pointer to an image in an image stream. Default is "1.0".
  82. name: IMAGE_STREAM_TAG
  83. value: "1.0"
  84. required: false
  85. required: false
  86. - displayName: Smart Router Service
  87. description: The service name for the optional smart router, where it can be reached, to allow smart routing
  88. name: KIE_SERVER_ROUTER_SERVICE
  89. required: false
  90. - displayName: Smart Router Host
  91. description: "The host name of the smart router, which could be the service name resolved by OpenShift or a globally resolvable domain name"
  92. name: KIE_SERVER_ROUTER_HOST
  93. example: "myapp-smartrouter"
  94. required: false
  95. - displayName: Smart Router listening port
  96. description: Port in which the smart router server listens (router property org.kie.server.router.port)
  97. name: KIE_SERVER_ROUTER_PORT
  98. example: "9000"
  99. required: false
  100. - displayName: Smart Router protocol
  101. description: KIE server router protocol (Used to build the org.kie.server.router.url.external property)
  102. name: KIE_SERVER_ROUTER_PROTOCOL
  103. example: "http"
  104. required: false
  105. - displayName: KIE Server Controller Service
  106. description: The service name for the optional business-central-monitor, where it can be reached and registered with, to allow monitoring console functionality
  107. name: KIE_SERVER_CONTROLLER_SERVICE
  108. required: false
  109. - displayName: KIE Server Controller User
  110. description: KIE server controller username (Sets the org.kie.server.controller.user system property)
  111. name: KIE_SERVER_CONTROLLER_USER
  112. value: controllerUser
  113. required: false
  114. - displayName: KIE Server Controller Password
  115. description: KIE server controller password (Sets the org.kie.server.controller.pwd system property)
  116. name: KIE_SERVER_CONTROLLER_PWD
  117. required: false
  118. - displayName: KIE server controller host
  119. description: KIE server controller host (Used to set the org.kie.server.controller system property)
  120. name: KIE_SERVER_CONTROLLER_HOST
  121. example: my-app-controller-ocpuser.os.example.com
  122. required: false
  123. - displayName: KIE server controller port
  124. description: KIE server controller port (Used to set the org.kie.server.controller system property)
  125. name: KIE_SERVER_CONTROLLER_PORT
  126. example: '8080'
  127. required: false
  128. - displayName: KIE server controller protocol
  129. description: KIE server controller protocol (Used to set the org.kie.server.controller system property)
  130. name: KIE_SERVER_CONTROLLER_PROTOCOL
  131. example: http
  132. required: false
  133. - displayName: KIE Server controller token
  134. description: KIE server controller token for bearer authentication (Sets the org.kie.server.controller.token system property)
  135. name: KIE_SERVER_CONTROLLER_TOKEN
  136. required: false
  137. - displayName: KIE Server Persistence DS
  138. description: KIE execution server persistence datasource (Sets the org.kie.server.persistence.ds system property)
  139. name: KIE_SERVER_PERSISTENCE_DS
  140. value: java:/jboss/datasources/rhpam
  141. required: false
  142. ## PostgreSQL database parameters BEGIN
  143. - displayName: KIE Server PostgreSQL Database User
  144. description: KIE execution server PostgreSQL database username
  145. name: KIE_SERVER_POSTGRESQL_USER
  146. value: rhpam
  147. required: false
  148. - displayName: KIE Server PostgreSQL Database Password
  149. description: KIE execution server PostgreSQL database password
  150. name: KIE_SERVER_POSTGRESQL_PWD
  151. from: "[a-zA-Z]{6}[0-9]{1}!"
  152. generate: expression
  153. required: false
  154. - displayName: KIE Server PostgreSQL Database Name
  155. description: KIE execution server PostgreSQL database name
  156. name: KIE_SERVER_POSTGRESQL_DB
  157. value: rhpam7
  158. required: false
  159. - displayName: PostgreSQL ImageStream Tag
  160. description: The PostgreSQL image version, which is intended to correspond to the PostgreSQL version. Default is "9.6".
  161. name: POSTGRESQL_IMAGE_STREAM_TAG
  162. value: "9.6"
  163. - displayName: PostgreSQL Database max prepared connections
  164. description: Allows the PostgreSQL to handle XA transactions.
  165. name: POSTGRESQL_MAX_PREPARED_TRANSACTIONS
  166. value: '100'
  167. required: true
  168. - displayName: Database Volume Capacity
  169. description: Size of persistent storage for database volume.
  170. name: DB_VOLUME_CAPACITY
  171. value: 1Gi
  172. ## PostgreSQL database parameters END
  173. - displayName: Drools Server Filter Classes
  174. description: KIE execution server class filtering (Sets the org.drools.server.filter.classes system property)
  175. name: DROOLS_SERVER_FILTER_CLASSES
  176. value: 'true'
  177. required: false
  178. - displayName: KIE MBeans
  179. description: KIE execution server mbeans enabled/disabled (Sets the kie.mbeans and kie.scanner.mbeans system properties)
  180. name: KIE_MBEANS
  181. value: enabled
  182. required: false
  183. - displayName: Execution Server Custom http Route Hostname
  184. description: 'Custom hostname for http service route. Leave blank for default hostname,
  185. e.g.: <application-name>-kieserver-<project>.<default-domain-suffix>'
  186. name: EXECUTION_SERVER_HOSTNAME_HTTP
  187. value: ''
  188. required: false
  189. - displayName: Execution Server Custom https Route Hostname
  190. description: 'Custom hostname for https service route. Leave blank for default
  191. hostname, e.g.: secure-<application-name>-kieserver-<project>.<default-domain-suffix>'
  192. name: EXECUTION_SERVER_HOSTNAME_HTTPS
  193. value: ''
  194. required: false
  195. - displayName: KIE Server Keystore Secret Name
  196. description: The name of the secret containing the keystore file
  197. name: KIE_SERVER_HTTPS_SECRET
  198. example: kieserver-app-secret
  199. required: true
  200. - displayName: KIE Server Keystore Filename
  201. description: The name of the keystore file within the secret
  202. name: KIE_SERVER_HTTPS_KEYSTORE
  203. value: keystore.jks
  204. required: false
  205. - displayName: KIE Server Certificate Name
  206. description: The name associated with the server certificate
  207. name: KIE_SERVER_HTTPS_NAME
  208. value: jboss
  209. required: false
  210. - displayName: KIE Server Keystore Password
  211. description: The password for the keystore and certificate
  212. name: KIE_SERVER_HTTPS_PASSWORD
  213. value: mykeystorepass
  214. required: false
  215. - displayName: KIE Server Bypass Auth User
  216. description: KIE execution server bypass auth user (Sets the org.kie.server.bypass.auth.user system property)
  217. name: KIE_SERVER_BYPASS_AUTH_USER
  218. value: 'false'
  219. required: false
  220. required: true
  221. - displayName: "Timer service data store refresh interval (in milliseconds)"
  222. description: "Sets refresh-interval for the EJB timer database data-store service."
  223. name: TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL
  224. value: '30000'
  225. required: false
  226. - displayName: Execution Server Container Memory Limit
  227. description: Execution Server Container memory limit
  228. name: EXECUTION_SERVER_MEMORY_LIMIT
  229. value: 1Gi
  230. required: false
  231. - displayName: KIE Server Container Deployment
  232. description: 'KIE Server Container deployment configuration in format: containerId=groupId:artifactId:version|c2=g2:a2:v2'
  233. name: KIE_SERVER_CONTAINER_DEPLOYMENT
  234. example: rhpam-kieserver-library=org.openshift.quickstarts:rhpam-kieserver-library:1.4.0-SNAPSHOT
  235. required: false
  236. - displayName: Disable KIE Server Management
  237. description: "When set to LocalContainersStartupStrategy, allows KIE server to start up and function with local config, even when a controller is configured and unavailable"
  238. name: KIE_SERVER_MGMT_DISABLED
  239. example: "true"
  240. required: false
  241. - displayName: KIE Server Startup Strategy
  242. description: "When set to LocalContainersStartupStrategy, allows KIE server to start up and function with local config, even when a controller is configured and unavailable."
  243. name: KIE_SERVER_STARTUP_STRATEGY
  244. example: "LocalContainersStartupStrategy"
  245. required: false
  246. objects:
  247. - kind: Service
  248. apiVersion: v1
  249. spec:
  250. ports:
  251. - name: http
  252. port: 8080
  253. targetPort: 8080
  254. - name: https
  255. port: 8443
  256. targetPort: 8443
  257. selector:
  258. deploymentConfig: "${APPLICATION_NAME}-kieserver"
  259. metadata:
  260. name: "${APPLICATION_NAME}-kieserver"
  261. labels:
  262. application: "${APPLICATION_NAME}"
  263. service: "${APPLICATION_NAME}-kieserver"
  264. annotations:
  265. description: All the KIE server web server's ports.
  266. - kind: Service
  267. apiVersion: v1
  268. spec:
  269. clusterIP: "None"
  270. ports:
  271. - name: "ping"
  272. port: 8888
  273. selector:
  274. deploymentConfig: "${APPLICATION_NAME}-kieserver"
  275. metadata:
  276. name: "${APPLICATION_NAME}-kieserver-ping"
  277. labels:
  278. application: "${APPLICATION_NAME}"
  279. service: "${APPLICATION_NAME}-kieserver"
  280. annotations:
  281. service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
  282. description: "The JGroups ping port for clustering."
  283. ## PostgreSQL service BEGIN
  284. - apiVersion: v1
  285. kind: Service
  286. metadata:
  287. annotations:
  288. description: The database server's port.
  289. labels:
  290. application: ${APPLICATION_NAME}
  291. service: "${APPLICATION_NAME}-postgresql"
  292. name: ${APPLICATION_NAME}-postgresql
  293. spec:
  294. ports:
  295. - port: 5432
  296. targetPort: 5432
  297. selector:
  298. deploymentConfig: ${APPLICATION_NAME}-postgresql
  299. ## PostgreSQL service END
  300. - kind: Route
  301. apiVersion: v1
  302. id: "${APPLICATION_NAME}-kieserver-http"
  303. metadata:
  304. name: "${APPLICATION_NAME}-kieserver"
  305. labels:
  306. application: "${APPLICATION_NAME}"
  307. service: "${APPLICATION_NAME}-kieserver"
  308. annotations:
  309. description: Route for KIE server's http service.
  310. spec:
  311. host: "${EXECUTION_SERVER_HOSTNAME_HTTP}"
  312. to:
  313. name: "${APPLICATION_NAME}-kieserver"
  314. port:
  315. targetPort: http
  316. - kind: Route
  317. apiVersion: v1
  318. id: "${APPLICATION_NAME}-kieserver-https"
  319. metadata:
  320. name: "secure-${APPLICATION_NAME}-kieserver"
  321. labels:
  322. application: "${APPLICATION_NAME}"
  323. service: "${APPLICATION_NAME}-kieserver"
  324. annotations:
  325. description: Route for KIE server's https service.
  326. spec:
  327. host: "${EXECUTION_SERVER_HOSTNAME_HTTPS}"
  328. to:
  329. name: "${APPLICATION_NAME}-kieserver"
  330. port:
  331. targetPort: https
  332. tls:
  333. termination: passthrough
  334. - kind: DeploymentConfig
  335. apiVersion: v1
  336. metadata:
  337. name: "${APPLICATION_NAME}-kieserver"
  338. labels:
  339. application: "${APPLICATION_NAME}"
  340. service: "${APPLICATION_NAME}-kieserver"
  341. spec:
  342. strategy:
  343. type: Recreate
  344. triggers:
  345. - type: ImageChange
  346. imageChangeParams:
  347. automatic: true
  348. containerNames:
  349. - "${APPLICATION_NAME}-kieserver"
  350. from:
  351. kind: ImageStreamTag
  352. namespace: "${IMAGE_STREAM_NAMESPACE}"
  353. name: "rhpam70-kieserver-openshift:${IMAGE_STREAM_TAG}"
  354. - type: ConfigChange
  355. replicas: 1
  356. selector:
  357. deploymentConfig: "${APPLICATION_NAME}-kieserver"
  358. template:
  359. metadata:
  360. name: "${APPLICATION_NAME}-kieserver"
  361. labels:
  362. deploymentConfig: "${APPLICATION_NAME}-kieserver"
  363. application: "${APPLICATION_NAME}"
  364. service: "${APPLICATION_NAME}-kieserver"
  365. spec:
  366. terminationGracePeriodSeconds: 60
  367. containers:
  368. - name: "${APPLICATION_NAME}-kieserver"
  369. image: rhpam70-kieserver-openshift
  370. imagePullPolicy: Always
  371. resources:
  372. limits:
  373. memory: "${EXECUTION_SERVER_MEMORY_LIMIT}"
  374. volumeMounts:
  375. - name: kieserver-keystore-volume
  376. mountPath: "/etc/kieserver-secret-volume"
  377. readOnly: true
  378. livenessProbe:
  379. exec:
  380. command:
  381. - "/bin/bash"
  382. - "-c"
  383. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/healthcheck"
  384. initialDelaySeconds: 180
  385. timeoutSeconds: 2
  386. periodSeconds: 15
  387. failureThreshold: 3
  388. readinessProbe:
  389. exec:
  390. command:
  391. - "/bin/bash"
  392. - "-c"
  393. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/readycheck"
  394. initialDelaySeconds: 60
  395. timeoutSeconds: 2
  396. periodSeconds: 30
  397. failureThreshold: 6
  398. ports:
  399. - name: jolokia
  400. containerPort: 8778
  401. protocol: TCP
  402. - name: http
  403. containerPort: 8080
  404. protocol: TCP
  405. - name: https
  406. containerPort: 8443
  407. protocol: TCP
  408. - name: ping
  409. containerPort: 8888
  410. protocol: TCP
  411. env:
  412. - name: DROOLS_SERVER_FILTER_CLASSES
  413. value: "${DROOLS_SERVER_FILTER_CLASSES}"
  414. - name: KIE_ADMIN_USER
  415. value: "${KIE_ADMIN_USER}"
  416. - name: KIE_ADMIN_PWD
  417. value: "${KIE_ADMIN_PWD}"
  418. - name: KIE_MBEANS
  419. value: "${KIE_MBEANS}"
  420. - name: KIE_SERVER_BYPASS_AUTH_USER
  421. value: "${KIE_SERVER_BYPASS_AUTH_USER}"
  422. - name: KIE_SERVER_CONTROLLER_USER
  423. value: "${KIE_SERVER_CONTROLLER_USER}"
  424. - name: KIE_SERVER_CONTROLLER_PWD
  425. value: "${KIE_SERVER_CONTROLLER_PWD}"
  426. - name: KIE_SERVER_CONTROLLER_SERVICE
  427. value: "${KIE_SERVER_CONTROLLER_SERVICE}"
  428. - name: KIE_SERVER_CONTROLLER_HOST
  429. value: "${KIE_SERVER_CONTROLLER_HOST}"
  430. - name: KIE_SERVER_CONTROLLER_PORT
  431. value: "${KIE_SERVER_CONTROLLER_PORT}"
  432. - name: KIE_SERVER_CONTROLLER_PROTOCOL
  433. value: "${KIE_SERVER_CONTROLLER_PROTOCOL}"
  434. - name: KIE_SERVER_CONTROLLER_TOKEN
  435. value: "${KIE_SERVER_CONTROLLER_TOKEN}"
  436. - name: KIE_SERVER_ID
  437. value: "${KIE_SERVER_ID}"
  438. - name: KIE_SERVER_HOST
  439. valueFrom:
  440. fieldRef:
  441. fieldPath: status.podIP
  442. - name: KIE_SERVER_USER
  443. value: "${KIE_SERVER_USER}"
  444. - name: KIE_SERVER_PWD
  445. value: "${KIE_SERVER_PWD}"
  446. - name: KIE_SERVER_CONTAINER_DEPLOYMENT
  447. value: "${KIE_SERVER_CONTAINER_DEPLOYMENT}"
  448. - name: MAVEN_REPO_URL
  449. value: "${MAVEN_REPO_URL}"
  450. - name: MAVEN_REPO_USERNAME
  451. value: "${MAVEN_REPO_USERNAME}"
  452. - name: MAVEN_REPO_PASSWORD
  453. value: "${MAVEN_REPO_PASSWORD}"
  454. - name: MAVEN_REPO_PATH
  455. value: "/maven2/"
  456. - name: KIE_SERVER_ROUTER_SERVICE
  457. value: "${KIE_SERVER_ROUTER_SERVICE}"
  458. - name: KIE_SERVER_ROUTER_HOST
  459. value: "${KIE_SERVER_ROUTER_HOST}"
  460. - name: KIE_SERVER_ROUTER_PORT
  461. value: "${KIE_SERVER_ROUTER_PORT}"
  462. - name: KIE_SERVER_ROUTER_PROTOCOL
  463. value: "${KIE_SERVER_ROUTER_PROTOCOL}"
  464. - name: KIE_SERVER_MGMT_DISABLED
  465. value: "${KIE_SERVER_MGMT_DISABLED}"
  466. - name: KIE_SERVER_STARTUP_STRATEGY
  467. value: "${KIE_SERVER_STARTUP_STRATEGY}"
  468. - name: KIE_SERVER_PERSISTENCE_DS
  469. value: "${KIE_SERVER_PERSISTENCE_DS}"
  470. - name: DATASOURCES
  471. value: "RHPAM"
  472. ## PostgreSQL driver settings BEGIN
  473. - name: RHPAM_DATABASE
  474. value: "${KIE_SERVER_POSTGRESQL_DB}"
  475. - name: RHPAM_DRIVER
  476. value: "postgresql"
  477. - name: RHPAM_USERNAME
  478. value: "${KIE_SERVER_POSTGRESQL_USER}"
  479. - name: RHPAM_PASSWORD
  480. value: "${KIE_SERVER_POSTGRESQL_PWD}"
  481. - name: RHPAM_SERVICE_HOST
  482. value: "${APPLICATION_NAME}-postgresql"
  483. - name: RHPAM_SERVICE_PORT
  484. value: "5432"
  485. - name: TIMER_SERVICE_DATA_STORE
  486. value: "${APPLICATION_NAME}-postgresql"
  487. - name: KIE_SERVER_PERSISTENCE_DIALECT
  488. value: "org.hibernate.dialect.PostgreSQLDialect"
  489. ## PostgreSQL driver settings END
  490. - name: RHPAM_JTA
  491. value: "true"
  492. - name: RHPAM_JNDI
  493. value: "${KIE_SERVER_PERSISTENCE_DS}"
  494. - name: RHPAM_TX_ISOLATION
  495. value: "TRANSACTION_READ_COMMITTED"
  496. - name: TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL
  497. value: "${TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL}"
  498. - name: HTTPS_KEYSTORE_DIR
  499. value: "/etc/kieserver-secret-volume"
  500. - name: HTTPS_KEYSTORE
  501. value: "${KIE_SERVER_HTTPS_KEYSTORE}"
  502. - name: HTTPS_NAME
  503. value: "${KIE_SERVER_HTTPS_NAME}"
  504. - name: HTTPS_PASSWORD
  505. value: "${KIE_SERVER_HTTPS_PASSWORD}"
  506. - name: ADMIN_USERNAME
  507. value: "${ADMIN_USERNAME}"
  508. - name: ADMIN_PASSWORD
  509. value: "${ADMIN_PASSWORD}"
  510. - name: JGROUPS_PING_PROTOCOL
  511. value: "openshift.DNS_PING"
  512. - name: OPENSHIFT_DNS_PING_SERVICE_NAME
  513. value: "${APPLICATION_NAME}-kieserver-ping"
  514. - name: OPENSHIFT_DNS_PING_SERVICE_PORT
  515. value: "8888"
  516. volumes:
  517. - name: kieserver-keystore-volume
  518. secret:
  519. secretName: "${KIE_SERVER_HTTPS_SECRET}"
  520. ## PostgreSQL deployment config BEGIN
  521. - kind: DeploymentConfig
  522. apiVersion: v1
  523. metadata:
  524. name: "${APPLICATION_NAME}-postgresql"
  525. labels:
  526. application: "${APPLICATION_NAME}"
  527. service: "${APPLICATION_NAME}-postgresql"
  528. spec:
  529. strategy:
  530. type: Recreate
  531. triggers:
  532. - type: ImageChange
  533. imageChangeParams:
  534. automatic: true
  535. containerNames:
  536. - "${APPLICATION_NAME}-postgresql"
  537. from:
  538. kind: ImageStreamTag
  539. namespace: "${IMAGE_STREAM_NAMESPACE}"
  540. name: "postgresql:${POSTGRESQL_IMAGE_STREAM_TAG}"
  541. - type: ConfigChange
  542. replicas: 1
  543. selector:
  544. deploymentConfig: "${APPLICATION_NAME}-postgresql"
  545. template:
  546. metadata:
  547. name: "${APPLICATION_NAME}-postgresql"
  548. labels:
  549. deploymentConfig: "${APPLICATION_NAME}-postgresql"
  550. application: "${APPLICATION_NAME}"
  551. service: "${APPLICATION_NAME}-postgresql"
  552. spec:
  553. terminationGracePeriodSeconds: 60
  554. containers:
  555. - name: "${APPLICATION_NAME}-postgresql"
  556. image: postgresql
  557. imagePullPolicy: Always
  558. ports:
  559. - containerPort: 5432
  560. protocol: TCP
  561. volumeMounts:
  562. - mountPath: "/var/lib/postgresql/data"
  563. name: "${APPLICATION_NAME}-postgresql-pvol"
  564. env:
  565. - name: POSTGRESQL_USER
  566. value: "${KIE_SERVER_POSTGRESQL_USER}"
  567. - name: POSTGRESQL_PASSWORD
  568. value: "${KIE_SERVER_POSTGRESQL_PWD}"
  569. - name: POSTGRESQL_DATABASE
  570. value: "${KIE_SERVER_POSTGRESQL_DB}"
  571. - name: POSTGRESQL_MAX_PREPARED_TRANSACTIONS
  572. value: "${POSTGRESQL_MAX_PREPARED_TRANSACTIONS}"
  573. volumes:
  574. - name: "${APPLICATION_NAME}-postgresql-pvol"
  575. persistentVolumeClaim:
  576. claimName: "${APPLICATION_NAME}-postgresql-claim"
  577. ## PostgreSQL deployment config END
  578. ## PostgreSQL persistent volume claim BEGIN
  579. - apiVersion: v1
  580. kind: PersistentVolumeClaim
  581. metadata:
  582. name: "${APPLICATION_NAME}-postgresql-claim"
  583. labels:
  584. application: "${APPLICATION_NAME}"
  585. service: "${APPLICATION_NAME}-postgresql"
  586. spec:
  587. accessModes:
  588. - ReadWriteOnce
  589. resources:
  590. requests:
  591. storage: "${DB_VOLUME_CAPACITY}"
  592. ## PostgreSQL persistent volume claim END