rhpam70-authoring-ha.yaml 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162
  1. ---
  2. kind: Template
  3. apiVersion: v1
  4. metadata:
  5. annotations:
  6. description: Application template for a HA persistent authoring environment, 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 authoring environment (HA, persistent, with https)
  11. name: rhpam70-authoring-ha
  12. labels:
  13. template: rhpam70-authoring-ha
  14. xpaas: 1.4.0
  15. message: A new persistent Process Automation Manager application have been created in your project.
  16. The username/password for accessing the KIE Server / Business Central interface is ${KIE_ADMIN_USER}/${KIE_ADMIN_PWD}.
  17. Please be sure to create the secrets named "${BUSINESS_CENTRAL_HTTPS_SECRET}" and "${KIE_SERVER_HTTPS_SECRET}" containing the
  18. ${BUSINESS_CENTRAL_HTTPS_KEYSTORE} and ${KIE_SERVER_HTTPS_KEYSTORE} files used for serving secure content.
  19. parameters:
  20. - displayName: Application Name
  21. description: The name for the application.
  22. name: APPLICATION_NAME
  23. value: myapp
  24. required: true
  25. - displayName: EAP Admin User
  26. description: EAP administrator username
  27. name: ADMIN_USERNAME
  28. value: eapadmin
  29. required: false
  30. - displayName: EAP Admin Password
  31. description: EAP administrator password
  32. name: ADMIN_PASSWORD
  33. from: "[a-zA-Z]{6}[0-9]{1}!"
  34. generate: expression
  35. required: false
  36. - displayName: KIE Admin User
  37. description: KIE administrator username
  38. name: KIE_ADMIN_USER
  39. value: adminUser
  40. required: false
  41. - displayName: KIE Admin Password
  42. description: KIE administrator password
  43. name: KIE_ADMIN_PWD
  44. from: "[a-zA-Z]{6}[0-9]{1}!"
  45. generate: expression
  46. required: false
  47. - displayName: KIE Server Controller User
  48. description: KIE server controller username (Sets the org.kie.server.controller.user system property)
  49. name: KIE_SERVER_CONTROLLER_USER
  50. value: controllerUser
  51. required: false
  52. - displayName: KIE Server Controller Password
  53. description: KIE server controller password (Sets the org.kie.server.controller.pwd system property)
  54. name: KIE_SERVER_CONTROLLER_PWD
  55. from: "[a-zA-Z]{6}[0-9]{1}!"
  56. generate: expression
  57. required: false
  58. - displayName: KIE Server User
  59. description: KIE execution server username (Sets the org.kie.server.user system property)
  60. name: KIE_SERVER_USER
  61. value: executionUser
  62. required: false
  63. - displayName: KIE Server Password
  64. description: KIE execution server password (Sets the org.kie.server.pwd system property)
  65. name: KIE_SERVER_PWD
  66. from: "[a-zA-Z]{6}[0-9]{1}!"
  67. generate: expression
  68. required: false
  69. - displayName: KIE Server ID
  70. description: Business server identifier. Determines the template ID in Business Central or controller. If this parameter is left blank, it is set using the $HOSTNAME environment variable or a random value. (Sets the org.kie.server.id system property).
  71. name: KIE_SERVER_ID
  72. required: false
  73. - displayName: KIE Server Bypass Auth User
  74. description: KIE execution server bypass auth user (Sets the org.kie.server.bypass.auth.user system property)
  75. name: KIE_SERVER_BYPASS_AUTH_USER
  76. value: 'false'
  77. required: false
  78. - displayName: KIE Server Persistence DS
  79. description: KIE execution server persistence datasource (Sets the org.kie.server.persistence.ds system property)
  80. name: KIE_SERVER_PERSISTENCE_DS
  81. value: java:/jboss/datasources/rhpam
  82. required: false
  83. ## MySQL database parameters BEGIN
  84. - displayName: KIE Server MySQL Database User
  85. description: KIE execution server MySQL database username
  86. name: KIE_SERVER_MYSQL_USER
  87. value: rhpam
  88. required: false
  89. - displayName: KIE Server MySQL Database Password
  90. description: KIE execution server MySQL database password
  91. name: KIE_SERVER_MYSQL_PWD
  92. from: "[a-zA-Z]{6}[0-9]{1}!"
  93. generate: expression
  94. required: false
  95. - displayName: KIE Server MySQL Database Name
  96. description: KIE execution server MySQL database name
  97. name: KIE_SERVER_MYSQL_DB
  98. value: rhpam7
  99. required: false
  100. - displayName: MySQL ImageStream Tag
  101. description: The MySQL image version, which is intended to correspond to the MySQL version. Default is "5.7".
  102. name: MYSQL_IMAGE_STREAM_TAG
  103. value: "5.7"
  104. required: false
  105. - displayName: Database Volume Capacity
  106. description: Size of persistent storage for database volume.
  107. name: DB_VOLUME_CAPACITY
  108. value: 1Gi
  109. required: true
  110. ## MySQL database parameters END
  111. - displayName: KIE MBeans
  112. description: KIE execution server mbeans enabled/disabled (Sets the kie.mbeans and kie.scanner.mbeans system properties)
  113. name: KIE_MBEANS
  114. value: enabled
  115. required: false
  116. - displayName: Drools Server Filter Classes
  117. description: KIE execution server class filtering (Sets the org.drools.server.filter.classes system property)
  118. name: DROOLS_SERVER_FILTER_CLASSES
  119. value: 'true'
  120. required: false
  121. - displayName: Business Central Custom http Route Hostname
  122. description: 'Custom hostname for http service route. Leave blank for default hostname,
  123. e.g.: <application-name>-rhpamcentr-<project>.<default-domain-suffix>'
  124. name: BUSINESS_CENTRAL_HOSTNAME_HTTP
  125. value: ''
  126. required: false
  127. - displayName: Business Central Custom https Route Hostname
  128. description: 'Custom hostname for https service route. Leave blank for default
  129. hostname, e.g.: secure-<application-name>-rhpamcentr-<project>.<default-domain-suffix>'
  130. name: BUSINESS_CENTRAL_HOSTNAME_HTTPS
  131. value: ''
  132. required: false
  133. - displayName: Execution Server Custom http Route Hostname
  134. description: 'Custom hostname for http service route. Leave blank for default hostname,
  135. e.g.: <application-name>-kieserver-<project>.<default-domain-suffix>'
  136. name: EXECUTION_SERVER_HOSTNAME_HTTP
  137. value: ''
  138. required: false
  139. - displayName: Execution Server Custom https Route Hostname
  140. description: 'Custom hostname for https service route. Leave blank for default
  141. hostname, e.g.: secure-<application-name>-kieserver-<project>.<default-domain-suffix>'
  142. name: EXECUTION_SERVER_HOSTNAME_HTTPS
  143. value: ''
  144. required: false
  145. - displayName: Business Central Server Keystore Secret Name
  146. description: The name of the secret containing the keystore file
  147. name: BUSINESS_CENTRAL_HTTPS_SECRET
  148. example: businesscentral-app-secret
  149. required: true
  150. - displayName: Business Central Server Keystore Filename
  151. description: The name of the keystore file within the secret
  152. name: BUSINESS_CENTRAL_HTTPS_KEYSTORE
  153. value: keystore.jks
  154. required: false
  155. - displayName: Business Central Server Certificate Name
  156. description: The name associated with the server certificate
  157. name: BUSINESS_CENTRAL_HTTPS_NAME
  158. value: jboss
  159. required: false
  160. - displayName: Business Central Server Keystore Password
  161. description: The password for the keystore and certificate
  162. name: BUSINESS_CENTRAL_HTTPS_PASSWORD
  163. value: mykeystorepass
  164. required: false
  165. - displayName: KIE Server Keystore Secret Name
  166. description: The name of the secret containing the keystore file
  167. name: KIE_SERVER_HTTPS_SECRET
  168. example: kieserver-app-secret
  169. required: true
  170. - displayName: KIE Server Keystore Filename
  171. description: The name of the keystore file within the secret
  172. name: KIE_SERVER_HTTPS_KEYSTORE
  173. value: keystore.jks
  174. required: false
  175. - displayName: KIE Server Certificate Name
  176. description: The name associated with the server certificate
  177. name: KIE_SERVER_HTTPS_NAME
  178. value: jboss
  179. required: false
  180. - displayName: KIE Server Keystore Password
  181. description: The password for the keystore and certificate
  182. name: KIE_SERVER_HTTPS_PASSWORD
  183. value: mykeystorepass
  184. required: false
  185. - displayName: AppFormer elastic search reconnection tries.
  186. description: The number of times that appformer will try to connect to the elasticsearch node before give up.
  187. name: APPFORMER_ELASTIC_RETRIES
  188. required: false
  189. - displayName: AppFormer JMS Broker port.
  190. description: The port to connect in the JMS broker. Defaults to 61616
  191. name: APPFORMER_JMS_BROKER_PORT
  192. required: false
  193. - displayName: AppFormer JMS Broker username.
  194. description: The username to connect in the JMS broker.
  195. name: APPFORMER_JMS_BROKER_USER
  196. required: true
  197. value: jmsBrokserUser
  198. - displayName: AppFormer JMS Broker password.
  199. description: The password to connect in the JMS broker.
  200. name: APPFORMER_JMS_BROKER_PASSWORD
  201. from: "[a-zA-Z]{6}[0-9]{1}!"
  202. generate: expression
  203. required: true
  204. - displayName: Elasticsearch Custom http Route Hostname
  205. description: 'Custom hostname for http service route. Leave blank for default hostname,
  206. e.g.: <application-name>-rhpamindex-<project>.<default-domain-suffix>'
  207. name: ES_HOSTNAME_HTTP
  208. value: ''
  209. required: false
  210. - displayName: Elasticsearch Cluster name
  211. description: Sets the ES cluster.name and configure it on Business Central. Defaults to kie-cluster.
  212. name: APPFORMER_ELASTIC_CLUSTER_NAME
  213. value: ''
  214. required: false
  215. - displayName: Elasticsearch Node name
  216. description: Sets the ES node.name property. Defaults to HOSTNAME env value.
  217. name: ES_NODE_NAME
  218. value: ''
  219. required: false
  220. - displayName: Elasticsearch Transport Host
  221. description: Sets the ES transport.host property. This will set the transport address of the main ES cluster node. Used for communication between nodes in the cluster. Defaults to container address.
  222. name: ES_TRANSPORT_HOST
  223. value: ''
  224. required: false
  225. - displayName: Elasticsearch Transport TCP Port
  226. description: Sets the ES http.host property. This will set the http address of the main ES cluster node. Used for communication between nodes in the cluster and the communication with Business Central.
  227. name: APPFORMER_ELASTIC_PORT
  228. value: ''
  229. required: false
  230. - displayName: Elasticsearch HTTP Host
  231. description: Sets the ES http.host property. This will set the http address of the main ES cluster node. Used to interact with cluster rest api. Defaults to the container ip address
  232. name: ES_HTTP_HOST
  233. value: ''
  234. required: false
  235. - displayName: Elasticsearch HTTP Port
  236. description: Sets the ES http.port property. This will set the http port of the main ES cluster node. Used to interact with cluster rest api.
  237. name: ES_HTTP_PORT
  238. value: ''
  239. required: false
  240. - displayName: Elasticsearch Additional Java Options
  241. description: Appends custom jvm configurations/properties to ES jvm.options configuration file.
  242. name: ES_JAVA_OPTS
  243. value: ''
  244. example: "-Xms1024m -Xmx1024m"
  245. required: false
  246. - displayName: AMQ Role
  247. description: User role for standard broker user.
  248. name: AMQ_ROLE
  249. value: admin
  250. required: true
  251. - displayName: AMQ Name
  252. description: The name of the broker
  253. name: AMQ_NAME
  254. value: broker
  255. required: true
  256. - displayName: AMQ Global Max Size
  257. description: "Maximum amount of memory which message data may consume (Default: Undefined, half of the system's memory)."
  258. name: AMQ_GLOBAL_MAX_SIZE
  259. value: 100 gb
  260. required: false
  261. - displayName: Elasticsearch Volume Capacity
  262. description: Size of persistent storage for Elasticsearch volume.
  263. name: ES_VOLUME_CAPACITY
  264. value: 1Gi
  265. required: true
  266. - displayName: ImageStream Namespace
  267. description: Namespace in which the ImageStreams for Red Hat Middleware images are
  268. installed. These ImageStreams are normally installed in the openshift namespace.
  269. You should only need to modify this if you've installed the ImageStreams in a
  270. different namespace/project.
  271. name: IMAGE_STREAM_NAMESPACE
  272. value: openshift
  273. required: true
  274. - displayName: ImageStream Tag
  275. description: A named pointer to an image in an image stream. Default is "1.0".
  276. name: IMAGE_STREAM_TAG
  277. value: "1.0"
  278. required: false
  279. - displayName: Maven repository URL
  280. description: Fully qualified URL to a Maven repository or service.
  281. name: MAVEN_REPO_URL
  282. example: http://nexus.nexus-project.svc.cluster.local:8081/nexus/content/groups/public/
  283. required: false
  284. - displayName: Maven repository username
  285. description: Username to access the Maven repository.
  286. name: MAVEN_REPO_USERNAME
  287. required: false
  288. - displayName: Maven repository password
  289. description: Password to access the Maven repository.
  290. name: MAVEN_REPO_PASSWORD
  291. required: false
  292. - displayName: Username for the Maven service hosted by Business Central
  293. description: Username to access the Maven service hosted by Business Central inside EAP.
  294. name: BUSINESS_CENTRAL_MAVEN_USERNAME
  295. required: true
  296. value: mavenUser
  297. - displayName: Password for the Maven service hosted by Business Central
  298. description: Password to access the Maven service hosted by Business Central inside EAP.
  299. name: BUSINESS_CENTRAL_MAVEN_PASSWORD
  300. from: "[a-zA-Z]{6}[0-9]{1}!"
  301. generate: expression
  302. required: true
  303. - displayName: "Timer service data store refresh interval (in milliseconds)"
  304. description: "Sets refresh-interval for the EJB timer database data-store service."
  305. name: TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL
  306. value: '60000'
  307. required: true
  308. - displayName: Business Central Volume Capacity
  309. description: Size of the persistent storage for Business Central's runtime data.
  310. name: BUSINESS_CENTRAL_VOLUME_CAPACITY
  311. value: 1Gi
  312. required: true
  313. - displayName: Business Central Container Memory Limit
  314. description: Business Central Container memory limit
  315. name: BUSINESS_CENTRAL_MEMORY_LIMIT
  316. value: 2Gi
  317. required: false
  318. - displayName: Execution Server Container Memory Limit
  319. description: Execution Server Container memory limit
  320. name: EXCECUTION_SERVER_MEMORY_LIMIT
  321. value: 1Gi
  322. required: false
  323. - displayName: RH-SSO URL
  324. description: RH-SSO URL
  325. name: SSO_URL
  326. example: https://rh-sso.example.com/auth
  327. required: false
  328. - displayName: RH-SSO Realm name
  329. description: RH-SSO Realm name
  330. name: SSO_REALM
  331. required: false
  332. - displayName: Business Central RH-SSO Client name
  333. description: Business Central RH-SSO Client name
  334. name: BUSINESS_CENTRAL_SSO_CLIENT
  335. required: false
  336. - displayName: Business Central RH-SSO Client Secret
  337. description: Business Central RH-SSO Client Secret
  338. name: BUSINESS_CENTRAL_SSO_SECRET
  339. example: "252793ed-7118-4ca8-8dab-5622fa97d892"
  340. required: false
  341. - displayName: KIE Server RH-SSO Client name
  342. description: KIE Server RH-SSO Client name
  343. name: KIE_SERVER_SSO_CLIENT
  344. required: false
  345. - displayName: KIE Server RH-SSO Client Secret
  346. description: KIE Server RH-SSO Client Secret
  347. name: KIE_SERVER_SSO_SECRET
  348. example: "252793ed-7118-4ca8-8dab-5622fa97d892"
  349. required: false
  350. - displayName: RH-SSO Realm Admin Username
  351. description: RH-SSO Realm Admin Username used to create the Client if it doesn't exist
  352. name: SSO_USERNAME
  353. required: false
  354. - displayName: RH-SSO Realm Admin Password
  355. description: RH-SSO Realm Admin Password used to create the Client
  356. name: SSO_PASSWORD
  357. required: false
  358. - displayName: RH-SSO Disable SSL Certificate Validation
  359. description: RH-SSO Disable SSL Certificate Validation
  360. name: SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
  361. value: "false"
  362. required: false
  363. objects:
  364. - kind: ServiceAccount
  365. apiVersion: v1
  366. metadata:
  367. name: "${APPLICATION_NAME}-kieserver"
  368. labels:
  369. application: "${APPLICATION_NAME}"
  370. - kind: ServiceAccount
  371. apiVersion: v1
  372. metadata:
  373. name: "${APPLICATION_NAME}-rhpamcentr"
  374. labels:
  375. application: "${APPLICATION_NAME}"
  376. - kind: Service
  377. apiVersion: v1
  378. spec:
  379. ports:
  380. - name: http
  381. port: 8080
  382. targetPort: 8080
  383. - name: https
  384. port: 8443
  385. targetPort: 8443
  386. - name: git-ssh
  387. port: 8001
  388. targetPort: 8001
  389. selector:
  390. deploymentConfig: "${APPLICATION_NAME}-rhpamcentr"
  391. metadata:
  392. name: "${APPLICATION_NAME}-rhpamcentr"
  393. labels:
  394. application: "${APPLICATION_NAME}"
  395. service: "${APPLICATION_NAME}-rhpamcentr"
  396. annotations:
  397. description: All the Business Central web server's ports.
  398. - kind: Service
  399. apiVersion: v1
  400. spec:
  401. clusterIP: "None"
  402. ports:
  403. - name: "ping"
  404. port: 8888
  405. selector:
  406. deploymentConfig: "${APPLICATION_NAME}-rhpamcentr"
  407. metadata:
  408. name: "${APPLICATION_NAME}-ping"
  409. labels:
  410. application: "${APPLICATION_NAME}"
  411. annotations:
  412. service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
  413. description: "The JGroups ping port for clustering."
  414. - kind: Service
  415. apiVersion: v1
  416. spec:
  417. ports:
  418. - name: http
  419. port: 8080
  420. targetPort: 8080
  421. - name: https
  422. port: 8443
  423. targetPort: 8443
  424. selector:
  425. deploymentConfig: "${APPLICATION_NAME}-kieserver"
  426. metadata:
  427. name: "${APPLICATION_NAME}-kieserver"
  428. labels:
  429. application: "${APPLICATION_NAME}"
  430. service: "${APPLICATION_NAME}-kieserver"
  431. annotations:
  432. description: All the KIE server web server's ports.
  433. - kind: Service
  434. apiVersion: v1
  435. spec:
  436. ports:
  437. - name: rest
  438. port: 9200
  439. targetPort: 9200
  440. - name: transport
  441. port: 9300
  442. targetPort: 9300
  443. selector:
  444. deploymentConfig: "${APPLICATION_NAME}-rhpamindex"
  445. metadata:
  446. name: "${APPLICATION_NAME}-rhpamindex"
  447. labels:
  448. application: "${APPLICATION_NAME}"
  449. service: "${APPLICATION_NAME}-rhpamindex"
  450. annotations:
  451. description: All the Business Central Indexing Elasticsearch ports.
  452. - apiVersion: v1
  453. kind: Service
  454. spec:
  455. ports:
  456. - port: 61616
  457. targetPort: 61616
  458. selector:
  459. deploymentConfig: "${APPLICATION_NAME}-amq"
  460. metadata:
  461. name: "${APPLICATION_NAME}-amq-tcp"
  462. labels:
  463. application: "${APPLICATION_NAME}"
  464. service: "${APPLICATION_NAME}-amq"
  465. annotations:
  466. description: The broker's OpenWire port.
  467. ## MySQL service BEGIN
  468. - apiVersion: v1
  469. kind: Service
  470. spec:
  471. ports:
  472. - port: 3306
  473. targetPort: 3306
  474. selector:
  475. deploymentConfig: "${APPLICATION_NAME}-mysql"
  476. metadata:
  477. name: "${APPLICATION_NAME}-mysql"
  478. labels:
  479. application: "${APPLICATION_NAME}"
  480. service: "${APPLICATION_NAME}-mysql"
  481. annotations:
  482. description: The MySQL server's port.
  483. ## MySQL service END
  484. - kind: Route
  485. apiVersion: v1
  486. id: "${APPLICATION_NAME}-rhpamcentr-http"
  487. metadata:
  488. name: "${APPLICATION_NAME}-rhpamcentr"
  489. labels:
  490. application: "${APPLICATION_NAME}"
  491. service: "${APPLICATION_NAME}-rhpamcentr"
  492. annotations:
  493. description: Route for Business Central's http service.
  494. haproxy.router.openshift.io/timeout: 60s
  495. spec:
  496. host: "${BUSINESS_CENTRAL_HOSTNAME_HTTP}"
  497. to:
  498. name: "${APPLICATION_NAME}-rhpamcentr"
  499. port:
  500. targetPort: http
  501. - kind: Route
  502. apiVersion: v1
  503. id: "${APPLICATION_NAME}-rhpamcentr-https"
  504. metadata:
  505. name: "secure-${APPLICATION_NAME}-rhpamcentr"
  506. labels:
  507. application: "${APPLICATION_NAME}"
  508. service: "${APPLICATION_NAME}-rhpamcentr"
  509. annotations:
  510. description: Route for Business Central's https service.
  511. haproxy.router.openshift.io/timeout: 60s
  512. spec:
  513. host: "${BUSINESS_CENTRAL_HOSTNAME_HTTPS}"
  514. to:
  515. name: ${APPLICATION_NAME}-rhpamcentr
  516. port:
  517. targetPort: https
  518. tls:
  519. termination: passthrough
  520. - kind: Route
  521. apiVersion: v1
  522. id: "${APPLICATION_NAME}-kieserver-http"
  523. metadata:
  524. name: "${APPLICATION_NAME}-kieserver"
  525. labels:
  526. application: "${APPLICATION_NAME}"
  527. service: "${APPLICATION_NAME}-kieserver"
  528. annotations:
  529. description: Route for KIE server's http service.
  530. spec:
  531. host: "${EXECUTION_SERVER_HOSTNAME_HTTP}"
  532. to:
  533. name: "${APPLICATION_NAME}-kieserver"
  534. port:
  535. targetPort: http
  536. - kind: Route
  537. apiVersion: v1
  538. id: "${APPLICATION_NAME}-kieserver-https"
  539. metadata:
  540. name: "secure-${APPLICATION_NAME}-kieserver"
  541. labels:
  542. application: "${APPLICATION_NAME}"
  543. service: "${APPLICATION_NAME}-kieserver"
  544. annotations:
  545. description: Route for KIE server's https service.
  546. spec:
  547. host: "${EXECUTION_SERVER_HOSTNAME_HTTPS}"
  548. to:
  549. name: ${APPLICATION_NAME}-kieserver
  550. port:
  551. targetPort: https
  552. tls:
  553. termination: passthrough
  554. - kind: Route
  555. apiVersion: v1
  556. id: "${APPLICATION_NAME}-rhpamindex-http"
  557. metadata:
  558. name: "${APPLICATION_NAME}-rhpamindex"
  559. labels:
  560. application: "${APPLICATION_NAME}"
  561. annotations:
  562. description: Route for Business Central Indexing's Elasticsearch http service.
  563. spec:
  564. host: "${ES_HOSTNAME_HTTP}"
  565. to:
  566. name: "${APPLICATION_NAME}-rhpamindex"
  567. port:
  568. targetPort: rest
  569. - kind: DeploymentConfig
  570. apiVersion: v1
  571. metadata:
  572. name: "${APPLICATION_NAME}-rhpamcentr"
  573. labels:
  574. application: "${APPLICATION_NAME}"
  575. spec:
  576. strategy:
  577. type: Recreate
  578. triggers:
  579. - type: ImageChange
  580. imageChangeParams:
  581. automatic: true
  582. containerNames:
  583. - "${APPLICATION_NAME}-rhpamcentr"
  584. from:
  585. kind: ImageStreamTag
  586. namespace: "${IMAGE_STREAM_NAMESPACE}"
  587. name: "rhpam70-businesscentral-openshift:${IMAGE_STREAM_TAG}"
  588. - type: ConfigChange
  589. ## Replicas for Business Central
  590. replicas: 2
  591. selector:
  592. deploymentConfig: "${APPLICATION_NAME}-rhpamcentr"
  593. template:
  594. metadata:
  595. name: "${APPLICATION_NAME}-rhpamcentr"
  596. labels:
  597. deploymentConfig: "${APPLICATION_NAME}-rhpamcentr"
  598. application: "${APPLICATION_NAME}"
  599. spec:
  600. serviceAccountName: "${APPLICATION_NAME}-rhpamcentr"
  601. terminationGracePeriodSeconds: 60
  602. containers:
  603. - name: "${APPLICATION_NAME}-rhpamcentr"
  604. image: rhpam70-businesscentral-openshift
  605. imagePullPolicy: Always
  606. resources:
  607. limits:
  608. memory: "${BUSINESS_CENTRAL_MEMORY_LIMIT}"
  609. volumeMounts:
  610. - name: businesscentral-keystore-volume
  611. mountPath: "/etc/businesscentral-secret-volume"
  612. readOnly: true
  613. - name: "${APPLICATION_NAME}-rhpamcentr-pvol"
  614. mountPath: "/opt/eap/standalone/data/bpmsuite"
  615. livenessProbe:
  616. exec:
  617. command:
  618. - "/bin/bash"
  619. - "-c"
  620. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/kie-wb.jsp"
  621. initialDelaySeconds: 180
  622. timeoutSeconds: 2
  623. periodSeconds: 15
  624. readinessProbe:
  625. exec:
  626. command:
  627. - "/bin/bash"
  628. - "-c"
  629. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/kie-wb.jsp"
  630. initialDelaySeconds: 60
  631. timeoutSeconds: 2
  632. periodSeconds: 30
  633. failureThreshold: 6
  634. ports:
  635. - name: jolokia
  636. containerPort: 8778
  637. protocol: TCP
  638. - name: http
  639. containerPort: 8080
  640. protocol: TCP
  641. - name: https
  642. containerPort: 8443
  643. protocol: TCP
  644. - name: ping
  645. containerPort: 8888
  646. protocol: TCP
  647. env:
  648. - name: KIE_ADMIN_PWD
  649. value: "${KIE_ADMIN_PWD}"
  650. - name: KIE_ADMIN_USER
  651. value: "${KIE_ADMIN_USER}"
  652. - name: KIE_MBEANS
  653. value: "${KIE_MBEANS}"
  654. - name: KIE_SERVER_CONTROLLER_PWD
  655. value: "${KIE_SERVER_CONTROLLER_PWD}"
  656. - name: KIE_SERVER_CONTROLLER_USER
  657. value: "${KIE_SERVER_CONTROLLER_USER}"
  658. - name: KIE_SERVER_PWD
  659. value: "${KIE_SERVER_PWD}"
  660. - name: KIE_SERVER_USER
  661. value: "${KIE_SERVER_USER}"
  662. - name: MAVEN_REPO_URL
  663. value: "${MAVEN_REPO_URL}"
  664. - name: MAVEN_REPO_USERNAME
  665. value: "${MAVEN_REPO_USERNAME}"
  666. - name: MAVEN_REPO_PASSWORD
  667. value: "${MAVEN_REPO_PASSWORD}"
  668. - name: KIE_MAVEN_USER
  669. value: "${BUSINESS_CENTRAL_MAVEN_USERNAME}"
  670. - name: KIE_MAVEN_PWD
  671. value: "${BUSINESS_CENTRAL_MAVEN_PASSWORD}"
  672. - name: HTTPS_KEYSTORE_DIR
  673. value: "/etc/businesscentral-secret-volume"
  674. - name: HTTPS_KEYSTORE
  675. value: "${BUSINESS_CENTRAL_HTTPS_KEYSTORE}"
  676. - name: HTTPS_NAME
  677. value: "${BUSINESS_CENTRAL_HTTPS_NAME}"
  678. - name: HTTPS_PASSWORD
  679. value: "${BUSINESS_CENTRAL_HTTPS_PASSWORD}"
  680. - name: ADMIN_USERNAME
  681. value: "${ADMIN_USERNAME}"
  682. - name: ADMIN_PASSWORD
  683. value: "${ADMIN_PASSWORD}"
  684. - name: JGROUPS_PING_PROTOCOL
  685. value: "openshift.DNS_PING"
  686. - name: OPENSHIFT_DNS_PING_SERVICE_NAME
  687. value: "${APPLICATION_NAME}-ping"
  688. - name: OPENSHIFT_DNS_PING_SERVICE_PORT
  689. value: "8888"
  690. - name: APPFORMER_ELASTIC_PORT
  691. value: "${APPFORMER_ELASTIC_PORT}"
  692. - name: APPFORMER_ELASTIC_CLUSTER_NAME
  693. value: "${APPFORMER_ELASTIC_CLUSTER_NAME}"
  694. - name: APPFORMER_ELASTIC_RETRIES
  695. value: "${APPFORMER_ELASTIC_RETRIES}"
  696. - name: APPFORMER_ELASTIC_HOST
  697. value: "${APPLICATION_NAME}-rhpamindex"
  698. - name: APPFORMER_JMS_BROKER_ADDRESS
  699. value: "${APPLICATION_NAME}-amq-tcp"
  700. - name: APPFORMER_JMS_BROKER_PORT
  701. value: "${APPFORMER_JMS_BROKER_PORT}"
  702. - name: APPFORMER_JMS_BROKER_USER
  703. value: "${APPFORMER_JMS_BROKER_USER}"
  704. - name: APPFORMER_JMS_BROKER_PASSWORD
  705. value: "${APPFORMER_JMS_BROKER_PASSWORD}"
  706. - name: SSO_URL
  707. value: "${SSO_URL}"
  708. - name: SSO_OPENIDCONNECT_DEPLOYMENTS
  709. value: "ROOT.war"
  710. - name: SSO_REALM
  711. value: "${SSO_REALM}"
  712. - name: SSO_SECRET
  713. value: "${BUSINESS_CENTRAL_SSO_SECRET}"
  714. - name: SSO_CLIENT
  715. value: "${BUSINESS_CENTRAL_SSO_CLIENT}"
  716. - name: SSO_USERNAME
  717. value: "${SSO_USERNAME}"
  718. - name: SSO_PASSWORD
  719. value: "${SSO_PASSWORD}"
  720. - name: SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
  721. value: "${SSO_DISABLE_SSL_CERTIFICATE_VALIDATION}"
  722. - name: HOSTNAME_HTTP
  723. value: "${BUSINESS_CENTRAL_HOSTNAME_HTTP}"
  724. - name: HOSTNAME_HTTPS
  725. value: "${BUSINESS_CENTRAL_HOSTNAME_HTTPS}"
  726. volumes:
  727. - name: businesscentral-keystore-volume
  728. secret:
  729. secretName: "${BUSINESS_CENTRAL_HTTPS_SECRET}"
  730. - name: "${APPLICATION_NAME}-rhpamcentr-pvol"
  731. persistentVolumeClaim:
  732. claimName: "${APPLICATION_NAME}-rhpamcentr-claim"
  733. - kind: DeploymentConfig
  734. apiVersion: v1
  735. metadata:
  736. name: "${APPLICATION_NAME}-kieserver"
  737. labels:
  738. application: "${APPLICATION_NAME}"
  739. spec:
  740. strategy:
  741. type: Recreate
  742. triggers:
  743. - type: ImageChange
  744. imageChangeParams:
  745. automatic: true
  746. containerNames:
  747. - "${APPLICATION_NAME}-kieserver"
  748. from:
  749. kind: ImageStreamTag
  750. namespace: "${IMAGE_STREAM_NAMESPACE}"
  751. name: "rhpam70-kieserver-openshift:${IMAGE_STREAM_TAG}"
  752. - type: ConfigChange
  753. replicas: 2
  754. selector:
  755. deploymentConfig: "${APPLICATION_NAME}-kieserver"
  756. template:
  757. metadata:
  758. name: "${APPLICATION_NAME}-kieserver"
  759. labels:
  760. deploymentConfig: "${APPLICATION_NAME}-kieserver"
  761. application: "${APPLICATION_NAME}"
  762. spec:
  763. serviceAccountName: "${APPLICATION_NAME}-kieserver"
  764. terminationGracePeriodSeconds: 60
  765. containers:
  766. - name: "${APPLICATION_NAME}-kieserver"
  767. image: rhpam70-kieserver-openshift
  768. imagePullPolicy: Always
  769. resources:
  770. limits:
  771. memory: "${EXCECUTION_SERVER_MEMORY_LIMIT}"
  772. volumeMounts:
  773. - name: kieserver-keystore-volume
  774. mountPath: "/etc/kieserver-secret-volume"
  775. readOnly: true
  776. livenessProbe:
  777. exec:
  778. command:
  779. - "/bin/bash"
  780. - "-c"
  781. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/healthcheck"
  782. initialDelaySeconds: 180
  783. timeoutSeconds: 2
  784. periodSeconds: 15
  785. failureThreshold: 3
  786. readinessProbe:
  787. exec:
  788. command:
  789. - "/bin/bash"
  790. - "-c"
  791. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/readycheck"
  792. initialDelaySeconds: 60
  793. timeoutSeconds: 2
  794. periodSeconds: 30
  795. failureThreshold: 6
  796. ports:
  797. - name: jolokia
  798. containerPort: 8778
  799. protocol: TCP
  800. - name: http
  801. containerPort: 8080
  802. protocol: TCP
  803. - name: https
  804. containerPort: 8443
  805. protocol: TCP
  806. env:
  807. - name: AUTO_CONFIGURE_EJB_TIMER
  808. value: "true"
  809. - name: TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL
  810. value: "${TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL}"
  811. - name: DATASOURCES
  812. value: "RHPAM"
  813. ## MySQL driver settings BEGIN
  814. - name: RHPAM_DATABASE
  815. value: "${KIE_SERVER_MYSQL_DB}"
  816. - name: RHPAM_DRIVER
  817. value: "mysql"
  818. - name: RHPAM_USERNAME
  819. value: "${KIE_SERVER_MYSQL_USER}"
  820. - name: RHPAM_PASSWORD
  821. value: "${KIE_SERVER_MYSQL_PWD}"
  822. - name: RHPAM_SERVICE_HOST
  823. value: "${APPLICATION_NAME}-mysql"
  824. - name: RHPAM_SERVICE_PORT
  825. value: "3306"
  826. - name: KIE_SERVER_PERSISTENCE_DIALECT
  827. value: "org.hibernate.dialect.MySQLDialect"
  828. ## MySQL driver settings END
  829. - name: KIE_SERVER_PERSISTENCE_DS
  830. value: "${KIE_SERVER_PERSISTENCE_DS}"
  831. - name: RHPAM_JNDI
  832. value: "${KIE_SERVER_PERSISTENCE_DS}"
  833. - name: RHPAM_JTA
  834. value: "true"
  835. - name: RHPAM_TX_ISOLATION
  836. value: "TRANSACTION_READ_COMMITTED"
  837. - name: DROOLS_SERVER_FILTER_CLASSES
  838. value: "${DROOLS_SERVER_FILTER_CLASSES}"
  839. - name: KIE_ADMIN_PWD
  840. value: "${KIE_ADMIN_PWD}"
  841. - name: KIE_ADMIN_USER
  842. value: "${KIE_ADMIN_USER}"
  843. - name: KIE_MBEANS
  844. value: "${KIE_MBEANS}"
  845. - name: KIE_SERVER_BYPASS_AUTH_USER
  846. value: "${KIE_SERVER_BYPASS_AUTH_USER}"
  847. - name: KIE_SERVER_CONTROLLER_PWD
  848. value: "${KIE_SERVER_CONTROLLER_PWD}"
  849. - name: KIE_SERVER_CONTROLLER_SERVICE
  850. value: "${APPLICATION_NAME}-rhpamcentr"
  851. - name: KIE_SERVER_CONTROLLER_USER
  852. value: "${KIE_SERVER_CONTROLLER_USER}"
  853. - name: KIE_SERVER_ID
  854. value: "${KIE_SERVER_ID}"
  855. - name: KIE_SERVER_HOST
  856. valueFrom:
  857. fieldRef:
  858. fieldPath: status.podIP
  859. - name: KIE_SERVER_PWD
  860. value: "${KIE_SERVER_PWD}"
  861. - name: KIE_SERVER_USER
  862. value: "${KIE_SERVER_USER}"
  863. - name: MAVEN_REPO_USERNAME
  864. value: "${KIE_ADMIN_USER}"
  865. - name: MAVEN_REPO_PASSWORD
  866. value: "${KIE_ADMIN_PWD}"
  867. - name: MAVEN_REPOS
  868. value: "RHPAMCENTR,EXTERNAL"
  869. - name: MAVEN_REPO_SERVICE
  870. value: "${APPLICATION_NAME}-rhpamcentr"
  871. - name: MAVEN_REPO_PATH
  872. value: "/maven2/"
  873. - name: RHPAMCENTR_MAVEN_REPO_USERNAME
  874. value: "${BUSINESS_CENTRAL_MAVEN_USERNAME}"
  875. - name: RHPAMCENTR_MAVEN_REPO_PASSWORD
  876. value: "${BUSINESS_CENTRAL_MAVEN_PASSWORD}"
  877. - name: EXTERNAL_MAVEN_REPO_URL
  878. value: "${MAVEN_REPO_URL}"
  879. - name: EXTERNAL_MAVEN_REPO_USERNAME
  880. value: "${MAVEN_REPO_USERNAME}"
  881. - name: EXTERNAL_MAVEN_REPO_PASSWORD
  882. - name: HTTPS_KEYSTORE_DIR
  883. value: "/etc/kieserver-secret-volume"
  884. - name: HTTPS_KEYSTORE
  885. value: "${KIE_SERVER_HTTPS_KEYSTORE}"
  886. - name: HTTPS_NAME
  887. value: "${KIE_SERVER_HTTPS_NAME}"
  888. - name: HTTPS_PASSWORD
  889. value: "${KIE_SERVER_HTTPS_PASSWORD}"
  890. - name: SSO_URL
  891. value: "${SSO_URL}"
  892. - name: SSO_OPENIDCONNECT_DEPLOYMENTS
  893. value: "ROOT.war"
  894. - name: SSO_REALM
  895. value: "${SSO_REALM}"
  896. - name: SSO_SECRET
  897. value: "${KIE_SERVER_SSO_SECRET}"
  898. - name: SSO_CLIENT
  899. value: "${KIE_SERVER_SSO_CLIENT}"
  900. - name: SSO_USERNAME
  901. value: "${SSO_USERNAME}"
  902. - name: SSO_PASSWORD
  903. value: "${SSO_PASSWORD}"
  904. - name: SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
  905. value: "${SSO_DISABLE_SSL_CERTIFICATE_VALIDATION}"
  906. - name: HOSTNAME_HTTP
  907. value: "${EXECUTION_SERVER_HOSTNAME_HTTP}"
  908. - name: HOSTNAME_HTTPS
  909. value: "${EXECUTION_SERVER_HOSTNAME_HTTPS}"
  910. volumes:
  911. - name: kieserver-keystore-volume
  912. secret:
  913. secretName: "${KIE_SERVER_HTTPS_SECRET}"
  914. - kind: DeploymentConfig
  915. apiVersion: v1
  916. metadata:
  917. name: "${APPLICATION_NAME}-rhpamindex"
  918. labels:
  919. application: "${APPLICATION_NAME}"
  920. spec:
  921. strategy:
  922. type: Recreate
  923. triggers:
  924. - type: ImageChange
  925. imageChangeParams:
  926. automatic: true
  927. containerNames:
  928. - "${APPLICATION_NAME}-rhpamindex"
  929. from:
  930. kind: ImageStreamTag
  931. namespace: "${IMAGE_STREAM_NAMESPACE}"
  932. name: "rhpam70-businesscentral-indexing-openshift:${IMAGE_STREAM_TAG}"
  933. - type: ConfigChange
  934. replicas: 1
  935. selector:
  936. deploymentConfig: "${APPLICATION_NAME}-rhpamindex"
  937. template:
  938. metadata:
  939. name: "${APPLICATION_NAME}-rhpamindex"
  940. labels:
  941. deploymentConfig: "${APPLICATION_NAME}-rhpamindex"
  942. application: "${APPLICATION_NAME}"
  943. spec:
  944. terminationGracePeriodSeconds: 60
  945. containers:
  946. - name: "${APPLICATION_NAME}-rhpamindex"
  947. image: rhpam70-businesscentral-indexing-openshift
  948. imagePullPolicy: Always
  949. volumeMounts:
  950. - name: "${APPLICATION_NAME}-rhpamindex-pvol"
  951. mountPath: "/opt/elasticsearch/data"
  952. livenessProbe:
  953. tcpSocket:
  954. port: 9300
  955. initialDelaySeconds: 15
  956. timeoutSeconds: 1
  957. readinessProbe:
  958. httpGet:
  959. path: /_cluster/health
  960. port: 9200
  961. initialDelaySeconds: 15
  962. timeoutSeconds: 2
  963. ports:
  964. - name: es
  965. containerPort: 9300
  966. protocol: TCP
  967. - name: http
  968. containerPort: 9200
  969. protocol: TCP
  970. env:
  971. - name: ES_CLUSTER_NAME
  972. value: "${APPFORMER_ELASTIC_CLUSTER_NAME}"
  973. - name: ES_NODE_NAME
  974. value: "${ES_NODE_NAME}"
  975. - name: ES_TRANSPORT_HOST
  976. value: "${ES_TRANSPORT_HOST}"
  977. - name: ES_TRANSPORT_TCP_PORT
  978. value: "${APPFORMER_ELASTIC_PORT}"
  979. - name: ES_HTTP_PORT
  980. value: "${ES_HTTP_PORT}"
  981. - name: ES_HTTP_HOST
  982. value: "${ES_HTTP_HOST}"
  983. - name: ES_JAVA_OPTS
  984. value: "${ES_JAVA_OPTS}"
  985. volumes:
  986. - name: "${APPLICATION_NAME}-rhpamindex-pvol"
  987. persistentVolumeClaim:
  988. claimName: "${APPLICATION_NAME}-rhpamindex-claim"
  989. - kind: DeploymentConfig
  990. apiVersion: v1
  991. metadata:
  992. labels:
  993. application: ${APPLICATION_NAME}
  994. name: ${APPLICATION_NAME}-amq
  995. spec:
  996. replicas: 1
  997. selector:
  998. deploymentConfig: ${APPLICATION_NAME}-amq
  999. strategy:
  1000. rollingParams:
  1001. maxSurge: 0
  1002. type: Rolling
  1003. template:
  1004. metadata:
  1005. labels:
  1006. application: ${APPLICATION_NAME}
  1007. deploymentConfig: ${APPLICATION_NAME}-amq
  1008. name: ${APPLICATION_NAME}-amq
  1009. spec:
  1010. containers:
  1011. - env:
  1012. - name: AMQ_USER
  1013. value: "${APPFORMER_JMS_BROKER_USER}"
  1014. - name: AMQ_PASSWORD
  1015. value: "${APPFORMER_JMS_BROKER_PASSWORD}"
  1016. - name: AMQ_ROLE
  1017. value: ${AMQ_ROLE}
  1018. - name: AMQ_NAME
  1019. value: ${AMQ_NAME}
  1020. - name: AMQ_TRANSPORTS
  1021. value: "openwire"
  1022. - name: AMQ_GLOBAL_MAX_SIZE
  1023. value: ${AMQ_GLOBAL_MAX_SIZE}
  1024. image: amq-broker71-openshift
  1025. imagePullPolicy: Always
  1026. livenessProbe:
  1027. failureThreshold: 3
  1028. initialDelaySeconds: 90
  1029. periodSeconds: 10
  1030. successThreshold: 1
  1031. tcpSocket:
  1032. port: 5672
  1033. timeoutSeconds: 1
  1034. readinessProbe:
  1035. failureThreshold: 3
  1036. initialDelaySeconds: 10
  1037. periodSeconds: 10
  1038. successThreshold: 1
  1039. tcpSocket:
  1040. port: 5672
  1041. timeoutSeconds: 1
  1042. name: ${APPLICATION_NAME}-amq
  1043. ports:
  1044. - containerPort: 8161
  1045. name: jolokia
  1046. protocol: TCP
  1047. - containerPort: 5672
  1048. name: amqp
  1049. protocol: TCP
  1050. - containerPort: 1883
  1051. name: mqtt
  1052. protocol: TCP
  1053. - containerPort: 61613
  1054. name: stomp
  1055. protocol: TCP
  1056. - containerPort: 61616
  1057. name: artemis
  1058. protocol: TCP
  1059. terminationGracePeriodSeconds: 60
  1060. triggers:
  1061. - imageChangeParams:
  1062. automatic: true
  1063. containerNames:
  1064. - ${APPLICATION_NAME}-amq
  1065. from:
  1066. kind: ImageStreamTag
  1067. name: amq-broker71-openshift:1.0
  1068. namespace: ${IMAGE_STREAM_NAMESPACE}
  1069. type: ImageChange
  1070. - type: ConfigChange
  1071. ## MySQL deployment config BEGIN
  1072. - kind: DeploymentConfig
  1073. apiVersion: v1
  1074. metadata:
  1075. name: "${APPLICATION_NAME}-mysql"
  1076. labels:
  1077. application: "${APPLICATION_NAME}"
  1078. spec:
  1079. strategy:
  1080. type: Recreate
  1081. triggers:
  1082. - type: ImageChange
  1083. imageChangeParams:
  1084. automatic: true
  1085. containerNames:
  1086. - "${APPLICATION_NAME}-mysql"
  1087. from:
  1088. kind: ImageStreamTag
  1089. namespace: "${IMAGE_STREAM_NAMESPACE}"
  1090. name: "mysql:${MYSQL_IMAGE_STREAM_TAG}"
  1091. - type: ConfigChange
  1092. replicas: 1
  1093. selector:
  1094. deploymentConfig: "${APPLICATION_NAME}-mysql"
  1095. template:
  1096. metadata:
  1097. name: "${APPLICATION_NAME}-mysql"
  1098. labels:
  1099. deploymentConfig: "${APPLICATION_NAME}-mysql"
  1100. application: "${APPLICATION_NAME}"
  1101. spec:
  1102. terminationGracePeriodSeconds: 60
  1103. containers:
  1104. - name: "${APPLICATION_NAME}-mysql"
  1105. image: mysql
  1106. imagePullPolicy: Always
  1107. ports:
  1108. - containerPort: 3306
  1109. protocol: TCP
  1110. volumeMounts:
  1111. - mountPath: "/var/lib/mysql/data"
  1112. name: "${APPLICATION_NAME}-mysql-pvol"
  1113. env:
  1114. - name: MYSQL_USER
  1115. value: "${KIE_SERVER_MYSQL_USER}"
  1116. - name: MYSQL_PASSWORD
  1117. value: "${KIE_SERVER_MYSQL_PWD}"
  1118. - name: MYSQL_DATABASE
  1119. value: "${KIE_SERVER_MYSQL_DB}"
  1120. volumes:
  1121. - name: "${APPLICATION_NAME}-mysql-pvol"
  1122. persistentVolumeClaim:
  1123. claimName: "${APPLICATION_NAME}-mysql-claim"
  1124. ## MySQL deployment config END
  1125. - apiVersion: v1
  1126. kind: PersistentVolumeClaim
  1127. metadata:
  1128. name: "${APPLICATION_NAME}-rhpamcentr-claim"
  1129. labels:
  1130. application: "${APPLICATION_NAME}"
  1131. spec:
  1132. accessModes:
  1133. - ReadWriteMany
  1134. resources:
  1135. requests:
  1136. storage: "${BUSINESS_CENTRAL_VOLUME_CAPACITY}"
  1137. ## MySQL persistent volume claim BEGIN
  1138. - apiVersion: v1
  1139. kind: PersistentVolumeClaim
  1140. metadata:
  1141. name: "${APPLICATION_NAME}-mysql-claim"
  1142. labels:
  1143. application: "${APPLICATION_NAME}"
  1144. spec:
  1145. accessModes:
  1146. - ReadWriteOnce
  1147. resources:
  1148. requests:
  1149. storage: "${DB_VOLUME_CAPACITY}"
  1150. ## MySQL persistent volume claim END
  1151. - apiVersion: v1
  1152. kind: PersistentVolumeClaim
  1153. metadata:
  1154. name: "${APPLICATION_NAME}-rhpamindex-claim"
  1155. labels:
  1156. application: "${APPLICATION_NAME}"
  1157. spec:
  1158. accessModes:
  1159. - ReadWriteOnce
  1160. resources:
  1161. requests:
  1162. storage: "${ES_VOLUME_CAPACITY}"