Option 2: Installing a production deployment in the OpenShift console
Operator lifecycle manager (OLM) helps you to install, update, and manage the lifecycle of all operators and services that are deployed in OpenShift® clusters.
Before you begin
- If you created an air gap environment, you must complete the steps in Option 2: Preparing your cluster for an air-gapped (offline) deployment before you install the operator. In other cases, complete the steps in Option 1: Preparing your cluster for an online deployment.
- Then follow the relevant steps to prepare the patterns that you want to install. For more
information, see Preparing your chosen capabilities. Note: If you cannot run the cp4a-prerequisites.sh script and you want to use an external Postgres DB (PostgreSQL or EDB Postgres) for the Cloud Pak foundational services, then you must create the required Secret and ConfigMap in the target CP4BA deployment namespace. For more information, see Setting up an external PostgreSQL database server for IM
and
Configuring an external PostgreSQL database for Zen
.The custom Secret and ConfigMap for the external Postgres DB must use the following names for the CP4BA operator to detect them.- ibm-zen-metastore-edb-secret
- ibm-zen-metastore-edb-cm
- Log in to your OCP or ROKS cluster.
- If you used the
All namespacesoption to install the Cloud Pak operator, switch to the project that you created for your CP4BA deployment. For example,cp4ba-project. - In the Installed Operators view, verify the status of the IBM Cloud Pak for Business Automation operator installation reads succeeded, and verify the deployment by checking all the pods are running.
oc get no -l node-role.kubernetes.io/worker --no-headers -o name | xargs -I {} -- oc debug {} -- chroot /host sh -c 'systemctl restart chronyd'About this task
Operator lifecycle manager is part of the
Operator
Framework
, which is an open source toolkit that is designed to manage Kubernetes applications
in an effective, automated, and scalable way.
IBM provides operators to OpenShift in the form of a catalog. The catalog is added to an OpenShift cluster and appears in the OpenShift Operator Hub.
Procedure
Results
If EDB Postgres is used
If you selected EDB Postgres as
the database, the CP4BA operator creates an EDB Cluster customer resource for the EDB instance
(postgres-cp4ba), and sets the authentication to the instance to use
sslmode=verify-ca. The postgres-cp4ba instance hosts the CP4BA
capabilities, and runs in a single pod (postgres-cp4ba-1). Multiple pods can be
created by scaling up. A secret (postgres-cp4ba-app) is created that contains
access information to the EDB cluster.
For each database that the operator creates in the EDB Postgres instance, it has a
corresponding entry in the pg_hba.conf file for the database user to have
access to it. For example, the user gcdusr, has access to the database
gcddb.
{{ meta.name
}}-pg-client-cert-secret for the users to authenticate. The secret contains the following keys:clientkey.pemclientcert.pemserverca.pemsslmode
The EDB Postgres instance is not accessible outside of the cluster. To view the database in the EDB Postgres instance, use the following command.
oc rsh postgres-cp4ba-1 -n <project-name>
From inside the EDB Postgres
instance, you can run the psql command. By using the terminal-based front end to
PostgreSQL you can type in queries interactively, issue them to PostgreSQL, and see the query
results. For more information, see psql
.
psql -U postgres
If Content services user-based license is used
If the sc_deployment_fncm_license parameter is set to
concurrent-user or authorized-user, the CP4BA operator installs the following resources to report user metrics to IBM License Service.
- A sidecar collector that collects the metrics from the runtime and sends these records to a derby database. The collector includes a LSCollector.conf file that contains the derby JDBC URL. For more information about the CPE License Service Collector container (lscollector), see Content Platform Engine parameters.
- A deployment that is named
<meta.name>-lsreporter-content-deployreports user metrics, stored by the sidecar collector, in a Derby database. For more information about the Reporter container (lsreporter), see FNCM License Service Reporter parameters.This deployment includes a service that is named
<meta.name>-derby-content-svc, which runs in thelsreporterpod to facilitate the connection to the Derby database. The Derby server is SSL enabled with basic authentication. For more information, see Starting the server with SSL/TLS
. When the SSL mode is set to basic, the
server accepts only SSL encrypted connections. The derby credentials are stored in the secret
ibm-fncm-secretasderbyPasswordandderbyUsername. If the keys are not in the secret, the operator uses the default values.Note: If you want to change the password, you must change the value in the secret. An update to the password triggers a restart of the reporter and the collector.
What to do next
How to access the capability services
A
ConfigMap is created in the namespace to provide the cluster-specific details to access the services
and applications. Components that are successfully deployed have URLs in the ConfigMap. If any
components failed, the URLs are not included. The ConfigMap name is prefixed with the deployment
name (default is icp4adeploy). You can find the ConfigMap containing the routes
information by clicking
and
then searching for the string "cp4ba-access-info".

