Chapter 3. Fixed managed server environment
You can deploy a fixed managed server environment that, in a single deployment, includes several different pods running Process Server. No processes are initially loaded on the servers. The database servers are, by default, also run in pods. Each Process Server pod can be separately scaled as necessary.
A pod with Business Central Monitoring and a pod with Smart Router are also deployed. You must use Business Central Monitoring to deploy, load, and unload processes on your Process Servers. You can also use it to view monitoring information.
Smart Router is a single endpoint that can receive calls from client applications to any of your processes and route each call automatically to the server that runs the process.
You cannot easily add or remove Process Servers at a later time.
You must provide a Maven repository with the processes (KJAR files) that you want to deploy on the servers. Your integration process must ensure that the required versions of the processes are uploaded to the Maven repository. You can use Business Central in a development environment to create the processes and upload them to the Maven repository.
3.1. Deploying a fixed managed server environment
You can deploy a fixed managed server environment using a single template. The name of the template file is rhpam76-prod.yaml
.
The template includes two Process Server pods (with PostgreSQL database pods), Smart Router in a high-availability configuration, and Business Central Monitoring in a high-availability configuration.
You can change the number of replicas of all components when configuring the deployment. If you want to modify the number of independent Process Server pods or to use a different database server, you must modify the template. For instructions about modifying the template, see Section 3.3, “Modifying a template for a managed environment”.
The fixed managed environment template is deprecated in Red Hat Process Automation Manager 7.6. It will be removed in a future release.
3.1.1. Starting configuration of the template for a fixed managed server environment
To deploy a fixed managed server environment, use the rhpam76-prod.yaml
template file.
Procedure
-
Download the
rhpam-7.6.0-openshift-templates.zip
product deliverable file from the Software Downloads page of the Red Hat Customer Portal. -
Extract the
rhpam76-prod.yaml
template file. - By default, the template includes two Process Servers. Each of the serves uses a PostgreSQL database server in a pod. To change the number of Process Servers or to use a MySQL database server in a pod or an external database server, modify the template as described in Section 3.3, “Modifying a template for a managed environment”.
Use one of the following methods to start deploying the template:
-
To use the OpenShift Web UI, in the OpenShift application console select Add to Project → Import YAML / JSON and then select or paste the
rhpam76-prod.yaml
file. In the Add Template window, ensure Process the template is selected and click Continue. To use the OpenShift command line console, prepare the following command line:
oc new-app -f <template-path>/rhpam76-prod.yaml -p BUSINESS_CENTRAL_HTTPS_SECRET=businesscentral-app-secret -p KIE_SERVER_HTTPS_SECRET=kieserver-app-secret -p PARAMETER=value
In this command line, make the following changes:
-
Replace
<template-path>
with the path to the downloaded template file. -
Use as many
-p PARAMETER=value
pairs as needed to set the required parameters.
-
Replace
-
To use the OpenShift Web UI, in the OpenShift application console select Add to Project → Import YAML / JSON and then select or paste the
Next steps
Set the parameters for the template. Follow the steps in Section 3.1.2, “Setting required parameters for a fixed managed server environment” to set common parameters. You can view the template file to see descriptions for all parameters.
3.1.2. Setting required parameters for a fixed managed server environment
When configuring the template to deploy a fixed managed server environment, you must set the following parameters in all cases.
Prerequisites
- You started the configuration of the template, as described in Section 3.1.1, “Starting configuration of the template for a fixed managed server environment”.
Procedure
Set the following parameters:
-
Business Central Monitoring Server Keystore Secret Name (
BUSINESS_CENTRAL_HTTPS_SECRET
): The name of the secret for Business Central, as created in Section 2.3, “Creating the secrets for Business Central”. -
KIE Server Keystore Secret Name (
KIE_SERVER_HTTPS_SECRET
): The name of the secret for Process Server, as created in Section 2.2, “Creating the secrets for Process Server”. -
Smart Router Keystore Secret Name (
KIE_SERVER_ROUTER_HTTPS_SECRET
): The name of the secret for Smart Router, as created in Section 2.4, “Creating the secrets for Smart Router”. -
Business Central Monitoring Server Certificate Name (
BUSINESS_CENTRAL_HTTPS_NAME
): The name of the certificate in the keystore that you created in Section 2.3, “Creating the secrets for Business Central”. -
Business Central Monitoring Server Keystore Password (
BUSINESS_CENTRAL_HTTPS_PASSWORD
): The password for the keystore that you created in Section 2.3, “Creating the secrets for Business Central”. -
KIE Server Certificate Name (
KIE_SERVER_HTTPS_NAME
): The name of the certificate in the keystore that you created in Section 2.2, “Creating the secrets for Process Server”. -
KIE Server Keystore Password (
KIE_SERVER_HTTPS_PASSWORD
): The password for the keystore that you created in Section 2.2, “Creating the secrets for Process Server”. -
Smart Router Certificate Name (
KIE_SERVER_ROUTER_HTTPS_NAME
): The name of the certificate in the keystore that you created in Section 2.4, “Creating the secrets for Smart Router”. -
Smart Router Keystore Password (
KIE_SERVER_ROUTER_HTTPS_PASSWORD
): The password for the keystore that you created in Section 2.4, “Creating the secrets for Smart Router”. -
Application Name (
APPLICATION_NAME
): The name of the OpenShift application. It is used in the default URLs for Business Central Monitoring and Process Server. OpenShift uses the application name to create a separate set of deployment configurations, services, routes, labels, and artifacts. You can deploy several applications using the same template into the same project, as long as you use different application names. Also, the application name determines the name of the server configuration (server template) that the Process Server joins on Business Central Monitoring. If you are deploying several Process Servers, you must ensure each of the servers has a different application name. -
Maven repository URL (
MAVEN_REPO_URL
): A URL for a Maven repository. You must upload all the processes (KJAR files) that are to be deployed on the Process Server into this repository. -
Maven repository ID (
MAVEN_REPO_ID
): An identifier for the Maven repository. The default value isrepo-custom
. -
Maven repository username (
MAVEN_REPO_USERNAME
): The user name for the Maven repository. -
Maven repository password (
MAVEN_REPO_PASSWORD
): The password for the Maven repository. -
KIE Server Mode (
KIE_SERVER_MODE
): In therhpam76-kieserver-*.yaml
templates the default value isPRODUCTION
. InPRODUCTION
mode, you cannot deploySNAPSHOT
versions of KJAR artifacts on the Process Server and cannot change versions of an artifact in an existing container. To deploy a new version withPRODUCTION
mode, create a new container on the same Process Server. To deploySNAPSHOT
versions or to change versions of an artifact in an existing container, set this parameter toDEVELOPMENT
. -
ImageStream Namespace (
IMAGE_STREAM_NAMESPACE
): The namespace where the image streams are available. If the image streams were already available in your OpenShift environment (see Section 2.1, “Ensuring the availability of image streams and the image registry”), the namespace isopenshift
. If you have installed the image streams file, the namespace is the name of the OpenShift project.
-
Business Central Monitoring Server Keystore Secret Name (
You can set the following user names and passwords. By default, the deployment automatically generates the passwords.
-
KIE Admin User (
KIE_ADMIN_USER
) and KIE Admin Password (KIE_ADMIN_PWD
): The user name and password for the administrative user. -
KIE Server User (
KIE_SERVER_USER
) and KIE Server Password (KIE_SERVER_PWD
): The user name and password that a client application can use to connect to any of the Process Servers.
-
KIE Admin User (
Next steps
If necessary, set additional parameters.
To complete the deployment, follow the procedure in Section 3.1.10, “Completing deployment of the template for a fixed managed server environment”.
3.1.3. Configuring the image stream namespace for a fixed managed server environment
If you created image streams in a namespace that is not openshift
, you must configure the namespace in the template.
If all image streams were already available in your Red Hat OpenShift Container Platform environment, you can skip this procedure.
Prerequisites
- You started the configuration of the template, as described in Section 3.1.1, “Starting configuration of the template for a fixed managed server environment”.
Procedure
If you installed an image streams file according to instructions in Section 2.1, “Ensuring the availability of image streams and the image registry”, set the ImageStream Namespace (IMAGE_STREAM_NAMESPACE
) parameter to the name of your OpenShift project.
3.1.4. Configuring pod replica numbers for a fixed managed server environment
When configuring the template to deploy a fixed managed server environment, you can set the initial number of replicas for Process Server, Business Central Monitoring, and Smart Router.
Prerequisites
- You started the configuration of the template, as described in Section 3.1.1, “Starting configuration of the template for a fixed managed server environment”.
Procedure
To configure the numbers of replicas, set the following parameters:
-
Business Central Monitoring Container Replicas (
BUSINESS_CENTRAL_MONITORING_CONTAINER_REPLICAS
): The number of replicas that the deployment initially creates for Business Central Monitoring. If you do not want to use a high-availability configuration for Business Central Monitoring, set this number to 1. -
KIE Server Container Replicas (
KIE_SERVER_CONTAINER_REPLICAS
): The number of replicas that the deployment initially creates for Process Server. -
Smart Router Container Replicas (
SMART_ROUTER_CONTAINER_REPLICAS
): The number of replicas that the deployment initially creates for Smart Router.
Next steps
If necessary, set additional parameters.
To complete the deployment, follow the procedure in Section 3.1.10, “Completing deployment of the template for a fixed managed server environment”.
3.1.5. Configuring access to a Maven mirror in an environment without a connection to the public Internet for a fixed managed server environment
When configuring the template to deploy a fixed managed server environment, if your OpenShift environment does not have a connection to the public Internet, you must configure access to a Maven mirror that you set up according to Section 2.6, “Preparing a Maven mirror repository for offline use”.
Prerequisites
- You started the configuration of the template, as described in Section 3.1.1, “Starting configuration of the template for a fixed managed server environment”.
Procedure
To configure access to the Maven mirror, set the following parameters:
-
Maven mirror URL (
MAVEN_MIRROR_URL
): The URL for the Maven mirror repository that you set up in Section 2.6, “Preparing a Maven mirror repository for offline use”. This URL must be accessible from a pod in your OpenShift environment. Maven mirror of (
MAVEN_MIRROR_OF
): The value that determines which artifacts are to be retrieved from the mirror. For instructions about setting themirrorOf
value, see Mirror Settings in the Apache Maven documentation. The default value isexternal:*
. With this value, Maven retrieves every required artifact from the mirror and does not query any other repositories.-
If you configure an external Maven repository (
MAVEN_REPO_URL
), changeMAVEN_MIRROR_OF
to exclude the artifacts in this repository from the mirror, for example,external:*,!repo-custom
. Replacerepo-custom
with the ID that you configured inMAVEN_REPO_ID
. -
If you configure a built-in Business Central Maven repository (
BUSINESS_CENTRAL_MAVEN_SERVICE
), changeMAVEN_MIRROR_OF
to exclude the artifacts in this repository from the mirror:external:*,!repo-rhpamcentr
. -
If you configure both repositories, change
MAVEN_MIRROR_OF
to exclude the artifacts in both repositories from the mirror:external:*,!repo-rhpamcentr,!repo-custom
. Replacerepo-custom
with the ID that you configured inMAVEN_REPO_ID
.
-
If you configure an external Maven repository (
Next steps
If necessary, set additional parameters.
To complete the deployment, follow the procedure in Section 3.1.10, “Completing deployment of the template for a fixed managed server environment”.
3.1.6. Setting parameters for RH-SSO authentication for a fixed managed server environment
If you want to use RH-SSO authentication, complete the following additional configuration when configuring the template to deploy a fixed managed server environment.
Do not configure LDAP authentication and RH-SSO authentication in the same deployment.
Prerequisites
- A realm for Red Hat Process Automation Manager is created in the RH-SSO authentication system.
User names and passwords for Red Hat Process Automation Manager are created in the RH-SSO authentication system. For a list of the available roles, see Chapter 4, Red Hat Process Automation Manager roles and users. The following users are required in order to set the parameters for the environment:
-
An administrative user with the
kie-server,rest-all,admin
roles. This user can administer and use the environment. Process Servers use this user to authenticate with Business Central Monitoring. -
A server user with the
kie-server,rest-all,user
roles. This user can make REST API calls to the Process Server. Business Central Monitoring uses this user to authenticate with Process Servers.
-
An administrative user with the
- Clients are created in the RH-SSO authentication system for all components of the Red Hat Process Automation Manager environment that you are deploying. The client setup contains the URLs for the components. You can review and edit the URLs after deploying the environment. Alternatively, the Red Hat Process Automation Manager deployment can create the clients. However, this option provides less detailed control over the environment.
- You started the configuration of the template, as described in Section 3.1.1, “Starting configuration of the template for a fixed managed server environment”.
Procedure
-
Set the
KIE_ADMIN_USER
andKIE_ADMIN_PASSWORD
parameters of the template to the user name and password of the administrative user that you created in the RH-SSO authentication system. -
Set the
KIE_SERVER_USER
andKIE_SERVER_PASSWORD
parameters of the template to the user name and password of the server user that you created in the RH-SSO authentication system. Set the following parameters:
-
RH-SSO URL (
SSO_URL
): The URL for RH-SSO. -
RH-SSO Realm name (
SSO_REALM
): The RH-SSO realm for Red Hat Process Automation Manager. -
RH-SSO Disable SSL Certificate Validation (
SSO_DISABLE_SSL_CERTIFICATE_VALIDATION
): Set totrue
if your RH-SSO installation does not use a valid HTTPS certificate.
-
RH-SSO URL (
Complete one of the following procedures:
If you created the client for Red Hat Process Automation Manager within RH-SSO, set the following parameters in the template:
-
Business Central Monitoring RH-SSO Client name (
BUSINESS_CENTRAL_SSO_CLIENT
): The RH-SSO client name for Business Central Monitoring. For each Process Server defined in the template:
-
KIE Server n RH-SSO Client name (
KIE_SERVERn_SSO_CLIENT
): The RH-SSO client name for this Process Server. -
KIE Server n RH-SSO Client Secret (
KIE_SERVERn_SSO_SECRET
): The secret string that is set in RH-SSO for the client for this Process Server.
-
KIE Server n RH-SSO Client name (
-
Business Central Monitoring RH-SSO Client name (
To create the clients for Red Hat Process Automation Manager within RH-SSO, set the following parameters in the template:
For each Process Server defined in the template:
-
KIE Server n RH-SSO Client name (
KIE_SERVERn_SSO_CLIENT
): The name of the client to create in RH-SSO for this Process Server. -
KIE Server n RH-SSO Client Secret (
KIE_SERVERn_SSO_SECRET
): The secret string to set in RH-SSO for the client for this Process Server.
-
KIE Server n RH-SSO Client name (
-
RH-SSO Realm Admin Username (
SSO_USERNAME
) and RH-SSO Realm Admin Password (SSO_PASSWORD
): The user name and password for the realm administrator user for the RH-SSO realm for Red Hat Process Automation Manager. You must provide this user name and password in order to create the required clients.
Next steps
If necessary, set additional parameters.
To complete the deployment, follow the procedure in Section 3.1.10, “Completing deployment of the template for a fixed managed server environment”.
After completing the deployment, review the URLs for components of Red Hat Process Automation Manager in the RH-SSO authentication system to ensure they are correct.
3.1.7. Setting parameters for LDAP authentication for a fixed managed server environment
If you want to use LDAP authentication, complete the following additional configuration when configuring the template to deploy a fixed managed server environment.
Do not configure LDAP authentication and RH-SSO authentication in the same deployment.
Prerequisites
You created user names and passwords for Red Hat Process Automation Manager in the LDAP system. For a list of the available roles, see Chapter 4, Red Hat Process Automation Manager roles and users. As a minimum, in order to set the parameters for the environment, you created the following users:
-
An administrative user with the
kie-server,rest-all,admin
roles. This user can administer and use the environment. -
A server user with the
kie-server,rest-all,user
roles. This user can make REST API calls to the Process Server.
-
An administrative user with the
- You started the configuration of the template, as described in Section 3.1.1, “Starting configuration of the template for a fixed managed server environment”.
Procedure
In the LDAP service, create all user names in the deployment parameters. If you do not set any of the parameters, create users with the default user names. The created users must also be assigned to roles:
-
KIE_ADMIN_USER
: default user nameadminUser
, roles:kie-server,rest-all,admin
KIE_SERVER_USER
: default user nameexecutionUser
, roleskie-server,rest-all,guest
For the user roles that you can configure in LDAP, see Roles and users.
-
Set the
AUTH_LDAP*
parameters of the template. These parameters correspond to the settings of theLdapExtended
Login module of Red Hat JBoss EAP. For instructions about using these settings, see LdapExtended login module.If the LDAP server does not define all the roles required for your deployment, you can map LDAP groups to Red Hat Process Automation Manager roles. To enable LDAP role mapping, set the following parameters:
-
RoleMapping rolesProperties file path (
AUTH_ROLE_MAPPER_ROLES_PROPERTIES
): The fully qualified path name of a file that defines role mapping, for example,/opt/eap/standalone/configuration/rolemapping/rolemapping.properties
. You must provide this file and mount it at this path in all applicable deployment configurations; for instructions, see Section 3.2, “(Optional) Providing the LDAP role mapping file”. -
RoleMapping replaceRole property (
AUTH_ROLE_MAPPER_REPLACE_ROLE
): If set totrue
, mapped roles replace the roles defined on the LDAP server; if set tofalse
, both mapped roles and roles defined on the LDAP server are set as user application roles. The default setting isfalse
.
-
RoleMapping rolesProperties file path (
Next steps
If necessary, set additional parameters.
To complete the deployment, follow the procedure in Section 3.1.10, “Completing deployment of the template for a fixed managed server environment”.
3.1.8. Setting parameters for using an external database server for a fixed managed server environment
If you modified the template to use an external database server for the Process Server, as described in Section 3.3, “Modifying a template for a managed environment”, complete the following additional configuration when configuring the template to deploy a fixed managed server environment.
Prerequisites
- You started the configuration of the template, as described in Section 3.1.1, “Starting configuration of the template for a fixed managed server environment”.
Procedure
Set the following parameters:
KIE Server External Database Driver (
KIE_SERVER_EXTERNALDB_DRIVER
): The driver for the server, depending on the server type:-
mysql
-
postgresql
-
mariadb
-
mssql
-
db2
-
oracle
-
sybase
-
-
KIE Server External Database User (
KIE_SERVER_EXTERNALDB_USER
) and KIE Server External Database Password (KIE_SERVER_EXTERNALDB_PWD
): The user name and password for the external database server -
KIE Server External Database URL (
KIE_SERVER_EXTERNALDB_URL
): The JDBC URL for the external database server KIE Server External Database Dialect (
KIE_SERVER_EXTERNALDB_DIALECT
): The Hibernate dialect for the server, depending on the server type:-
org.hibernate.dialect.MySQL5InnoDBDialect
(used for MySQL and MariaDB) -
org.hibernate.dialect.PostgreSQL82Dialect
-
org.hibernate.dialect.SQLServer2012Dialect
(used for MS SQL) -
org.hibernate.dialect.DB2Dialect
-
org.hibernate.dialect.Oracle10gDialect
-
org.hibernate.dialect.SybaseASE157Dialect
-
-
KIE Server External Database Host (
KIE_SERVER_EXTERNALDB_SERVICE_HOST
): The host name of the external database server -
KIE Server External Database Port (
KIE_SERVER_EXTERNALDB_SERVICE_PORT
): The port number of the external database server -
KIE Server External Database name (
KIE_SERVER_EXTERNALDB_DB
): The database name to use on the external database server -
JDBC Connection Checker class (
KIE_SERVER_EXTERNALDB_CONNECTION_CHECKER
): The name of the JDBC connection checker class for the database server. Without this information, a database server connection cannot be restored after it is lost, for example, if the database server is rebooted. -
JDBC Exception Sorter class (
KIE_SERVER_EXTERNALDB_EXCEPTION_SORTER
): The name of the JDBC exception sorter class for the database server. Without this information, a database server connection cannot be restored after it is lost, for example, if the database server is rebooted.
If you created a custom image for using an external database server other than MySQL or PostgreSQL, as described in Section 3.4, “Building a custom Process Server extension image for an external database”, set the following parameters:
-
Drivers Extension Image (
EXTENSIONS_IMAGE
): The ImageStreamTag definition of the extension image, for example,jboss-kie-db2-extension-openshift-image:11.1.4.4
-
Drivers ImageStream Namespace (
EXTENSIONS_IMAGE_NAMESPACE
): The namespace to which you uploaded the extension image, for example,openshift
or your project namespace.
-
Drivers Extension Image (
Next steps
If necessary, set additional parameters.
To complete the deployment, follow the procedure in Section 3.1.10, “Completing deployment of the template for a fixed managed server environment”.
3.1.9. Enabling Prometheus metric collection for a fixed managed server environment
If you want to configure your Process Server deployment to use Prometheus to collect and store metrics, enable support for this feature in Process Server at deployment time.
Prerequisites
- You started the configuration of the template, as described in Section 3.1.1, “Starting configuration of the template for a fixed managed server environment”.
Procedure
To enable support for Prometheus metric collection, set the Prometheus Server Extension Disabled (PROMETHEUS_SERVER_EXT_DISABLED
) parameter to false
.
Next steps
If necessary, set additional parameters.
To complete the deployment, follow the procedure in Section 3.1.10, “Completing deployment of the template for a fixed managed server environment”.
For instructions about configuring Prometheus metrics collection, see Managing and monitoring Process Server.
3.1.10. Completing deployment of the template for a fixed managed server environment
After setting all the required parameters in the OpenShift Web UI or in the command line, complete deployment of the template.
Procedure
Depending on the method that you are using, complete the following steps:
In the OpenShift Web UI, click Create.
-
If the
This will create resources that may have security or project behavior implications
message appears, click Create Anyway.
-
If the
- Complete the command line and press Enter.
3.2. (Optional) Providing the LDAP role mapping file
If you configure the AUTH_ROLE_MAPPER_ROLES_PROPERTIES
parameter, you must provide a file that defines the role mapping. Mount this file on all affected deployment configurations.
Procedure
Create the role mapping properties file, for example,
my-role-map
. The file must contain entries in the following format:ldap_role = product_role1, product_role2...
For example:
admins = kie-server,rest-all,admin
Create an OpenShift configuration map from the file by entering the following command:
oc create configmap ldap-role-mapping --from-file=<new_name>=<existing_name>
Replace
<new_name>
with the name that the file is to have on the pods (it must be the same as the name specified in theAUTH_ROLE_MAPPER_ROLES_PROPERTIES
file) and<existing_name>
with the name of the file that you created. Example:oc create configmap ldap-role-mapping --from-file=rolemapping.properties=my-role-map
Mount the configuration map on every deployment configuration that is configured for role mapping.
The following deployment configurations can be affected in this environment:
-
myapp-rhpamcentrmon
: Business Central Monitoring -
myapp-kieserver-n
: Process Server number n. By default, the numbers are 1 and 2.
Replace
myapp
with the application name. Sometimes, several Process Server deployments can be present under different application names.For every deployment configuration, run the command:
oc set volume dc/<deployment_config_name> --add --type configmap --configmap-name ldap-role-mapping --mount-path=<mapping_dir> --name=ldap-role-mapping
Replace
<mapping_dir>
with the directory name (without file name) set in theAUTH_ROLE_MAPPER_ROLES_PROPERTIES
parameter, for example,/opt/eap/standalone/configuration/rolemapping
.-
3.3. Modifying a template for a managed environment
To adjust the managed environment to your needs, you need to modify the rhpam76-prod.yaml
template before deploying the environment.
By default, the templates create two replicated Process Server pods. You can deploy separate processes on each of the pods. To add more replicated Process Server pods, you need to modify the template before deploying the environment.
By default, the templates create a PostgreSQL pod to provide the database server for each replicated Process Server. If you prefer to use PostgreSQL or to use an external server (outside the OpenShift project), you need to modify the template before deploying the environment.
For the rhpam76-prod.yaml
template you can also adjust the initial number of replicas for Business Central Monitoring.
An OpenShift template defines a set of objects that can be created by OpenShift. To change an environment configuration, you need to modify, add, or delete these objects. To simplify this task, comments are provided in the Red Hat Process Automation Manager templates.
Some comments mark blocks within the template, staring with BEGIN
and ending with END
. For example, the following block is named Sample block
:
## Sample block BEGIN sample line 1 sample line 2 sample line 3 ## Sample block END
For some changes, you might need to replace a block in one template file with a block from another template file provided with Red Hat Process Automation Manager. In this case, delete the block, then paste the new block in its exact location.
Note that named blocks can be nested.
Procedure
If you want to add more replicated Process Server pods, repeat the following actions for every additional pod:
-
Pick a number for the new pod. The default pods have the numbers
1
and2
, so you can use3
for the first new pod, then4
and so on. Copy the following blocks of the file, marked with comments from
BEGIN
toEND
, into the end of the file:-
KIE server services 1
-
PostgreSQL service 1
-
KIE server routes 1
-
KIE server deployment config 1
-
PostgreSQL deployment config 1
-
PostgreSQL persistent volume claim 1
-
-
In the new copies, replace all instances of
-1
with the new pod number, for example,-3
.
-
Pick a number for the new pod. The default pods have the numbers
If you want to use MySQL instead of PostgreSQL, replace several blocks of the file, marked with comments from
BEGIN
toEND
, with blocks from therhpam76-kieserver-postgresql.yaml
file, then modify some of the newly added blocks:Replace the block named
MySQL database parameters
with the block namedPostgreSQL database parameters
. (Take this block and all subsequent replacement blocks from therhpam76-kieserver-postgresql.yaml
file.)Repeat the following actions for every replicated Process Server pod number, for example,
1
and2
in the unmodified template.N
refers to the pod number, for example,1
.-
Replace the block named
PostgreSQL service N
with the block namedMySQL service
. -
Replace the block named
PostgreSQL driver settings N
with the block namedMySQL driver settings
. -
Replace the block named
PostgreSQL deployment config N
with the block namedMySQL deployment config
. -
Replace the block named
PostgreSQL persistent volume claim N
with the block namedMySQL persistent volume claim
. In all the newly added blocks, make the following replacements manually, where
N
is the pod number:-
-mysql
with-mysql-N
, except in-mysql-pvol
and in-mysql-claim
-
-mysql-claim
with-mysql-claim-N
-
-
Replace the block named
If you want to use an external database server, replace several blocks of the file, marked with comments from
BEGIN
toEND
, with blocks from therhpam76-kieserver-externaldb.yaml
file, remove some blocks, and modify some of the newly added blocks:Replace the block named
MySQL database parameters
with the block namedExternal database parameters
. (Take this block and all subsequent replacement blocks from therhpam76-kieserver-external.yaml
file.)Repeat the following actions for every replicated Process Server pod number, for example,
1
and2
in the unmodified template.N
refers to the pod number, for example,1
.-
Remove the block named
PostgreSQL service N
-
Remove the block named
PostgreSQL deployment config N
-
Remove the block named
PostgreSQL persistent volume claim N
-
Replace the block named
PostgreSQL driver settings N
with the block namedExternal database driver settings
. In the new
External database driver settings
block, if any of the following values are different for different Process Server pods in the infrastructure, set the values for this particular pod:-
RHPAM_USERNAME
: The user name for logging in to the database server -
RHPAM_PASSWORD
: The password for logging in to the database server -
RHPAM_XA_CONNECTION_PROPERTY_URL
: The full URL for logging in to the database server -
RHPAM_SERVICE_HOST
: The host name of the database server -
RHPAM_DATABASE
: The database name
-
-
Remove the block named
The standard Process Server image includes drivers for MySQL and PostgreSQL external database servers. If you want to use another database server, you must build a custom Process Server image. For instructions, see Section 3.4, “Building a custom Process Server extension image for an external database”.
-
If you want to change the number of replicas initially created for Business Central Monitoring, on the line below the comment
## Replicas for Business Central Monitoring
, change the number of replicas to the desired value.
3.4. Building a custom Process Server extension image for an external database
If you want to use an external database server for a Process Server and the database server is not a MySQL or PostgreSQL server, you must build a custom Process Server extension image with drivers for this server before deploying your environment.
Complete the steps in this build procedure to provide drivers for any of the following database servers:
- Microsoft SQL Server
- MariaDB
- IBM DB2
- Oracle Database
- Sybase
For the supported versions of the database servers, see Red Hat Process Automation Manager 7 Supported Configurations.
The build procedure creates a custom extension image that extends the existing Process Server image. You must import this custom extension image into your OpenShift environment and then reference it in the EXTENSIONS_IMAGE
parameter.
Prerequisites
-
You are logged in to your OpenShift environment using the
oc
command. Your OpenShift user must have theregistry-editor
role. - For Oracle Database or Sybase, you downloaded the JDBC driver from the database server vendor.
You have installed the following required software:
- Docker
- Cekit version 3.2
The following libraries and extensions for Cekit:
-
odcs-client
, provided by thepython3-odcs-client
package or similar package -
docker
, provided by thepython3-docker
package or similar package -
docker-squash
, provided by thepython3-docker-squash
package or similar package -
behave
, provided by thepython3-behave
package or similar package -
s2i
, provided by thesource-to-image
package or similar package
-
Procedure
- For IBM DB2, Oracle Database, or Sybase, provide the JDBC driver JAR file in a local directory.
-
Download the
rhpam-7.6.0-openshift-templates.zip
product deliverable file from the Software Downloads page of the Red Hat Customer Portal. -
Unzip the file and, using the command line, change to the
templates/contrib/jdbc
directory of the unzipped file. This directory contains the source code for the custom build. Run one of the following commands, depending on the database server type:
For Microsoft SQL Server:
make build mssql
For MariaDB:
make build mariadb
For IBM DB2:
make build db2
For Oracle Database:
make build oracle artifact=/tmp/ojdbc7.jar version=7.0
In this command, replace
/tmp/ojdbc7.jar
with the path name of the downloaded Oracle Database driver and7.0
with the version of the driver.For Sybase:
make build sybase artifact=/tmp/jconn4-16.0_PL05.jar version=16.0_PL05
In this command, replace
/tmp/jconn4-16.0_PL05.jar
with the path name of the downloaded Sybase driver and16.0_PL05
with the version of the driver.
Run the following command to list the Docker images that are available locally:
docker images
Note the name of the image that was built, for example,
jboss-kie-db2-extension-openshift-image
, and the version tag of the image, for example,11.1.4.4
(not thelatest
tag).-
Access the registry of your OpenShift environment directly and push the image to the registry. Depending on your user permissions, you can push the image into the
openshift
namespace or into a project namespace. For instructions about accessing the registry and pushing the images, see Accessing the Registry Directly. When configuring your Process Server deployment with a template that supports an external database server, set the following parameters:
-
Drivers Extension Image (
EXTENSIONS_IMAGE
): The ImageStreamTag definition of the extension image, for example,jboss-kie-db2-extension-openshift-image:11.1.4.4
-
Drivers ImageStream Namespace (
EXTENSIONS_IMAGE_NAMESPACE
): The namespace to which you uploaded the extension image, for example,openshift
or your project namespace.
-
Drivers Extension Image (