rhpam70-sit.yaml 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369
  1. ---
  2. kind: Template
  3. apiVersion: v1
  4. metadata:
  5. annotations:
  6. description: Application template for system integration testing, 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 SIT environment
  11. name: rhpam70-sit
  12. labels:
  13. template: rhpam70-sit
  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 Business Central Monitoring is ${KIE_ADMIN_USER}/${KIE_ADMIN_PWD}. Both sets of KIE servers are configured with the username/password of ${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.
  29. name: MAVEN_REPO_USERNAME
  30. required: true
  31. - displayName: Maven repository password
  32. description: Password to access the Maven repository.
  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 User
  58. description: KIE execution server username (Sets the org.kie.server.user system property)
  59. name: KIE_SERVER_USER
  60. value: executionUser
  61. required: false
  62. - displayName: KIE Server Password
  63. description: KIE execution server password (Sets the org.kie.server.pwd system property)
  64. name: KIE_SERVER_PWD
  65. from: "[a-zA-Z]{6}[0-9]{1}!"
  66. generate: expression
  67. required: false
  68. - displayName: ImageStream Namespace
  69. description: Namespace in which the ImageStreams for Red Hat Middleware images are
  70. installed. These ImageStreams are normally installed in the openshift namespace.
  71. You should only need to modify this if you've installed the ImageStreams in a
  72. different namespace/project.
  73. name: IMAGE_STREAM_NAMESPACE
  74. value: openshift
  75. required: true
  76. - displayName: ImageStream Tag
  77. description: A named pointer to an image in an image stream. Default is "1.0".
  78. name: IMAGE_STREAM_TAG
  79. value: "1.0"
  80. required: false
  81. - displayName: Smart Router Custom http Route Hostname
  82. description: Custom hostname for http service route. Leave blank for default hostname, e.g. <application-name>-smartrouter-<project>.<default-domain-suffix>'
  83. name: SMART_ROUTER_HOSTNAME_HTTP
  84. value: ''
  85. required: false
  86. - displayName: Smart Router ID
  87. description: Router ID used when connecting to the controller (router property org.kie.server.router.id)
  88. name: KIE_SERVER_ROUTER_ID
  89. value: kie-server-router
  90. - displayName: Smart Router listening port
  91. description: Port in which the smart router server listens (router property org.kie.server.router.port)
  92. name: KIE_SERVER_ROUTER_PORT
  93. example: "9000"
  94. required: false
  95. - displayName: Smart Router protocol
  96. description: KIE server router protocol (Used to build the org.kie.server.router.url.external property)
  97. name: KIE_SERVER_ROUTER_PROTOCOL
  98. example: "http"
  99. required: false
  100. - displayName: Smart Router external URL
  101. description: Public URL where the router can be found. Format http://<host>:<port> (router property org.kie.server.router.url.external)
  102. name: KIE_SERVER_ROUTER_URL_EXTERNAL
  103. - displayName: Smart Router name
  104. description: Router name used when connecting to the controller (router property org.kie.server.router.name)
  105. name: KIE_SERVER_ROUTER_NAME
  106. value: KIE Server Router
  107. - displayName: KIE Server Controller User
  108. description: KIE server controller username (Sets the org.kie.server.controller.user system property)
  109. name: KIE_SERVER_CONTROLLER_USER
  110. value: controllerUser
  111. required: false
  112. - displayName: KIE Server Controller Password
  113. description: KIE server controller password (Sets the org.kie.server.controller.pwd system property)
  114. name: KIE_SERVER_CONTROLLER_PWD
  115. from: "[a-zA-Z]{6}[0-9]{1}!"
  116. generate: expression
  117. required: false
  118. - displayName: KIE Server Persistence DS
  119. description: KIE execution server persistence datasource (Sets the org.kie.server.persistence.ds system property)
  120. name: KIE_SERVER_PERSISTENCE_DS
  121. value: java:/jboss/datasources/rhpam
  122. required: false
  123. ## PostgreSQL database parameters BEGIN
  124. - displayName: PostgreSQL ImageStream Tag
  125. description: The PostgreSQL image version, which is intended to correspond to the PostgreSQL version. Default is "9.6".
  126. name: POSTGRESQL_IMAGE_STREAM_TAG
  127. value: "9.6"
  128. required: false
  129. - displayName: KIE Server PostgreSQL Database User
  130. description: KIE execution server PostgreSQL database username
  131. name: KIE_SERVER_POSTGRESQL_USER
  132. value: rhpam
  133. required: false
  134. - displayName: KIE Server PostgreSQL Database Password
  135. description: KIE execution server PostgreSQL database password
  136. name: KIE_SERVER_POSTGRESQL_PWD
  137. from: "[a-zA-Z]{6}[0-9]{1}!"
  138. generate: expression
  139. required: false
  140. - displayName: KIE Server PostgreSQL Database Name
  141. description: KIE execution server PostgreSQL database name
  142. name: KIE_SERVER_POSTGRESQL_DB
  143. value: rhpam7
  144. required: false
  145. - displayName: PostgreSQL Database max prepared connections
  146. description: Allows the PostgreSQL to handle XA transactions.
  147. name: POSTGRESQL_MAX_PREPARED_TRANSACTIONS
  148. value: '100'
  149. required: true
  150. - displayName: Database Volume Capacity
  151. description: Size of persistent storage for database volume.
  152. name: DB_VOLUME_CAPACITY
  153. value: 1Gi
  154. required: true
  155. ## PostgreSQL database parameters END
  156. - displayName: Drools Server Filter Classes
  157. description: KIE execution server class filtering (Sets the org.drools.server.filter.classes system property)
  158. name: DROOLS_SERVER_FILTER_CLASSES
  159. value: 'true'
  160. required: false
  161. - displayName: KIE MBeans
  162. description: KIE execution server mbeans enabled/disabled (Sets the kie.mbeans and kie.scanner.mbeans system properties)
  163. name: KIE_MBEANS
  164. value: enabled
  165. required: false
  166. - displayName: Business Central Monitoring Custom http Route Hostname
  167. description: 'Custom hostname for http service route. Leave blank for default hostname,
  168. e.g.: <application-name>-rhpamcentrmon-<project>.<default-domain-suffix>'
  169. name: BUSINESS_CENTRAL_HOSTNAME_HTTP
  170. value: ''
  171. required: false
  172. - displayName: Business Central Monitoring Custom https Route Hostname
  173. description: 'Custom hostname for https service route. Leave blank for default
  174. hostname, e.g.: secure-<application-name>-rhpamcentrmon-<project>.<default-domain-suffix>'
  175. name: BUSINESS_CENTRAL_HOSTNAME_HTTPS
  176. value: ''
  177. required: false
  178. - displayName: Execution Server 1 Custom http Route Hostname
  179. description: 'Custom hostname for http service route. Leave blank for default hostname,
  180. e.g.: <application-name>-kieserver-<project>.<default-domain-suffix>'
  181. name: EXECUTION_SERVER1_HOSTNAME_HTTP
  182. value: ''
  183. required: false
  184. - displayName: Execution Server 1 Custom https Route Hostname
  185. description: 'Custom hostname for https service route. Leave blank for default
  186. hostname, e.g.: secure-<application-name>-kieserver-<project>.<default-domain-suffix>'
  187. name: EXECUTION_SERVER1_HOSTNAME_HTTPS
  188. value: ''
  189. required: false
  190. - displayName: Execution Server 2 Custom http Route Hostname
  191. description: 'Custom hostname for http service route. Leave blank for default hostname,
  192. e.g.: <application-name>-kieserver-<project>.<default-domain-suffix>'
  193. name: EXECUTION_SERVER2_HOSTNAME_HTTP
  194. value: ''
  195. required: false
  196. - displayName: Execution Server 2 Custom https Route Hostname
  197. description: 'Custom hostname for https service route. Leave blank for default
  198. hostname, e.g.: secure-<application-name>-kieserver-<project>.<default-domain-suffix>'
  199. name: EXECUTION_SERVER2_HOSTNAME_HTTPS
  200. value: ''
  201. required: false
  202. - displayName: Business Central Monitoring Server Keystore Secret Name
  203. description: The name of the secret containing the keystore file
  204. name: BUSINESS_CENTRAL_HTTPS_SECRET
  205. example: businesscentral-app-secret
  206. required: true
  207. - displayName: Business Central Monitoring Server Keystore Filename
  208. description: The name of the keystore file within the secret
  209. name: BUSINESS_CENTRAL_HTTPS_KEYSTORE
  210. value: keystore.jks
  211. required: false
  212. - displayName: Business Central Monitoring Server Certificate Name
  213. description: The name associated with the server certificate
  214. name: BUSINESS_CENTRAL_HTTPS_NAME
  215. value: jboss
  216. required: false
  217. - displayName: Business Central Monitoring Server Keystore Password
  218. description: The password for the keystore and certificate
  219. name: BUSINESS_CENTRAL_HTTPS_PASSWORD
  220. value: mykeystorepass
  221. required: false
  222. - displayName: KIE Server Keystore Secret Name
  223. description: The name of the secret containing the keystore file
  224. name: KIE_SERVER_HTTPS_SECRET
  225. example: kieserver-app-secret
  226. required: true
  227. - displayName: KIE Server Keystore Filename
  228. description: The name of the keystore file within the secret
  229. name: KIE_SERVER_HTTPS_KEYSTORE
  230. value: keystore.jks
  231. required: false
  232. - displayName: KIE Server Certificate Name
  233. description: The name associated with the server certificate
  234. name: KIE_SERVER_HTTPS_NAME
  235. value: jboss
  236. required: false
  237. - displayName: KIE Server Keystore Password
  238. description: The password for the keystore and certificate
  239. name: KIE_SERVER_HTTPS_PASSWORD
  240. value: mykeystorepass
  241. required: false
  242. - displayName: KIE Server Bypass Auth User
  243. description: KIE execution server bypass auth user (Sets the org.kie.server.bypass.auth.user system property)
  244. name: KIE_SERVER_BYPASS_AUTH_USER
  245. value: 'false'
  246. required: false
  247. - displayName: "Timer service data store refresh interval (in milliseconds)"
  248. description: "Sets refresh-interval for the EJB timer service database-data-store."
  249. name: TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL
  250. value: '30000'
  251. required: false
  252. - displayName: Business Central Monitoring Container Memory Limit
  253. description: Business Central Monitoring Container memory limit
  254. name: BUSINESS_CENTRAL_MEMORY_LIMIT
  255. value: 2Gi
  256. required: false
  257. - displayName: Execution Server Container Memory Limit
  258. description: Execution Server Container memory limit
  259. name: EXECUTION_SERVER_MEMORY_LIMIT
  260. value: 1Gi
  261. required: false
  262. - displayName: Smart Router Container Memory Limit
  263. description: Smart Router Container memory limit
  264. name: SMART_ROUTER_MEMORY_LIMIT
  265. value: 512Mi
  266. required: false
  267. - displayName: RH-SSO URL
  268. description: RH-SSO URL
  269. name: SSO_URL
  270. example: https://rh-sso.example.com/auth
  271. required: false
  272. - displayName: RH-SSO Realm name
  273. description: RH-SSO Realm name
  274. name: SSO_REALM
  275. required: false
  276. - displayName: Business Central Monitoring RH-SSO Client name
  277. description: Business Central Monitoring RH-SSO Client name
  278. name: BUSINESS_CENTRAL_SSO_CLIENT
  279. required: false
  280. - displayName: Business Central Monitoring RH-SSO Client Secret
  281. description: Business Central Monitoring RH-SSO Client Secret
  282. name: BUSINESS_CENTRAL_SSO_SECRET
  283. example: "252793ed-7118-4ca8-8dab-5622fa97d892"
  284. required: false
  285. - displayName: KIE Server 1 RH-SSO Client name
  286. description: KIE Server 1 RH-SSO Client name
  287. name: KIE_SERVER1_SSO_CLIENT
  288. required: false
  289. - displayName: KIE Server 1 RH-SSO Client Secret
  290. description: KIE Server 1 RH-SSO Client Secret
  291. name: KIE_SERVER1_SSO_SECRET
  292. example: "252793ed-7118-4ca8-8dab-5622fa97d892"
  293. required: false
  294. - displayName: KIE Server 2 RH-SSO Client name
  295. description: KIE Server 2 RH-SSO Client name
  296. name: KIE_SERVER2_SSO_CLIENT
  297. required: false
  298. - displayName: KIE Server 2 RH-SSO Client Secret
  299. description: KIE Server 2 RH-SSO Client Secret
  300. name: KIE_SERVER2_SSO_SECRET
  301. example: "252793ed-7118-4ca8-8dab-5622fa97d892"
  302. required: false
  303. - displayName: RH-SSO Realm Admin Username
  304. description: RH-SSO Realm Admin Username used to create the Client if it doesn't exist
  305. name: SSO_USERNAME
  306. required: false
  307. - displayName: RH-SSO Realm Admin Password
  308. description: RH-SSO Realm Admin Password used to create the Client
  309. name: SSO_PASSWORD
  310. required: false
  311. - displayName: RH-SSO Disable SSL Certificate Validation
  312. description: RH-SSO Disable SSL Certificate Validation
  313. name: SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
  314. value: "false"
  315. required: false
  316. objects:
  317. - kind: Service
  318. apiVersion: v1
  319. spec:
  320. ports:
  321. - name: http
  322. port: 8080
  323. targetPort: 8080
  324. - name: https
  325. port: 8443
  326. targetPort: 8443
  327. selector:
  328. deploymentConfig: "${APPLICATION_NAME}-rhpamcentrmon"
  329. metadata:
  330. name: "${APPLICATION_NAME}-rhpamcentrmon"
  331. labels:
  332. application: "${APPLICATION_NAME}"
  333. service: "${APPLICATION_NAME}-rhpamcentrmon"
  334. annotations:
  335. description: All the Business Central Monitoring web server's ports.
  336. - kind: Service
  337. apiVersion: v1
  338. spec:
  339. clusterIP: "None"
  340. ports:
  341. - name: "ping"
  342. port: 8888
  343. selector:
  344. deploymentConfig: "${APPLICATION_NAME}-rhpamcentrmon"
  345. metadata:
  346. name: "${APPLICATION_NAME}-rhpamcentrmon-ping"
  347. labels:
  348. application: "${APPLICATION_NAME}"
  349. service: "${APPLICATION_NAME}-rhpamcentrmon"
  350. annotations:
  351. service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
  352. description: "The JGroups ping port for clustering."
  353. - kind: Service
  354. apiVersion: v1
  355. spec:
  356. ports:
  357. - port: 9000
  358. targetPort: 9000
  359. selector:
  360. deploymentConfig: "${APPLICATION_NAME}-smartrouter"
  361. metadata:
  362. name: "${APPLICATION_NAME}-smartrouter"
  363. labels:
  364. application: "${APPLICATION_NAME}"
  365. service: "${APPLICATION_NAME}-smartrouter"
  366. annotations:
  367. description: The smart router server http port.
  368. ## KIE server services 1 BEGIN
  369. - kind: Service
  370. apiVersion: v1
  371. spec:
  372. ports:
  373. - name: http
  374. port: 8080
  375. targetPort: 8080
  376. - name: https
  377. port: 8443
  378. targetPort: 8443
  379. selector:
  380. deploymentConfig: "${APPLICATION_NAME}-kieserver-1"
  381. metadata:
  382. name: "${APPLICATION_NAME}-kieserver-1"
  383. labels:
  384. application: "${APPLICATION_NAME}"
  385. service: "${APPLICATION_NAME}-kieserver-1"
  386. annotations:
  387. description: All the KIE server web server's ports. (First execution server)
  388. - kind: Service
  389. apiVersion: v1
  390. spec:
  391. clusterIP: "None"
  392. ports:
  393. - name: "ping"
  394. port: 8888
  395. selector:
  396. deploymentConfig: "${APPLICATION_NAME}-kieserver-1"
  397. metadata:
  398. name: "${APPLICATION_NAME}-kieserver-1-ping"
  399. labels:
  400. application: "${APPLICATION_NAME}"
  401. service: "${APPLICATION_NAME}-kieserver-1"
  402. annotations:
  403. service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
  404. description: "The JGroups ping port for clustering."
  405. ## KIE server services 1 END
  406. ## KIE server services 2 BEGIN
  407. - kind: Service
  408. apiVersion: v1
  409. spec:
  410. ports:
  411. - name: http
  412. port: 8080
  413. targetPort: 8080
  414. - name: https
  415. port: 8443
  416. targetPort: 8443
  417. selector:
  418. deploymentConfig: "${APPLICATION_NAME}-kieserver-2"
  419. metadata:
  420. name: "${APPLICATION_NAME}-kieserver-2"
  421. labels:
  422. application: "${APPLICATION_NAME}"
  423. service: "${APPLICATION_NAME}-kieserver-2"
  424. annotations:
  425. description: All the KIE server web server's ports. (Second execution server)
  426. - kind: Service
  427. apiVersion: v1
  428. spec:
  429. clusterIP: "None"
  430. ports:
  431. - name: "ping"
  432. port: 8888
  433. selector:
  434. deploymentConfig: "${APPLICATION_NAME}-kieserver-2"
  435. metadata:
  436. name: "${APPLICATION_NAME}-kieserver-2-ping"
  437. labels:
  438. application: "${APPLICATION_NAME}"
  439. service: "${APPLICATION_NAME}-kieserver-2"
  440. annotations:
  441. service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
  442. description: "The JGroups ping port for clustering."
  443. ## KIE server services 2 BEGIN
  444. ## PostgreSQL service 1 BEGIN
  445. - apiVersion: v1
  446. kind: Service
  447. metadata:
  448. annotations:
  449. description: The first database server's port.
  450. labels:
  451. application: ${APPLICATION_NAME}
  452. service: "${APPLICATION_NAME}-postgresql-1"
  453. name: ${APPLICATION_NAME}-postgresql-1
  454. spec:
  455. ports:
  456. - port: 5432
  457. targetPort: 5432
  458. selector:
  459. deploymentConfig: ${APPLICATION_NAME}-postgresql-1
  460. ## PostgreSQL service 1 END
  461. ## PostgreSQL service 2 BEGIN
  462. - apiVersion: v1
  463. kind: Service
  464. metadata:
  465. annotations:
  466. description: The second database server's port.
  467. labels:
  468. application: ${APPLICATION_NAME}
  469. service: "${APPLICATION_NAME}-postgresql-2"
  470. name: ${APPLICATION_NAME}-postgresql-2
  471. spec:
  472. ports:
  473. - port: 5432
  474. targetPort: 5432
  475. selector:
  476. deploymentConfig: ${APPLICATION_NAME}-postgresql-2
  477. ## PostgreSQL service 2 END
  478. - kind: Route
  479. apiVersion: v1
  480. id: "${APPLICATION_NAME}-rhpamcentrmon-http"
  481. metadata:
  482. name: "${APPLICATION_NAME}-rhpamcentrmon"
  483. labels:
  484. application: "${APPLICATION_NAME}"
  485. service: "${APPLICATION_NAME}-rhpamcentrmon"
  486. annotations:
  487. description: Route for Business Central Monitoring's http service.
  488. haproxy.router.openshift.io/timeout: 60s
  489. spec:
  490. host: "${BUSINESS_CENTRAL_HOSTNAME_HTTP}"
  491. to:
  492. name: "${APPLICATION_NAME}-rhpamcentrmon"
  493. port:
  494. targetPort: http
  495. - kind: Route
  496. apiVersion: v1
  497. id: "${APPLICATION_NAME}-rhpamcentrmon-https"
  498. metadata:
  499. name: "secure-${APPLICATION_NAME}-rhpamcentrmon"
  500. labels:
  501. application: "${APPLICATION_NAME}"
  502. service: "${APPLICATION_NAME}-rhpamcentrmon"
  503. annotations:
  504. description: Route for Business Central Monitoring's https service.
  505. haproxy.router.openshift.io/timeout: 60s
  506. spec:
  507. host: "${BUSINESS_CENTRAL_HOSTNAME_HTTPS}"
  508. to:
  509. name: "${APPLICATION_NAME}-rhpamcentrmon"
  510. port:
  511. targetPort: https
  512. tls:
  513. termination: passthrough
  514. ## KIE server routes 1 BEGIN
  515. - kind: Route
  516. apiVersion: v1
  517. id: "${APPLICATION_NAME}-kieserver-1-http"
  518. metadata:
  519. name: "${APPLICATION_NAME}-kieserver-1"
  520. labels:
  521. application: "${APPLICATION_NAME}"
  522. service: "${APPLICATION_NAME}-kieserver-1"
  523. annotations:
  524. description: Route for First KIE server's http service.
  525. spec:
  526. host: "${EXECUTION_SERVER1_HOSTNAME_HTTP}"
  527. to:
  528. name: "${APPLICATION_NAME}-kieserver-1"
  529. port:
  530. targetPort: http
  531. - kind: Route
  532. apiVersion: v1
  533. id: "${APPLICATION_NAME}-kieserver-1-https"
  534. metadata:
  535. name: "secure-${APPLICATION_NAME}-kieserver-1"
  536. labels:
  537. application: "${APPLICATION_NAME}"
  538. service: "${APPLICATION_NAME}-kieserver-1"
  539. annotations:
  540. description: Route for First KIE server's https service.
  541. spec:
  542. host: "${EXECUTION_SERVER1_HOSTNAME_HTTPS}"
  543. to:
  544. name: "${APPLICATION_NAME}-kieserver-1"
  545. port:
  546. targetPort: https
  547. tls:
  548. termination: passthrough
  549. ## KIE server routes 1 END
  550. ## KIE server routes 2 BEGIN
  551. - kind: Route
  552. apiVersion: v1
  553. id: "${APPLICATION_NAME}-kieserver-2-http"
  554. metadata:
  555. name: "${APPLICATION_NAME}-kieserver-2"
  556. labels:
  557. application: "${APPLICATION_NAME}"
  558. service: "${APPLICATION_NAME}-kieserver-2"
  559. annotations:
  560. description: Route for Second KIE server's http service.
  561. spec:
  562. host: "${EXECUTION_SERVER2_HOSTNAME_HTTP}"
  563. to:
  564. name: "${APPLICATION_NAME}-kieserver-2"
  565. port:
  566. targetPort: http
  567. - kind: Route
  568. apiVersion: v1
  569. id: "${APPLICATION_NAME}-kieserver-2-https"
  570. metadata:
  571. name: "secure-${APPLICATION_NAME}-kieserver-2"
  572. labels:
  573. application: "${APPLICATION_NAME}"
  574. service: "${APPLICATION_NAME}-kieserver-2"
  575. annotations:
  576. description: Route for Second KIE server's https service.
  577. spec:
  578. host: "${EXECUTION_SERVER2_HOSTNAME_HTTPS}"
  579. to:
  580. name: "${APPLICATION_NAME}-kieserver-2"
  581. port:
  582. targetPort: https
  583. tls:
  584. termination: passthrough
  585. - kind: Route
  586. apiVersion: v1
  587. id: "${APPLICATION_NAME}-smartrouter-http"
  588. metadata:
  589. name: "${APPLICATION_NAME}-smartrouter"
  590. labels:
  591. application: "${APPLICATION_NAME}"
  592. service: "${APPLICATION_NAME}-smartrouter"
  593. annotations:
  594. description: Route for Smart Router's http service.
  595. spec:
  596. host: "${SMART_ROUTER_HOSTNAME_HTTP}"
  597. to:
  598. name: "${APPLICATION_NAME}-smartrouter"
  599. ## KIE server routes 2 BEGIN
  600. - kind: DeploymentConfig
  601. apiVersion: v1
  602. metadata:
  603. name: "${APPLICATION_NAME}-rhpamcentrmon"
  604. labels:
  605. application: "${APPLICATION_NAME}"
  606. service: "${APPLICATION_NAME}-rhpamcentrmon"
  607. spec:
  608. strategy:
  609. type: Recreate
  610. triggers:
  611. - type: ImageChange
  612. imageChangeParams:
  613. automatic: true
  614. containerNames:
  615. - "${APPLICATION_NAME}-rhpamcentrmon"
  616. from:
  617. kind: ImageStreamTag
  618. namespace: "${IMAGE_STREAM_NAMESPACE}"
  619. name: "rhpam70-businesscentral-monitoring-openshift:${IMAGE_STREAM_TAG}"
  620. - type: ConfigChange
  621. replicas: 1
  622. selector:
  623. deploymentConfig: "${APPLICATION_NAME}-rhpamcentrmon"
  624. template:
  625. metadata:
  626. name: "${APPLICATION_NAME}-rhpamcentrmon"
  627. labels:
  628. deploymentConfig: "${APPLICATION_NAME}-rhpamcentrmon"
  629. application: "${APPLICATION_NAME}"
  630. service: "${APPLICATION_NAME}-rhpamcentrmon"
  631. spec:
  632. terminationGracePeriodSeconds: 60
  633. containers:
  634. - name: "${APPLICATION_NAME}-rhpamcentrmon"
  635. image: rhpam70-businesscentral-monitoring-openshift
  636. imagePullPolicy: Always
  637. resources:
  638. limits:
  639. memory: "${BUSINESS_CENTRAL_MEMORY_LIMIT}"
  640. volumeMounts:
  641. - name: businesscentral-keystore-volume
  642. mountPath: "/etc/businesscentral-secret-volume"
  643. readOnly: true
  644. - name: "${APPLICATION_NAME}-rhpamcentr-pvol"
  645. mountPath: "/opt/eap/standalone/data/bpmsuite"
  646. livenessProbe:
  647. exec:
  648. command:
  649. - "/bin/bash"
  650. - "-c"
  651. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/kie-wb.jsp"
  652. initialDelaySeconds: 180
  653. timeoutSeconds: 2
  654. periodSeconds: 15
  655. readinessProbe:
  656. exec:
  657. command:
  658. - "/bin/bash"
  659. - "-c"
  660. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/kie-wb.jsp"
  661. initialDelaySeconds: 60
  662. timeoutSeconds: 2
  663. periodSeconds: 30
  664. failureThreshold: 6
  665. ports:
  666. - name: jolokia
  667. containerPort: 8778
  668. protocol: TCP
  669. - name: http
  670. containerPort: 8080
  671. protocol: TCP
  672. - name: https
  673. containerPort: 8443
  674. protocol: TCP
  675. - name: ping
  676. containerPort: 8888
  677. protocol: TCP
  678. env:
  679. - name: KIE_ADMIN_PWD
  680. value: "${KIE_ADMIN_PWD}"
  681. - name: KIE_ADMIN_USER
  682. value: "${KIE_ADMIN_USER}"
  683. - name: KIE_SERVER_PWD
  684. value: "${KIE_SERVER_PWD}"
  685. - name: KIE_SERVER_USER
  686. value: "${KIE_SERVER_USER}"
  687. - name: MAVEN_REPO_URL
  688. value: "${MAVEN_REPO_URL}"
  689. - name: MAVEN_REPO_USERNAME
  690. value: "${MAVEN_REPO_USERNAME}"
  691. - name: MAVEN_REPO_PASSWORD
  692. value: "${MAVEN_REPO_PASSWORD}"
  693. - name: ADMIN_USERNAME
  694. value: "${ADMIN_USERNAME}"
  695. - name: ADMIN_PASSWORD
  696. value: "${ADMIN_PASSWORD}"
  697. - name: KIE_SERVER_CONTROLLER_PWD
  698. value: ${KIE_SERVER_CONTROLLER_PWD}
  699. - name: KIE_SERVER_CONTROLLER_USER
  700. value: ${KIE_SERVER_CONTROLLER_USER}
  701. - name: PROBE_IMPL
  702. value: probe.eap.jolokia.EapProbe
  703. - name: PROBE_DISABLE_BOOT_ERRORS_CHECK
  704. value: 'true'
  705. - name: HTTPS_KEYSTORE_DIR
  706. value: "/etc/businesscentral-secret-volume"
  707. - name: HTTPS_KEYSTORE
  708. value: "${BUSINESS_CENTRAL_HTTPS_KEYSTORE}"
  709. - name: HTTPS_NAME
  710. value: "${BUSINESS_CENTRAL_HTTPS_NAME}"
  711. - name: HTTPS_PASSWORD
  712. value: "${BUSINESS_CENTRAL_HTTPS_PASSWORD}"
  713. - name: JGROUPS_PING_PROTOCOL
  714. value: "openshift.DNS_PING"
  715. - name: OPENSHIFT_DNS_PING_SERVICE_NAME
  716. value: "${APPLICATION_NAME}-rhpamcentrmon-ping"
  717. - name: OPENSHIFT_DNS_PING_SERVICE_PORT
  718. value: "8888"
  719. - name: SSO_URL
  720. value: "${SSO_URL}"
  721. - name: SSO_OPENIDCONNECT_DEPLOYMENTS
  722. value: "ROOT.war"
  723. - name: SSO_REALM
  724. value: "${SSO_REALM}"
  725. - name: SSO_SECRET
  726. value: "${BUSINESS_CENTRAL_SSO_SECRET}"
  727. - name: SSO_CLIENT
  728. value: "${BUSINESS_CENTRAL_SSO_CLIENT}"
  729. - name: SSO_USERNAME
  730. value: "${SSO_USERNAME}"
  731. - name: SSO_PASSWORD
  732. value: "${SSO_PASSWORD}"
  733. - name: SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
  734. value: "${SSO_DISABLE_SSL_CERTIFICATE_VALIDATION}"
  735. - name: HOSTNAME_HTTP
  736. value: "${BUSINESS_CENTRAL_HOSTNAME_HTTP}"
  737. - name: HOSTNAME_HTTPS
  738. value: "${BUSINESS_CENTRAL_HOSTNAME_HTTPS}"
  739. volumes:
  740. - name: businesscentral-keystore-volume
  741. secret:
  742. secretName: "${BUSINESS_CENTRAL_HTTPS_SECRET}"
  743. - name: "${APPLICATION_NAME}-rhpamcentr-pvol"
  744. persistentVolumeClaim:
  745. claimName: "${APPLICATION_NAME}-rhpamcentr-claim"
  746. - kind: DeploymentConfig
  747. apiVersion: v1
  748. metadata:
  749. name: ${APPLICATION_NAME}-smartrouter
  750. labels:
  751. application: "${APPLICATION_NAME}"
  752. service: "${APPLICATION_NAME}-smartrouter"
  753. spec:
  754. strategy:
  755. type: Recreate
  756. triggers:
  757. - type: ImageChange
  758. imageChangeParams:
  759. automatic: true
  760. containerNames:
  761. - "${APPLICATION_NAME}-smartrouter"
  762. from:
  763. kind: ImageStreamTag
  764. namespace: "${IMAGE_STREAM_NAMESPACE}"
  765. name: "rhpam70-smartrouter-openshift:${IMAGE_STREAM_TAG}"
  766. - type: ConfigChange
  767. replicas: 1
  768. selector:
  769. deploymentConfig: "${APPLICATION_NAME}-smartrouter"
  770. template:
  771. metadata:
  772. name: "${APPLICATION_NAME}-smartrouter"
  773. labels:
  774. application: "${APPLICATION_NAME}"
  775. deploymentConfig: "${APPLICATION_NAME}-smartrouter"
  776. service: "${APPLICATION_NAME}-smartrouter"
  777. spec:
  778. terminationGracePeriodSeconds: 60
  779. containers:
  780. - name: "${APPLICATION_NAME}-smartrouter"
  781. image: rhpam70-smartrouter-openshift
  782. imagePullPolicy: Always
  783. resources:
  784. limits:
  785. memory: "${SMART_ROUTER_MEMORY_LIMIT}"
  786. ports:
  787. - name: http
  788. containerPort: 9000
  789. protocol: TCP
  790. env:
  791. - name: KIE_SERVER_ROUTER_HOST
  792. valueFrom:
  793. fieldRef:
  794. fieldPath: status.podIP
  795. - name: KIE_SERVER_ROUTER_PORT
  796. value: "${KIE_SERVER_ROUTER_PORT}"
  797. - name: KIE_SERVER_ROUTER_URL_EXTERNAL
  798. value: "${KIE_SERVER_ROUTER_URL_EXTERNAL}"
  799. - name: KIE_SERVER_ROUTER_ID
  800. value: "${KIE_SERVER_ROUTER_ID}"
  801. - name: KIE_SERVER_ROUTER_NAME
  802. value: "${KIE_SERVER_ROUTER_NAME}"
  803. - name: KIE_SERVER_ROUTER_PROTOCOL
  804. value: "${KIE_SERVER_ROUTER_PROTOCOL}"
  805. - name: KIE_SERVER_CONTROLLER_USER
  806. value: "${KIE_SERVER_CONTROLLER_USER}"
  807. - name: KIE_SERVER_CONTROLLER_PWD
  808. value: "${KIE_SERVER_CONTROLLER_PWD}"
  809. - name: KIE_SERVER_CONTROLLER_SERVICE
  810. value: "${APPLICATION_NAME}-rhpamcentrmon"
  811. - name: KIE_SERVER_ROUTER_REPO
  812. value: "/opt/rhpam-smartrouter/data"
  813. - name: KIE_SERVER_ROUTER_CONFIG_WATCHER_ENABLED
  814. value: "true"
  815. volumeMounts:
  816. - name: "${APPLICATION_NAME}-smartrouter"
  817. mountPath: "/opt/rhpam-smartrouter/data"
  818. volumes:
  819. - name: "${APPLICATION_NAME}-smartrouter"
  820. persistentVolumeClaim:
  821. claimName: "${APPLICATION_NAME}-smartrouter-claim"
  822. ## KIE server deployment config 1 BEGIN
  823. - kind: DeploymentConfig
  824. apiVersion: v1
  825. metadata:
  826. name: "${APPLICATION_NAME}-kieserver-1"
  827. labels:
  828. application: "${APPLICATION_NAME}"
  829. service: "${APPLICATION_NAME}-kieserver-1"
  830. spec:
  831. strategy:
  832. type: Recreate
  833. triggers:
  834. - type: ImageChange
  835. imageChangeParams:
  836. automatic: true
  837. containerNames:
  838. - "${APPLICATION_NAME}-kieserver-1"
  839. from:
  840. kind: ImageStreamTag
  841. namespace: "${IMAGE_STREAM_NAMESPACE}"
  842. name: "rhpam70-kieserver-openshift:${IMAGE_STREAM_TAG}"
  843. - type: ConfigChange
  844. replicas: 1
  845. selector:
  846. deploymentConfig: "${APPLICATION_NAME}-kieserver-1"
  847. template:
  848. metadata:
  849. name: "${APPLICATION_NAME}-kieserver-1"
  850. labels:
  851. deploymentConfig: "${APPLICATION_NAME}-kieserver-1"
  852. application: "${APPLICATION_NAME}"
  853. service: "${APPLICATION_NAME}-kieserver-1"
  854. spec:
  855. terminationGracePeriodSeconds: 60
  856. containers:
  857. - name: "${APPLICATION_NAME}-kieserver-1"
  858. image: rhpam70-kieserver-openshift
  859. imagePullPolicy: Always
  860. resources:
  861. limits:
  862. memory: "${EXECUTION_SERVER_MEMORY_LIMIT}"
  863. volumeMounts:
  864. - name: kieserver-keystore-volume
  865. mountPath: "/etc/kieserver-secret-volume"
  866. readOnly: true
  867. livenessProbe:
  868. exec:
  869. command:
  870. - "/bin/bash"
  871. - "-c"
  872. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/healthcheck"
  873. initialDelaySeconds: 180
  874. timeoutSeconds: 2
  875. periodSeconds: 15
  876. failureThreshold: 3
  877. readinessProbe:
  878. exec:
  879. command:
  880. - "/bin/bash"
  881. - "-c"
  882. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/readycheck"
  883. initialDelaySeconds: 60
  884. timeoutSeconds: 2
  885. periodSeconds: 30
  886. failureThreshold: 6
  887. ports:
  888. - name: jolokia
  889. containerPort: 8778
  890. protocol: TCP
  891. - name: http
  892. containerPort: 8080
  893. protocol: TCP
  894. - name: https
  895. containerPort: 8443
  896. protocol: TCP
  897. - name: ping
  898. containerPort: 8888
  899. protocol: TCP
  900. env:
  901. - name: DROOLS_SERVER_FILTER_CLASSES
  902. value: "${DROOLS_SERVER_FILTER_CLASSES}"
  903. - name: KIE_ADMIN_USER
  904. value: "${KIE_ADMIN_USER}"
  905. - name: KIE_ADMIN_PWD
  906. value: "${KIE_ADMIN_PWD}"
  907. - name: KIE_MBEANS
  908. value: "${KIE_MBEANS}"
  909. - name: KIE_SERVER_BYPASS_AUTH_USER
  910. value: "${KIE_SERVER_BYPASS_AUTH_USER}"
  911. - name: KIE_SERVER_CONTROLLER_USER
  912. value: "${KIE_SERVER_CONTROLLER_USER}"
  913. - name: KIE_SERVER_CONTROLLER_PWD
  914. value: "${KIE_SERVER_CONTROLLER_PWD}"
  915. - name: KIE_SERVER_CONTROLLER_SERVICE
  916. value: "${APPLICATION_NAME}-rhpamcentrmon"
  917. - name: KIE_SERVER_ID
  918. value: "kie-server-1"
  919. - name: KIE_SERVER_HOST
  920. valueFrom:
  921. fieldRef:
  922. fieldPath: status.podIP
  923. - name: KIE_SERVER_USER
  924. value: "${KIE_SERVER_USER}"
  925. - name: KIE_SERVER_PWD
  926. value: "${KIE_SERVER_PWD}"
  927. - name: KIE_SERVER_CONTAINER_DEPLOYMENT
  928. value: ""
  929. - name: MAVEN_REPO_URL
  930. value: "${MAVEN_REPO_URL}"
  931. - name: MAVEN_REPO_USERNAME
  932. value: "${MAVEN_REPO_USERNAME}"
  933. - name: MAVEN_REPO_PASSWORD
  934. value: "${MAVEN_REPO_PASSWORD}"
  935. - name: KIE_SERVER_ROUTER_SERVICE
  936. value: "${APPLICATION_NAME}-smartrouter"
  937. - name: KIE_SERVER_ROUTER_PORT
  938. value: "${KIE_SERVER_ROUTER_PORT}"
  939. - name: KIE_SERVER_ROUTER_PROTOCOL
  940. value: "${KIE_SERVER_ROUTER_PROTOCOL}"
  941. - name: KIE_SERVER_PERSISTENCE_DS
  942. value: "${KIE_SERVER_PERSISTENCE_DS}"
  943. - name: DATASOURCES
  944. value: "RHPAM"
  945. - name: RHPAM_DATABASE
  946. value: "${KIE_SERVER_POSTGRESQL_DB}"
  947. - name: RHPAM_JNDI
  948. value: "${KIE_SERVER_PERSISTENCE_DS}"
  949. - name: RHPAM_JTA
  950. value: "true"
  951. - name: RHPAM_TX_ISOLATION
  952. value: "TRANSACTION_READ_UNCOMMITTED"
  953. ## PostgreSQL driver settings 1 BEGIN
  954. - name: RHPAM_DRIVER
  955. value: "postgresql"
  956. - name: RHPAM_USERNAME
  957. value: "${KIE_SERVER_POSTGRESQL_USER}"
  958. - name: RHPAM_PASSWORD
  959. value: "${KIE_SERVER_POSTGRESQL_PWD}"
  960. - name: RHPAM_SERVICE_HOST
  961. value: "${APPLICATION_NAME}-postgresql-1"
  962. - name: RHPAM_SERVICE_PORT
  963. value: "5432"
  964. - name: TIMER_SERVICE_DATA_STORE
  965. value: "${APPLICATION_NAME}-postgresql-1"
  966. - name: KIE_SERVER_PERSISTENCE_DIALECT
  967. value: "org.hibernate.dialect.PostgreSQLDialect"
  968. ## PostgreSQL driver settings 1 END
  969. - name: TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL
  970. value: "${TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL}"
  971. - name: HTTPS_KEYSTORE_DIR
  972. value: "/etc/kieserver-secret-volume"
  973. - name: HTTPS_KEYSTORE
  974. value: "${KIE_SERVER_HTTPS_KEYSTORE}"
  975. - name: HTTPS_NAME
  976. value: "${KIE_SERVER_HTTPS_NAME}"
  977. - name: HTTPS_PASSWORD
  978. value: "${KIE_SERVER_HTTPS_PASSWORD}"
  979. - name: JGROUPS_PING_PROTOCOL
  980. value: "openshift.DNS_PING"
  981. - name: OPENSHIFT_DNS_PING_SERVICE_NAME
  982. value: "${APPLICATION_NAME}-kieserver-1-ping"
  983. - name: OPENSHIFT_DNS_PING_SERVICE_PORT
  984. value: "8888"
  985. - name: SSO_URL
  986. value: "${SSO_URL}"
  987. - name: SSO_OPENIDCONNECT_DEPLOYMENTS
  988. value: "ROOT.war"
  989. - name: SSO_REALM
  990. value: "${SSO_REALM}"
  991. - name: SSO_SECRET
  992. value: "${KIE_SERVER1_SSO_SECRET}"
  993. - name: SSO_CLIENT
  994. value: "${KIE_SERVER1_SSO_CLIENT}"
  995. - name: SSO_USERNAME
  996. value: "${SSO_USERNAME}"
  997. - name: SSO_PASSWORD
  998. value: "${SSO_PASSWORD}"
  999. - name: SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
  1000. value: "${SSO_DISABLE_SSL_CERTIFICATE_VALIDATION}"
  1001. - name: HOSTNAME_HTTP
  1002. value: "${EXECUTION_SERVER1_HOSTNAME_HTTP}"
  1003. - name: HOSTNAME_HTTPS
  1004. value: "${EXECUTION_SERVER1_HOSTNAME_HTTPS}"
  1005. volumes:
  1006. - name: kieserver-keystore-volume
  1007. secret:
  1008. secretName: "${KIE_SERVER_HTTPS_SECRET}"
  1009. ## KIE server deployment config 1 END
  1010. ## PostgreSQL deployment config 1 BEGIN
  1011. - kind: DeploymentConfig
  1012. apiVersion: v1
  1013. metadata:
  1014. name: "${APPLICATION_NAME}-postgresql-1"
  1015. labels:
  1016. application: "${APPLICATION_NAME}"
  1017. service: "${APPLICATION_NAME}-postgresql-1"
  1018. spec:
  1019. strategy:
  1020. type: Recreate
  1021. triggers:
  1022. - type: ImageChange
  1023. imageChangeParams:
  1024. automatic: true
  1025. containerNames:
  1026. - "${APPLICATION_NAME}-postgresql-1"
  1027. from:
  1028. kind: ImageStreamTag
  1029. namespace: "${IMAGE_STREAM_NAMESPACE}"
  1030. name: "postgresql:${POSTGRESQL_IMAGE_STREAM_TAG}"
  1031. - type: ConfigChange
  1032. replicas: 1
  1033. selector:
  1034. deploymentConfig: "${APPLICATION_NAME}-postgresql-1"
  1035. template:
  1036. metadata:
  1037. name: "${APPLICATION_NAME}-postgresql-1"
  1038. labels:
  1039. deploymentConfig: "${APPLICATION_NAME}-postgresql-1"
  1040. application: "${APPLICATION_NAME}"
  1041. service: "${APPLICATION_NAME}-postgresql-1"
  1042. spec:
  1043. terminationGracePeriodSeconds: 60
  1044. containers:
  1045. - name: "${APPLICATION_NAME}-postgresql-1"
  1046. image: postgresql
  1047. imagePullPolicy: Always
  1048. ports:
  1049. - containerPort: 5432
  1050. protocol: TCP
  1051. volumeMounts:
  1052. - mountPath: "/var/lib/postgresql/data"
  1053. name: "${APPLICATION_NAME}-postgresql-pvol"
  1054. env:
  1055. - name: POSTGRESQL_USER
  1056. value: "${KIE_SERVER_POSTGRESQL_USER}"
  1057. - name: POSTGRESQL_PASSWORD
  1058. value: "${KIE_SERVER_POSTGRESQL_PWD}"
  1059. - name: POSTGRESQL_DATABASE
  1060. value: "${KIE_SERVER_POSTGRESQL_DB}"
  1061. - name: POSTGRESQL_MAX_PREPARED_TRANSACTIONS
  1062. value: "${POSTGRESQL_MAX_PREPARED_TRANSACTIONS}"
  1063. volumes:
  1064. - name: "${APPLICATION_NAME}-postgresql-pvol"
  1065. persistentVolumeClaim:
  1066. claimName: "${APPLICATION_NAME}-postgresql-claim-1"
  1067. ## PostgreSQL deployment config 1 END
  1068. ## KIE server deployment config 2 BEGIN
  1069. - kind: DeploymentConfig
  1070. apiVersion: v1
  1071. metadata:
  1072. name: "${APPLICATION_NAME}-kieserver-2"
  1073. labels:
  1074. application: "${APPLICATION_NAME}"
  1075. service: "${APPLICATION_NAME}-kieserver-2"
  1076. spec:
  1077. strategy:
  1078. type: Recreate
  1079. triggers:
  1080. - type: ImageChange
  1081. imageChangeParams:
  1082. automatic: true
  1083. containerNames:
  1084. - "${APPLICATION_NAME}-kieserver-2"
  1085. from:
  1086. kind: ImageStreamTag
  1087. namespace: "${IMAGE_STREAM_NAMESPACE}"
  1088. name: "rhpam70-kieserver-openshift:${IMAGE_STREAM_TAG}"
  1089. - type: ConfigChange
  1090. replicas: 1
  1091. selector:
  1092. deploymentConfig: "${APPLICATION_NAME}-kieserver-2"
  1093. template:
  1094. metadata:
  1095. name: "${APPLICATION_NAME}-kieserver-2"
  1096. labels:
  1097. deploymentConfig: "${APPLICATION_NAME}-kieserver-2"
  1098. application: "${APPLICATION_NAME}"
  1099. service: "${APPLICATION_NAME}-kieserver-2"
  1100. spec:
  1101. terminationGracePeriodSeconds: 60
  1102. containers:
  1103. - name: "${APPLICATION_NAME}-kieserver-2"
  1104. image: rhpam70-kieserver-openshift
  1105. imagePullPolicy: Always
  1106. resources:
  1107. limits:
  1108. memory: "${EXECUTION_SERVER_MEMORY_LIMIT}"
  1109. volumeMounts:
  1110. - name: kieserver-keystore-volume
  1111. mountPath: "/etc/kieserver-secret-volume"
  1112. readOnly: true
  1113. livenessProbe:
  1114. exec:
  1115. command:
  1116. - "/bin/bash"
  1117. - "-c"
  1118. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/healthcheck"
  1119. initialDelaySeconds: 180
  1120. timeoutSeconds: 2
  1121. periodSeconds: 15
  1122. failureThreshold: 3
  1123. readinessProbe:
  1124. exec:
  1125. command:
  1126. - "/bin/bash"
  1127. - "-c"
  1128. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/readycheck"
  1129. initialDelaySeconds: 60
  1130. timeoutSeconds: 2
  1131. periodSeconds: 30
  1132. failureThreshold: 6
  1133. ports:
  1134. - name: jolokia
  1135. containerPort: 8778
  1136. protocol: TCP
  1137. - name: http
  1138. containerPort: 8080
  1139. protocol: TCP
  1140. - name: https
  1141. containerPort: 8443
  1142. protocol: TCP
  1143. - name: ping
  1144. containerPort: 8888
  1145. protocol: TCP
  1146. env:
  1147. - name: DROOLS_SERVER_FILTER_CLASSES
  1148. value: "${DROOLS_SERVER_FILTER_CLASSES}"
  1149. - name: KIE_ADMIN_USER
  1150. value: "${KIE_ADMIN_USER}"
  1151. - name: KIE_ADMIN_PWD
  1152. value: "${KIE_ADMIN_PWD}"
  1153. - name: KIE_MBEANS
  1154. value: "${KIE_MBEANS}"
  1155. - name: KIE_SERVER_BYPASS_AUTH_USER
  1156. value: "${KIE_SERVER_BYPASS_AUTH_USER}"
  1157. - name: KIE_SERVER_CONTROLLER_USER
  1158. value: "${KIE_SERVER_CONTROLLER_USER}"
  1159. - name: KIE_SERVER_CONTROLLER_PWD
  1160. value: "${KIE_SERVER_CONTROLLER_PWD}"
  1161. - name: KIE_SERVER_CONTROLLER_SERVICE
  1162. value: "${APPLICATION_NAME}-rhpamcentrmon"
  1163. - name: KIE_SERVER_ID
  1164. value: "kie-server-2"
  1165. - name: KIE_SERVER_HOST
  1166. valueFrom:
  1167. fieldRef:
  1168. fieldPath: status.podIP
  1169. - name: KIE_SERVER_USER
  1170. value: "${KIE_SERVER_USER}"
  1171. - name: KIE_SERVER_PWD
  1172. value: "${KIE_SERVER_PWD}"
  1173. - name: KIE_SERVER_CONTAINER_DEPLOYMENT
  1174. value: ""
  1175. - name: MAVEN_REPO_URL
  1176. value: "${MAVEN_REPO_URL}"
  1177. - name: MAVEN_REPO_USERNAME
  1178. value: "${MAVEN_REPO_USERNAME}"
  1179. - name: MAVEN_REPO_PASSWORD
  1180. value: "${MAVEN_REPO_PASSWORD}"
  1181. - name: KIE_SERVER_ROUTER_SERVICE
  1182. value: "${APPLICATION_NAME}-smartrouter"
  1183. - name: KIE_SERVER_ROUTER_PORT
  1184. value: "${KIE_SERVER_ROUTER_PORT}"
  1185. - name: KIE_SERVER_ROUTER_PROTOCOL
  1186. value: "${KIE_SERVER_ROUTER_PROTOCOL}"
  1187. - name: KIE_SERVER_PERSISTENCE_DS
  1188. value: "${KIE_SERVER_PERSISTENCE_DS}"
  1189. - name: DATASOURCES
  1190. value: "RHPAM"
  1191. - name: RHPAM_DATABASE
  1192. value: "${KIE_SERVER_POSTGRESQL_DB}"
  1193. - name: RHPAM_JNDI
  1194. value: "${KIE_SERVER_PERSISTENCE_DS}"
  1195. - name: RHPAM_JTA
  1196. value: "true"
  1197. - name: RHPAM_TX_ISOLATION
  1198. value: "TRANSACTION_READ_UNCOMMITTED"
  1199. ## PostgreSQL driver settings 2 BEGIN
  1200. - name: RHPAM_DRIVER
  1201. value: "postgresql"
  1202. - name: RHPAM_USERNAME
  1203. value: "${KIE_SERVER_POSTGRESQL_USER}"
  1204. - name: RHPAM_PASSWORD
  1205. value: "${KIE_SERVER_POSTGRESQL_PWD}"
  1206. - name: RHPAM_SERVICE_HOST
  1207. value: "${APPLICATION_NAME}-postgresql-2"
  1208. - name: RHPAM_SERVICE_PORT
  1209. value: "5432"
  1210. - name: TIMER_SERVICE_DATA_STORE
  1211. value: "${APPLICATION_NAME}-postgresql-2"
  1212. - name: KIE_SERVER_PERSISTENCE_DIALECT
  1213. value: "org.hibernate.dialect.PostgreSQLDialect"
  1214. ## PostgreSQL driver settings 2 END
  1215. - name: TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL
  1216. value: "${TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL}"
  1217. - name: HTTPS_KEYSTORE_DIR
  1218. value: "/etc/kieserver-secret-volume"
  1219. - name: HTTPS_KEYSTORE
  1220. value: "${KIE_SERVER_HTTPS_KEYSTORE}"
  1221. - name: HTTPS_NAME
  1222. value: "${KIE_SERVER_HTTPS_NAME}"
  1223. - name: HTTPS_PASSWORD
  1224. value: "${KIE_SERVER_HTTPS_PASSWORD}"
  1225. - name: JGROUPS_PING_PROTOCOL
  1226. value: "openshift.DNS_PING"
  1227. - name: OPENSHIFT_DNS_PING_SERVICE_NAME
  1228. value: "${APPLICATION_NAME}-kieserver-2-ping"
  1229. - name: OPENSHIFT_DNS_PING_SERVICE_PORT
  1230. value: "8888"
  1231. - name: SSO_URL
  1232. value: "${SSO_URL}"
  1233. - name: SSO_OPENIDCONNECT_DEPLOYMENTS
  1234. value: "ROOT.war"
  1235. - name: SSO_REALM
  1236. value: "${SSO_REALM}"
  1237. - name: SSO_SECRET
  1238. value: "${KIE_SERVER2_SSO_SECRET}"
  1239. - name: SSO_CLIENT
  1240. value: "${KIE_SERVER2_SSO_CLIENT}"
  1241. - name: SSO_USERNAME
  1242. value: "${SSO_USERNAME}"
  1243. - name: SSO_PASSWORD
  1244. value: "${SSO_PASSWORD}"
  1245. - name: SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
  1246. value: "${SSO_DISABLE_SSL_CERTIFICATE_VALIDATION}"
  1247. - name: HOSTNAME_HTTP
  1248. value: "${EXECUTION_SERVER2_HOSTNAME_HTTP}"
  1249. - name: HOSTNAME_HTTPS
  1250. value: "${EXECUTION_SERVER2_HOSTNAME_HTTPS}"
  1251. volumes:
  1252. - name: kieserver-keystore-volume
  1253. secret:
  1254. secretName: "${KIE_SERVER_HTTPS_SECRET}"
  1255. ## KIE server deployment config 2 END
  1256. ## PostgreSQL deployment config 2 BEGIN
  1257. - kind: DeploymentConfig
  1258. apiVersion: v1
  1259. metadata:
  1260. name: "${APPLICATION_NAME}-postgresql-2"
  1261. labels:
  1262. application: "${APPLICATION_NAME}"
  1263. service: "${APPLICATION_NAME}-postgresql-2"
  1264. spec:
  1265. strategy:
  1266. type: Recreate
  1267. triggers:
  1268. - type: ImageChange
  1269. imageChangeParams:
  1270. automatic: true
  1271. containerNames:
  1272. - "${APPLICATION_NAME}-postgresql-2"
  1273. from:
  1274. kind: ImageStreamTag
  1275. namespace: "${IMAGE_STREAM_NAMESPACE}"
  1276. name: "postgresql:${POSTGRESQL_IMAGE_STREAM_TAG}"
  1277. - type: ConfigChange
  1278. replicas: 1
  1279. selector:
  1280. deploymentConfig: "${APPLICATION_NAME}-postgresql-2"
  1281. template:
  1282. metadata:
  1283. name: "${APPLICATION_NAME}-postgresql-2"
  1284. labels:
  1285. deploymentConfig: "${APPLICATION_NAME}-postgresql-2"
  1286. application: "${APPLICATION_NAME}"
  1287. service: "${APPLICATION_NAME}-postgresql-2"
  1288. spec:
  1289. terminationGracePeriodSeconds: 60
  1290. containers:
  1291. - name: "${APPLICATION_NAME}-postgresql-2"
  1292. image: postgresql
  1293. imagePullPolicy: Always
  1294. ports:
  1295. - containerPort: 5432
  1296. protocol: TCP
  1297. volumeMounts:
  1298. - mountPath: "/var/lib/postgresql/data"
  1299. name: "${APPLICATION_NAME}-postgresql-pvol"
  1300. env:
  1301. - name: POSTGRESQL_USER
  1302. value: "${KIE_SERVER_POSTGRESQL_USER}"
  1303. - name: POSTGRESQL_PASSWORD
  1304. value: "${KIE_SERVER_POSTGRESQL_PWD}"
  1305. - name: POSTGRESQL_DATABASE
  1306. value: "${KIE_SERVER_POSTGRESQL_DB}"
  1307. - name: POSTGRESQL_MAX_PREPARED_TRANSACTIONS
  1308. value: "${POSTGRESQL_MAX_PREPARED_TRANSACTIONS}"
  1309. volumes:
  1310. - name: "${APPLICATION_NAME}-postgresql-pvol"
  1311. persistentVolumeClaim:
  1312. claimName: "${APPLICATION_NAME}-postgresql-claim-2"
  1313. ## PostgreSQL deployment config 2 END
  1314. ## PostgreSQL persistent volume claim 1 BEGIN
  1315. - apiVersion: v1
  1316. kind: PersistentVolumeClaim
  1317. metadata:
  1318. name: "${APPLICATION_NAME}-postgresql-claim-1"
  1319. labels:
  1320. application: "${APPLICATION_NAME}"
  1321. service: "${APPLICATION_NAME}-postgresql-1"
  1322. spec:
  1323. accessModes:
  1324. - ReadWriteOnce
  1325. resources:
  1326. requests:
  1327. storage: "${DB_VOLUME_CAPACITY}"
  1328. ## PostgreSQL persistent volume claim 1 END
  1329. ## PostgreSQL persistent volume claim 2 BEGIN
  1330. - apiVersion: v1
  1331. kind: PersistentVolumeClaim
  1332. metadata:
  1333. name: "${APPLICATION_NAME}-postgresql-claim-2"
  1334. labels:
  1335. application: "${APPLICATION_NAME}"
  1336. service: "${APPLICATION_NAME}-postgresql-2"
  1337. spec:
  1338. accessModes:
  1339. - ReadWriteOnce
  1340. resources:
  1341. requests:
  1342. storage: "${DB_VOLUME_CAPACITY}"
  1343. ## PostgreSQL persistent volume claim 2 END
  1344. - apiVersion: v1
  1345. kind: PersistentVolumeClaim
  1346. metadata:
  1347. name: "${APPLICATION_NAME}-smartrouter-claim"
  1348. labels:
  1349. application: "${APPLICATION_NAME}"
  1350. service: "${APPLICATION_NAME}-smartrouter"
  1351. spec:
  1352. accessModes:
  1353. - ReadWriteOnce
  1354. resources:
  1355. requests:
  1356. storage: "64Mi"
  1357. - apiVersion: v1
  1358. kind: PersistentVolumeClaim
  1359. metadata:
  1360. name: "${APPLICATION_NAME}-rhpamcentr-claim"
  1361. labels:
  1362. application: "${APPLICATION_NAME}"
  1363. service: "${APPLICATION_NAME}-rhpamcentrmon"
  1364. spec:
  1365. accessModes:
  1366. - ReadWriteOnce
  1367. resources:
  1368. requests:
  1369. storage: "64Mi"