The contents of the ConfigMap depends on the components that are included. Each component has one or more URLs.
<component1> URL: <RouteUrlToAccessComponent1>
<component2> URL: <RouteUrlToAccessComponent2> bastudio-access-info section provides access information for the Cloud Pak
dashboard (Zen UI) and Business Automation Studio, which is installed by several patterns including
Business Automation Workflow. The included URLs and credentials can be used to access the
applications designers of the installed components. When all the containers are running, you can access the services.
true or false values
in the Form View, but the other parameters need to be done in the
YAML View. You can access the custom resource from the
YAML tab, or by clicking . 
Business Automation Studio leverages the IBM Cloud Pak® Platform UI (Zen UI) to provide a role-based user interface for all Cloud Pak capabilities. Capabilities are dynamically available in the UI based on the role of the user that logs in. You can find the URL for the Zen UI by clicking and looking for the name cpd, or by running the following command.
oc get route |grep "^cpd"You have two options to log in,
Enterprise LDAP and IBM provided credentials (cpadmin
only). To log in to the Admin Hub to configure the LDAP, then click IBM
provided credentials (cpadmin only). You can get the details for the IBM-provided cpadmin user by getting the contents of the
platform-auth-idp-credentials secret in the namespace used for the CP4BA
deployment.
oc -n <namespace> get secret platform-auth-idp-credentials -o jsonpath='{.data.admin_password}' | base64 -d && echoIf
you want to log in using the configured LDAP, then click Enterprise LDAP and
enter the cp4admin user and the password in the cp4ba-access-info
ConfigMap. The cp4admin user has access to Business Automation
Studio features.
If you want to
add more users, you need to log in with the Zen UI administrator. The kubeadmin user in the Red Hat OpenShift authentication and the IBM-provided cpadmin user have the Zen
UI administrator role.
You can change the default password at any time. For more information,
see Changing the cluster administrator password
.
After you created a CP4BA deployment, the operator automatically connects your LDAP to IAM. The users and groups you defined in your LDAP are now available via IAM.
At this point, you must associate your users and groups to Zen roles to be able to use them in all the CP4BA applications. IBM Automation® has four roles defined: Automation Administrator,
Automation Analyst, Automation Developer, and
Automation Operator. For more information, see Roles and permissions
.
Log in to the Common Web UI
to get the IBM Cloud Pak console route and admin's password. Use the Platform UI (Zen)
to create a group for your CP4BA
Developers, and add your LDAP users and groups to this group. You then need to assign the
Zen group with the Automation Developer role.
If you included FileNet Content Manager (FNCM) without the other capabilities, then use the Navigator for FNCM heading in the cp4ba-access-info ConfigMap and the custom resource status fields to find the route URL for Business Automation Navigator.
To enable logs and
monitoring add the wanted YAML to the CR in the YAML view. For example, the
following parameters provide custom setting for the content
pattern.
monitoring_configuration:
collectd_disable_host_monitoring: false
collectd_interval: 10
collectd_plugin_write_graphite_host: localhost
collectd_plugin_write_graphite_port: 2003
collectd_plugin_write_prometheus_port: 9103
mon_enable_plugin_mbean: true
mon_enable_plugin_pch: true
mon_metrics_writer_option: 4
logging_configuration:
mon_log_parse: true
mon_log_shipper_option: "1"
mon_log_service_endpoint: example.com:9200
private_logging_enabled: false
logging_type: default
mon_log_path: /path_to_extra_log
ecm_configuration:
cpe:
logging_enabled: true
monitor_enabled: true
css:
logging_enabled: true
monitor_enabled: true
graphql:
logging_enabled: true
monitor_enabled: true
cmis:
logging_enabled: true
monitor_enabled: true
es:
logging_enabled: true
monitor_enabled: trueSome capabilities need you to follow post-deployment steps. For more information, see Completing post-installation tasks.
