rhpam70-prod.yaml 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374
  1. ---
  2. kind: Template
  3. apiVersion: v1
  4. metadata:
  5. annotations:
  6. description: Application template for a managed HA production runtime 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 production environment
  11. name: rhpam70-prod
  12. labels:
  13. template: rhpam70-prod
  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, if required.
  29. name: MAVEN_REPO_USERNAME
  30. required: true
  31. - displayName: Maven repository password
  32. description: Password to access the Maven repository, if required.
  33. name: MAVEN_REPO_PASSWORD
  34. required: true
  35. - displayName: EAP Admin User
  36. description: EAP administrator username
  37. name: ADMIN_USERNAME
  38. value: eapadmin
  39. required: false
  40. - displayName: EAP Admin Password
  41. description: EAP administrator password
  42. name: ADMIN_PASSWORD
  43. from: "[a-zA-Z]{6}[0-9]{1}!"
  44. generate: expression
  45. required: false
  46. - displayName: KIE Admin User
  47. description: KIE administrator username
  48. name: KIE_ADMIN_USER
  49. value: adminUser
  50. required: false
  51. - displayName: KIE Admin Password
  52. description: KIE administrator password
  53. name: KIE_ADMIN_PWD
  54. from: "[a-zA-Z]{6}[0-9]{1}!"
  55. generate: expression
  56. required: false
  57. - displayName: KIE Server 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 END
  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. ## KIE server routes 2 BEGIN
  586. - kind: Route
  587. apiVersion: v1
  588. id: "${APPLICATION_NAME}-smartrouter-http"
  589. metadata:
  590. name: "${APPLICATION_NAME}-smartrouter"
  591. labels:
  592. application: "${APPLICATION_NAME}"
  593. service: "${APPLICATION_NAME}-smartrouter"
  594. annotations:
  595. description: Route for Smart Router's http service.
  596. spec:
  597. host: "${SMART_ROUTER_HOSTNAME_HTTP}"
  598. to:
  599. name: "${APPLICATION_NAME}-smartrouter"
  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 for Business Central Monitoring
  622. replicas: 3
  623. selector:
  624. deploymentConfig: "${APPLICATION_NAME}-rhpamcentrmon"
  625. template:
  626. metadata:
  627. name: "${APPLICATION_NAME}-rhpamcentrmon"
  628. labels:
  629. deploymentConfig: "${APPLICATION_NAME}-rhpamcentrmon"
  630. application: "${APPLICATION_NAME}"
  631. service: "${APPLICATION_NAME}-rhpamcentrmon"
  632. spec:
  633. terminationGracePeriodSeconds: 60
  634. containers:
  635. - name: "${APPLICATION_NAME}-rhpamcentrmon"
  636. image: rhpam70-businesscentral-monitoring-openshift
  637. imagePullPolicy: Always
  638. resources:
  639. limits:
  640. memory: "${BUSINESS_CENTRAL_MEMORY_LIMIT}"
  641. volumeMounts:
  642. - name: businesscentral-keystore-volume
  643. mountPath: "/etc/businesscentral-secret-volume"
  644. readOnly: true
  645. - name: "${APPLICATION_NAME}-rhpamcentr-pvol"
  646. mountPath: "/opt/eap/standalone/data/bpmsuite"
  647. livenessProbe:
  648. exec:
  649. command:
  650. - "/bin/bash"
  651. - "-c"
  652. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/kie-wb.jsp"
  653. initialDelaySeconds: 180
  654. timeoutSeconds: 2
  655. periodSeconds: 15
  656. readinessProbe:
  657. exec:
  658. command:
  659. - "/bin/bash"
  660. - "-c"
  661. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/kie-wb.jsp"
  662. initialDelaySeconds: 60
  663. timeoutSeconds: 2
  664. periodSeconds: 30
  665. failureThreshold: 6
  666. ports:
  667. - name: jolokia
  668. containerPort: 8778
  669. protocol: TCP
  670. - name: http
  671. containerPort: 8080
  672. protocol: TCP
  673. - name: https
  674. containerPort: 8443
  675. protocol: TCP
  676. - name: ping
  677. containerPort: 8888
  678. protocol: TCP
  679. env:
  680. - name: KIE_ADMIN_PWD
  681. value: "${KIE_ADMIN_PWD}"
  682. - name: KIE_ADMIN_USER
  683. value: "${KIE_ADMIN_USER}"
  684. - name: KIE_SERVER_PWD
  685. value: "${KIE_SERVER_PWD}"
  686. - name: KIE_SERVER_USER
  687. value: "${KIE_SERVER_USER}"
  688. - name: MAVEN_REPO_URL
  689. value: "${MAVEN_REPO_URL}"
  690. - name: MAVEN_REPO_USERNAME
  691. value: "${MAVEN_REPO_USERNAME}"
  692. - name: MAVEN_REPO_PASSWORD
  693. value: "${MAVEN_REPO_PASSWORD}"
  694. - name: ADMIN_USERNAME
  695. value: "${ADMIN_USERNAME}"
  696. - name: ADMIN_PASSWORD
  697. value: "${ADMIN_PASSWORD}"
  698. - name: KIE_SERVER_CONTROLLER_PWD
  699. value: ${KIE_SERVER_CONTROLLER_PWD}
  700. - name: KIE_SERVER_CONTROLLER_USER
  701. value: ${KIE_SERVER_CONTROLLER_USER}
  702. - name: PROBE_IMPL
  703. value: probe.eap.jolokia.EapProbe
  704. - name: PROBE_DISABLE_BOOT_ERRORS_CHECK
  705. value: 'true'
  706. - name: HTTPS_KEYSTORE_DIR
  707. value: "/etc/businesscentral-secret-volume"
  708. - name: HTTPS_KEYSTORE
  709. value: "${BUSINESS_CENTRAL_HTTPS_KEYSTORE}"
  710. - name: HTTPS_NAME
  711. value: "${BUSINESS_CENTRAL_HTTPS_NAME}"
  712. - name: HTTPS_PASSWORD
  713. value: "${BUSINESS_CENTRAL_HTTPS_PASSWORD}"
  714. - name: JGROUPS_PING_PROTOCOL
  715. value: "openshift.DNS_PING"
  716. - name: OPENSHIFT_DNS_PING_SERVICE_NAME
  717. value: "${APPLICATION_NAME}-rhpamcentrmon-ping"
  718. - name: OPENSHIFT_DNS_PING_SERVICE_PORT
  719. value: "8888"
  720. - name: SSO_URL
  721. value: "${SSO_URL}"
  722. - name: SSO_OPENIDCONNECT_DEPLOYMENTS
  723. value: "ROOT.war"
  724. - name: SSO_REALM
  725. value: "${SSO_REALM}"
  726. - name: SSO_SECRET
  727. value: "${BUSINESS_CENTRAL_SSO_SECRET}"
  728. - name: SSO_CLIENT
  729. value: "${BUSINESS_CENTRAL_SSO_CLIENT}"
  730. - name: SSO_USERNAME
  731. value: "${SSO_USERNAME}"
  732. - name: SSO_PASSWORD
  733. value: "${SSO_PASSWORD}"
  734. - name: SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
  735. value: "${SSO_DISABLE_SSL_CERTIFICATE_VALIDATION}"
  736. - name: HOSTNAME_HTTP
  737. value: "${BUSINESS_CENTRAL_HOSTNAME_HTTP}"
  738. - name: HOSTNAME_HTTPS
  739. value: "${BUSINESS_CENTRAL_HOSTNAME_HTTPS}"
  740. volumes:
  741. - name: businesscentral-keystore-volume
  742. secret:
  743. secretName: "${BUSINESS_CENTRAL_HTTPS_SECRET}"
  744. - name: "${APPLICATION_NAME}-rhpamcentr-pvol"
  745. persistentVolumeClaim:
  746. claimName: "${APPLICATION_NAME}-rhpamcentr-claim"
  747. - kind: DeploymentConfig
  748. apiVersion: v1
  749. metadata:
  750. name: ${APPLICATION_NAME}-smartrouter
  751. labels:
  752. application: "${APPLICATION_NAME}"
  753. service: "${APPLICATION_NAME}-smartrouter"
  754. spec:
  755. strategy:
  756. type: Recreate
  757. triggers:
  758. - type: ImageChange
  759. imageChangeParams:
  760. automatic: true
  761. containerNames:
  762. - "${APPLICATION_NAME}-smartrouter"
  763. from:
  764. kind: ImageStreamTag
  765. namespace: "${IMAGE_STREAM_NAMESPACE}"
  766. name: "rhpam70-smartrouter-openshift:${IMAGE_STREAM_TAG}"
  767. - type: ConfigChange
  768. replicas: 2
  769. selector:
  770. deploymentConfig: "${APPLICATION_NAME}-smartrouter"
  771. template:
  772. metadata:
  773. name: "${APPLICATION_NAME}-smartrouter"
  774. labels:
  775. application: "${APPLICATION_NAME}"
  776. deploymentConfig: "${APPLICATION_NAME}-smartrouter"
  777. service: "${APPLICATION_NAME}-smartrouter"
  778. spec:
  779. terminationGracePeriodSeconds: 60
  780. containers:
  781. - name: "${APPLICATION_NAME}-smartrouter"
  782. image: rhpam70-smartrouter-openshift
  783. imagePullPolicy: Always
  784. resources:
  785. limits:
  786. memory: "${SMART_ROUTER_MEMORY_LIMIT}"
  787. ports:
  788. - name: http
  789. containerPort: 9000
  790. protocol: TCP
  791. env:
  792. - name: KIE_SERVER_ROUTER_HOST
  793. valueFrom:
  794. fieldRef:
  795. fieldPath: status.podIP
  796. - name: KIE_SERVER_ROUTER_PORT
  797. value: "${KIE_SERVER_ROUTER_PORT}"
  798. - name: KIE_SERVER_ROUTER_URL_EXTERNAL
  799. value: "${KIE_SERVER_ROUTER_URL_EXTERNAL}"
  800. - name: KIE_SERVER_ROUTER_ID
  801. value: "${KIE_SERVER_ROUTER_ID}"
  802. - name: KIE_SERVER_ROUTER_NAME
  803. value: "${KIE_SERVER_ROUTER_NAME}"
  804. - name: KIE_SERVER_ROUTER_PROTOCOL
  805. value: "${KIE_SERVER_ROUTER_PROTOCOL}"
  806. - name: KIE_SERVER_CONTROLLER_USER
  807. value: "${KIE_SERVER_CONTROLLER_USER}"
  808. - name: KIE_SERVER_CONTROLLER_PWD
  809. value: "${KIE_SERVER_CONTROLLER_PWD}"
  810. - name: KIE_SERVER_CONTROLLER_SERVICE
  811. value: "${APPLICATION_NAME}-rhpamcentrmon"
  812. - name: KIE_SERVER_ROUTER_REPO
  813. value: "/opt/rhpam-smartrouter/data"
  814. - name: KIE_SERVER_ROUTER_CONFIG_WATCHER_ENABLED
  815. value: "true"
  816. volumeMounts:
  817. - name: "${APPLICATION_NAME}-smartrouter"
  818. mountPath: "/opt/rhpam-smartrouter/data"
  819. volumes:
  820. - name: "${APPLICATION_NAME}-smartrouter"
  821. persistentVolumeClaim:
  822. claimName: "${APPLICATION_NAME}-smartrouter-claim"
  823. ## KIE server deployment config 1 BEGIN
  824. - kind: DeploymentConfig
  825. apiVersion: v1
  826. metadata:
  827. name: "${APPLICATION_NAME}-kieserver-1"
  828. labels:
  829. application: "${APPLICATION_NAME}"
  830. service: "${APPLICATION_NAME}-kieserver-1"
  831. spec:
  832. strategy:
  833. type: Recreate
  834. triggers:
  835. - type: ImageChange
  836. imageChangeParams:
  837. automatic: true
  838. containerNames:
  839. - "${APPLICATION_NAME}-kieserver-1"
  840. from:
  841. kind: ImageStreamTag
  842. namespace: "${IMAGE_STREAM_NAMESPACE}"
  843. name: "rhpam70-kieserver-openshift:${IMAGE_STREAM_TAG}"
  844. - type: ConfigChange
  845. replicas: 3
  846. selector:
  847. deploymentConfig: "${APPLICATION_NAME}-kieserver-1"
  848. template:
  849. metadata:
  850. name: "${APPLICATION_NAME}-kieserver-1"
  851. labels:
  852. deploymentConfig: "${APPLICATION_NAME}-kieserver-1"
  853. application: "${APPLICATION_NAME}"
  854. service: "${APPLICATION_NAME}-kieserver-1"
  855. spec:
  856. terminationGracePeriodSeconds: 60
  857. containers:
  858. - name: "${APPLICATION_NAME}-kieserver-1"
  859. image: rhpam70-kieserver-openshift
  860. imagePullPolicy: Always
  861. resources:
  862. limits:
  863. memory: "${EXECUTION_SERVER_MEMORY_LIMIT}"
  864. volumeMounts:
  865. - name: kieserver-keystore-volume
  866. mountPath: "/etc/kieserver-secret-volume"
  867. readOnly: true
  868. livenessProbe:
  869. exec:
  870. command:
  871. - "/bin/bash"
  872. - "-c"
  873. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/healthcheck"
  874. initialDelaySeconds: 180
  875. timeoutSeconds: 2
  876. periodSeconds: 15
  877. failureThreshold: 3
  878. readinessProbe:
  879. exec:
  880. command:
  881. - "/bin/bash"
  882. - "-c"
  883. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/readycheck"
  884. initialDelaySeconds: 60
  885. timeoutSeconds: 2
  886. periodSeconds: 30
  887. failureThreshold: 6
  888. ports:
  889. - name: jolokia
  890. containerPort: 8778
  891. protocol: TCP
  892. - name: http
  893. containerPort: 8080
  894. protocol: TCP
  895. - name: https
  896. containerPort: 8443
  897. protocol: TCP
  898. - name: ping
  899. containerPort: 8888
  900. protocol: TCP
  901. env:
  902. - name: DROOLS_SERVER_FILTER_CLASSES
  903. value: "${DROOLS_SERVER_FILTER_CLASSES}"
  904. - name: KIE_ADMIN_USER
  905. value: "${KIE_ADMIN_USER}"
  906. - name: KIE_ADMIN_PWD
  907. value: "${KIE_ADMIN_PWD}"
  908. - name: KIE_MBEANS
  909. value: "${KIE_MBEANS}"
  910. - name: KIE_SERVER_BYPASS_AUTH_USER
  911. value: "${KIE_SERVER_BYPASS_AUTH_USER}"
  912. - name: KIE_SERVER_CONTROLLER_USER
  913. value: "${KIE_SERVER_CONTROLLER_USER}"
  914. - name: KIE_SERVER_CONTROLLER_PWD
  915. value: "${KIE_SERVER_CONTROLLER_PWD}"
  916. - name: KIE_SERVER_CONTROLLER_SERVICE
  917. value: "${APPLICATION_NAME}-rhpamcentrmon"
  918. - name: KIE_SERVER_ID
  919. value: "kie-server-1"
  920. - name: KIE_SERVER_HOST
  921. valueFrom:
  922. fieldRef:
  923. fieldPath: status.podIP
  924. - name: KIE_SERVER_USER
  925. value: "${KIE_SERVER_USER}"
  926. - name: KIE_SERVER_PWD
  927. value: "${KIE_SERVER_PWD}"
  928. - name: KIE_SERVER_CONTAINER_DEPLOYMENT
  929. value: ""
  930. - name: MAVEN_REPO_URL
  931. value: "${MAVEN_REPO_URL}"
  932. - name: MAVEN_REPO_USERNAME
  933. value: "${MAVEN_REPO_USERNAME}"
  934. - name: MAVEN_REPO_PASSWORD
  935. value: "${MAVEN_REPO_PASSWORD}"
  936. - name: MAVEN_REPO_PATH
  937. value: "/maven2/"
  938. - name: KIE_SERVER_ROUTER_SERVICE
  939. value: "${APPLICATION_NAME}-smartrouter"
  940. - name: KIE_SERVER_ROUTER_PORT
  941. value: "${KIE_SERVER_ROUTER_PORT}"
  942. - name: KIE_SERVER_ROUTER_PROTOCOL
  943. value: "${KIE_SERVER_ROUTER_PROTOCOL}"
  944. - name: KIE_SERVER_PERSISTENCE_DS
  945. value: "${KIE_SERVER_PERSISTENCE_DS}"
  946. - name: DATASOURCES
  947. value: "RHPAM"
  948. - name: RHPAM_JNDI
  949. value: "${KIE_SERVER_PERSISTENCE_DS}"
  950. - name: RHPAM_JTA
  951. value: "true"
  952. - name: RHPAM_TX_ISOLATION
  953. value: "TRANSACTION_READ_UNCOMMITTED"
  954. ## PostgreSQL driver settings 1 BEGIN
  955. - name: RHPAM_DATABASE
  956. value: "${KIE_SERVER_POSTGRESQL_DB}"
  957. - name: RHPAM_DRIVER
  958. value: "postgresql"
  959. - name: KIE_SERVER_PERSISTENCE_DIALECT
  960. value: "org.hibernate.dialect.PostgreSQLDialect"
  961. - name: RHPAM_USERNAME
  962. value: "${KIE_SERVER_POSTGRESQL_USER}"
  963. - name: RHPAM_PASSWORD
  964. value: "${KIE_SERVER_POSTGRESQL_PWD}"
  965. - name: RHPAM_SERVICE_HOST
  966. value: "${APPLICATION_NAME}-postgresql-1"
  967. - name: RHPAM_SERVICE_PORT
  968. value: "5432"
  969. - name: TIMER_SERVICE_DATA_STORE
  970. value: "${APPLICATION_NAME}-postgresql-1"
  971. ## PostgreSQL driver settings 1 END
  972. - name: TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL
  973. value: "${TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL}"
  974. - name: HTTPS_KEYSTORE_DIR
  975. value: "/etc/kieserver-secret-volume"
  976. - name: HTTPS_KEYSTORE
  977. value: "${KIE_SERVER_HTTPS_KEYSTORE}"
  978. - name: HTTPS_NAME
  979. value: "${KIE_SERVER_HTTPS_NAME}"
  980. - name: HTTPS_PASSWORD
  981. value: "${KIE_SERVER_HTTPS_PASSWORD}"
  982. - name: JGROUPS_PING_PROTOCOL
  983. value: "openshift.DNS_PING"
  984. - name: OPENSHIFT_DNS_PING_SERVICE_NAME
  985. value: "${APPLICATION_NAME}-kieserver-1-ping"
  986. - name: OPENSHIFT_DNS_PING_SERVICE_PORT
  987. value: "8888"
  988. - name: SSO_URL
  989. value: "${SSO_URL}"
  990. - name: SSO_OPENIDCONNECT_DEPLOYMENTS
  991. value: "ROOT.war"
  992. - name: SSO_REALM
  993. value: "${SSO_REALM}"
  994. - name: SSO_SECRET
  995. value: "${KIE_SERVER1_SSO_SECRET}"
  996. - name: SSO_CLIENT
  997. value: "${KIE_SERVER1_SSO_CLIENT}"
  998. - name: SSO_USERNAME
  999. value: "${SSO_USERNAME}"
  1000. - name: SSO_PASSWORD
  1001. value: "${SSO_PASSWORD}"
  1002. - name: SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
  1003. value: "${SSO_DISABLE_SSL_CERTIFICATE_VALIDATION}"
  1004. - name: HOSTNAME_HTTP
  1005. value: "${EXECUTION_SERVER1_HOSTNAME_HTTP}"
  1006. - name: HOSTNAME_HTTPS
  1007. value: "${EXECUTION_SERVER1_HOSTNAME_HTTPS}"
  1008. volumes:
  1009. - name: kieserver-keystore-volume
  1010. secret:
  1011. secretName: "${KIE_SERVER_HTTPS_SECRET}"
  1012. ## KIE server deployment config 1 END
  1013. ## PostgreSQL deployment config 1 BEGIN
  1014. - kind: DeploymentConfig
  1015. apiVersion: v1
  1016. metadata:
  1017. name: "${APPLICATION_NAME}-postgresql-1"
  1018. labels:
  1019. application: "${APPLICATION_NAME}"
  1020. service: "${APPLICATION_NAME}-postgresql-1"
  1021. spec:
  1022. strategy:
  1023. type: Recreate
  1024. triggers:
  1025. - type: ImageChange
  1026. imageChangeParams:
  1027. automatic: true
  1028. containerNames:
  1029. - "${APPLICATION_NAME}-postgresql-1"
  1030. from:
  1031. kind: ImageStreamTag
  1032. namespace: "${IMAGE_STREAM_NAMESPACE}"
  1033. name: "postgresql:${POSTGRESQL_IMAGE_STREAM_TAG}"
  1034. - type: ConfigChange
  1035. replicas: 1
  1036. selector:
  1037. deploymentConfig: "${APPLICATION_NAME}-postgresql-1"
  1038. template:
  1039. metadata:
  1040. name: "${APPLICATION_NAME}-postgresql-1"
  1041. labels:
  1042. deploymentConfig: "${APPLICATION_NAME}-postgresql-1"
  1043. application: "${APPLICATION_NAME}"
  1044. service: "${APPLICATION_NAME}-postgresql-1"
  1045. spec:
  1046. terminationGracePeriodSeconds: 60
  1047. containers:
  1048. - name: "${APPLICATION_NAME}-postgresql-1"
  1049. image: postgresql
  1050. imagePullPolicy: Always
  1051. ports:
  1052. - containerPort: 5432
  1053. protocol: TCP
  1054. volumeMounts:
  1055. - mountPath: "/var/lib/postgresql/data"
  1056. name: "${APPLICATION_NAME}-postgresql-pvol"
  1057. env:
  1058. - name: POSTGRESQL_USER
  1059. value: "${KIE_SERVER_POSTGRESQL_USER}"
  1060. - name: POSTGRESQL_PASSWORD
  1061. value: "${KIE_SERVER_POSTGRESQL_PWD}"
  1062. - name: POSTGRESQL_DATABASE
  1063. value: "${KIE_SERVER_POSTGRESQL_DB}"
  1064. - name: POSTGRESQL_MAX_PREPARED_TRANSACTIONS
  1065. value: "${POSTGRESQL_MAX_PREPARED_TRANSACTIONS}"
  1066. volumes:
  1067. - name: "${APPLICATION_NAME}-postgresql-pvol"
  1068. persistentVolumeClaim:
  1069. claimName: "${APPLICATION_NAME}-postgresql-claim-1"
  1070. ## PostgreSQL deployment config 1 END
  1071. ## KIE server deployment config 2 BEGIN
  1072. - kind: DeploymentConfig
  1073. apiVersion: v1
  1074. metadata:
  1075. name: "${APPLICATION_NAME}-kieserver-2"
  1076. labels:
  1077. application: "${APPLICATION_NAME}"
  1078. service: "${APPLICATION_NAME}-kieserver-2"
  1079. spec:
  1080. strategy:
  1081. type: Recreate
  1082. triggers:
  1083. - type: ImageChange
  1084. imageChangeParams:
  1085. automatic: true
  1086. containerNames:
  1087. - "${APPLICATION_NAME}-kieserver-2"
  1088. from:
  1089. kind: ImageStreamTag
  1090. namespace: "${IMAGE_STREAM_NAMESPACE}"
  1091. name: "rhpam70-kieserver-openshift:${IMAGE_STREAM_TAG}"
  1092. - type: ConfigChange
  1093. replicas: 3
  1094. selector:
  1095. deploymentConfig: "${APPLICATION_NAME}-kieserver-2"
  1096. template:
  1097. metadata:
  1098. name: "${APPLICATION_NAME}-kieserver-2"
  1099. labels:
  1100. deploymentConfig: "${APPLICATION_NAME}-kieserver-2"
  1101. application: "${APPLICATION_NAME}"
  1102. service: "${APPLICATION_NAME}-kieserver-2"
  1103. spec:
  1104. terminationGracePeriodSeconds: 60
  1105. containers:
  1106. - name: "${APPLICATION_NAME}-kieserver-2"
  1107. image: rhpam70-kieserver-openshift
  1108. imagePullPolicy: Always
  1109. resources:
  1110. limits:
  1111. memory: "${EXECUTION_SERVER_MEMORY_LIMIT}"
  1112. volumeMounts:
  1113. - name: kieserver-keystore-volume
  1114. mountPath: "/etc/kieserver-secret-volume"
  1115. readOnly: true
  1116. livenessProbe:
  1117. exec:
  1118. command:
  1119. - "/bin/bash"
  1120. - "-c"
  1121. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/healthcheck"
  1122. initialDelaySeconds: 180
  1123. timeoutSeconds: 2
  1124. periodSeconds: 15
  1125. failureThreshold: 3
  1126. readinessProbe:
  1127. exec:
  1128. command:
  1129. - "/bin/bash"
  1130. - "-c"
  1131. - "curl --fail --silent -u '${KIE_ADMIN_USER}:${KIE_ADMIN_PWD}' http://localhost:8080/services/rest/server/readycheck"
  1132. initialDelaySeconds: 60
  1133. timeoutSeconds: 2
  1134. periodSeconds: 30
  1135. failureThreshold: 6
  1136. ports:
  1137. - name: jolokia
  1138. containerPort: 8778
  1139. protocol: TCP
  1140. - name: http
  1141. containerPort: 8080
  1142. protocol: TCP
  1143. - name: https
  1144. containerPort: 8443
  1145. protocol: TCP
  1146. - name: ping
  1147. containerPort: 8888
  1148. protocol: TCP
  1149. env:
  1150. - name: DROOLS_SERVER_FILTER_CLASSES
  1151. value: "${DROOLS_SERVER_FILTER_CLASSES}"
  1152. - name: KIE_ADMIN_USER
  1153. value: "${KIE_ADMIN_USER}"
  1154. - name: KIE_ADMIN_PWD
  1155. value: "${KIE_ADMIN_PWD}"
  1156. - name: KIE_MBEANS
  1157. value: "${KIE_MBEANS}"
  1158. - name: KIE_SERVER_BYPASS_AUTH_USER
  1159. value: "${KIE_SERVER_BYPASS_AUTH_USER}"
  1160. - name: KIE_SERVER_CONTROLLER_USER
  1161. value: "${KIE_SERVER_CONTROLLER_USER}"
  1162. - name: KIE_SERVER_CONTROLLER_PWD
  1163. value: "${KIE_SERVER_CONTROLLER_PWD}"
  1164. - name: KIE_SERVER_CONTROLLER_SERVICE
  1165. value: "${APPLICATION_NAME}-rhpamcentrmon"
  1166. - name: KIE_SERVER_ID
  1167. value: "kie-server-2"
  1168. - name: KIE_SERVER_HOST
  1169. valueFrom:
  1170. fieldRef:
  1171. fieldPath: status.podIP
  1172. - name: KIE_SERVER_USER
  1173. value: "${KIE_SERVER_USER}"
  1174. - name: KIE_SERVER_PWD
  1175. value: "${KIE_SERVER_PWD}"
  1176. - name: KIE_SERVER_CONTAINER_DEPLOYMENT
  1177. value: ""
  1178. - name: MAVEN_REPO_URL
  1179. value: "${MAVEN_REPO_URL}"
  1180. - name: MAVEN_REPO_USERNAME
  1181. value: "${MAVEN_REPO_USERNAME}"
  1182. - name: MAVEN_REPO_PASSWORD
  1183. value: "${MAVEN_REPO_PASSWORD}"
  1184. - name: MAVEN_REPO_PATH
  1185. value: "/maven2/"
  1186. - name: KIE_SERVER_ROUTER_SERVICE
  1187. value: "${APPLICATION_NAME}-smartrouter"
  1188. - name: KIE_SERVER_ROUTER_PORT
  1189. value: "${KIE_SERVER_ROUTER_PORT}"
  1190. - name: KIE_SERVER_ROUTER_PROTOCOL
  1191. value: "${KIE_SERVER_ROUTER_PROTOCOL}"
  1192. - name: KIE_SERVER_PERSISTENCE_DS
  1193. value: "${KIE_SERVER_PERSISTENCE_DS}"
  1194. - name: DATASOURCES
  1195. value: "RHPAM"
  1196. - name: RHPAM_JNDI
  1197. value: "${KIE_SERVER_PERSISTENCE_DS}"
  1198. - name: RHPAM_JTA
  1199. value: "true"
  1200. - name: RHPAM_TX_ISOLATION
  1201. value: "TRANSACTION_READ_UNCOMMITTED"
  1202. ## PostgreSQL driver settings 2 BEGIN
  1203. - name: RHPAM_DATABASE
  1204. value: "${KIE_SERVER_POSTGRESQL_DB}"
  1205. - name: RHPAM_DRIVER
  1206. value: "postgresql"
  1207. - name: KIE_SERVER_PERSISTENCE_DIALECT
  1208. value: "org.hibernate.dialect.PostgreSQLDialect"
  1209. - name: RHPAM_USERNAME
  1210. value: "${KIE_SERVER_POSTGRESQL_USER}"
  1211. - name: RHPAM_PASSWORD
  1212. value: "${KIE_SERVER_POSTGRESQL_PWD}"
  1213. - name: RHPAM_SERVICE_HOST
  1214. value: "${APPLICATION_NAME}-postgresql-2"
  1215. - name: RHPAM_SERVICE_PORT
  1216. value: "5432"
  1217. - name: TIMER_SERVICE_DATA_STORE
  1218. value: "${APPLICATION_NAME}-postgresql-2"
  1219. ## PostgreSQL driver settings 2 END
  1220. - name: TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL
  1221. value: "${TIMER_SERVICE_DATA_STORE_REFRESH_INTERVAL}"
  1222. - name: HTTPS_KEYSTORE_DIR
  1223. value: "/etc/kieserver-secret-volume"
  1224. - name: HTTPS_KEYSTORE
  1225. value: "${KIE_SERVER_HTTPS_KEYSTORE}"
  1226. - name: HTTPS_NAME
  1227. value: "${KIE_SERVER_HTTPS_NAME}"
  1228. - name: HTTPS_PASSWORD
  1229. value: "${KIE_SERVER_HTTPS_PASSWORD}"
  1230. - name: JGROUPS_PING_PROTOCOL
  1231. value: "openshift.DNS_PING"
  1232. - name: OPENSHIFT_DNS_PING_SERVICE_NAME
  1233. value: "${APPLICATION_NAME}-kieserver-2-ping"
  1234. - name: OPENSHIFT_DNS_PING_SERVICE_PORT
  1235. value: "8888"
  1236. - name: SSO_URL
  1237. value: "${SSO_URL}"
  1238. - name: SSO_OPENIDCONNECT_DEPLOYMENTS
  1239. value: "ROOT.war"
  1240. - name: SSO_REALM
  1241. value: "${SSO_REALM}"
  1242. - name: SSO_SECRET
  1243. value: "${KIE_SERVER2_SSO_SECRET}"
  1244. - name: SSO_CLIENT
  1245. value: "${KIE_SERVER2_SSO_CLIENT}"
  1246. - name: SSO_USERNAME
  1247. value: "${SSO_USERNAME}"
  1248. - name: SSO_PASSWORD
  1249. value: "${SSO_PASSWORD}"
  1250. - name: SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
  1251. value: "${SSO_DISABLE_SSL_CERTIFICATE_VALIDATION}"
  1252. - name: HOSTNAME_HTTP
  1253. value: "${EXECUTION_SERVER2_HOSTNAME_HTTP}"
  1254. - name: HOSTNAME_HTTPS
  1255. value: "${EXECUTION_SERVER2_HOSTNAME_HTTPS}"
  1256. volumes:
  1257. - name: kieserver-keystore-volume
  1258. secret:
  1259. secretName: "${KIE_SERVER_HTTPS_SECRET}"
  1260. ## KIE server deployment config 2 END
  1261. ## PostgreSQL deployment config 2 BEGIN
  1262. - kind: DeploymentConfig
  1263. apiVersion: v1
  1264. metadata:
  1265. name: "${APPLICATION_NAME}-postgresql-2"
  1266. labels:
  1267. application: "${APPLICATION_NAME}"
  1268. service: "${APPLICATION_NAME}-postgresql-2"
  1269. spec:
  1270. strategy:
  1271. type: Recreate
  1272. triggers:
  1273. - type: ImageChange
  1274. imageChangeParams:
  1275. automatic: true
  1276. containerNames:
  1277. - "${APPLICATION_NAME}-postgresql-2"
  1278. from:
  1279. kind: ImageStreamTag
  1280. namespace: "${IMAGE_STREAM_NAMESPACE}"
  1281. name: "postgresql:${POSTGRESQL_IMAGE_STREAM_TAG}"
  1282. - type: ConfigChange
  1283. replicas: 1
  1284. selector:
  1285. deploymentConfig: "${APPLICATION_NAME}-postgresql-2"
  1286. template:
  1287. metadata:
  1288. name: "${APPLICATION_NAME}-postgresql-2"
  1289. labels:
  1290. deploymentConfig: "${APPLICATION_NAME}-postgresql-2"
  1291. application: "${APPLICATION_NAME}"
  1292. service: "${APPLICATION_NAME}-postgresql-2"
  1293. spec:
  1294. terminationGracePeriodSeconds: 60
  1295. containers:
  1296. - name: "${APPLICATION_NAME}-postgresql-2"
  1297. image: postgresql
  1298. imagePullPolicy: Always
  1299. ports:
  1300. - containerPort: 5432
  1301. protocol: TCP
  1302. volumeMounts:
  1303. - mountPath: "/var/lib/postgresql/data"
  1304. name: "${APPLICATION_NAME}-postgresql-pvol"
  1305. env:
  1306. - name: POSTGRESQL_USER
  1307. value: "${KIE_SERVER_POSTGRESQL_USER}"
  1308. - name: POSTGRESQL_PASSWORD
  1309. value: "${KIE_SERVER_POSTGRESQL_PWD}"
  1310. - name: POSTGRESQL_DATABASE
  1311. value: "${KIE_SERVER_POSTGRESQL_DB}"
  1312. - name: POSTGRESQL_MAX_PREPARED_TRANSACTIONS
  1313. value: "${POSTGRESQL_MAX_PREPARED_TRANSACTIONS}"
  1314. volumes:
  1315. - name: "${APPLICATION_NAME}-postgresql-pvol"
  1316. persistentVolumeClaim:
  1317. claimName: "${APPLICATION_NAME}-postgresql-claim-2"
  1318. ## PostgreSQL deployment config 2 END
  1319. ## PostgreSQL persistent volume claim 1 BEGIN
  1320. - apiVersion: v1
  1321. kind: PersistentVolumeClaim
  1322. metadata:
  1323. name: "${APPLICATION_NAME}-postgresql-claim-1"
  1324. labels:
  1325. application: "${APPLICATION_NAME}"
  1326. service: "${APPLICATION_NAME}-postgresql-1"
  1327. spec:
  1328. accessModes:
  1329. - ReadWriteOnce
  1330. resources:
  1331. requests:
  1332. storage: "${DB_VOLUME_CAPACITY}"
  1333. ## PostgreSQL persistent volume claim 1 END
  1334. ## PostgreSQL persistent volume claim 2 BEGIN
  1335. - apiVersion: v1
  1336. kind: PersistentVolumeClaim
  1337. metadata:
  1338. name: "${APPLICATION_NAME}-postgresql-claim-2"
  1339. labels:
  1340. application: "${APPLICATION_NAME}"
  1341. service: "${APPLICATION_NAME}-postgresql-2"
  1342. spec:
  1343. accessModes:
  1344. - ReadWriteOnce
  1345. resources:
  1346. requests:
  1347. storage: "${DB_VOLUME_CAPACITY}"
  1348. ## PostgreSQL persistent volume claim 2 END
  1349. - apiVersion: v1
  1350. kind: PersistentVolumeClaim
  1351. metadata:
  1352. name: "${APPLICATION_NAME}-smartrouter-claim"
  1353. labels:
  1354. application: "${APPLICATION_NAME}"
  1355. service: "${APPLICATION_NAME}-smartrouter"
  1356. spec:
  1357. accessModes:
  1358. - ReadWriteMany
  1359. resources:
  1360. requests:
  1361. storage: "64Mi"
  1362. - apiVersion: v1
  1363. kind: PersistentVolumeClaim
  1364. metadata:
  1365. name: "${APPLICATION_NAME}-rhpamcentr-claim"
  1366. labels:
  1367. application: "${APPLICATION_NAME}"
  1368. service: "${APPLICATION_NAME}-rhpamcentrmon"
  1369. spec:
  1370. accessModes:
  1371. - ReadWriteMany
  1372. resources:
  1373. requests:
  1374. storage: "64Mi"