ibm-oms-pro-prod

by joaquinito2051

Helm chartv6.0.2App 10.0.0Apache-2.0

IBM Order management Software Professional Edition v10 provides cross-channel order orchestration capabilities to enable intelligent brokering of orders across many disparate systems. It also provides a global view of inventory across the supply chain and enables business users to make changes to order process. Documentation For additional details regarding install parameters check http://ibm.biz/oms-helm-readme. License By installing this product you accept the license terms http://ibm.biz/oms-license and http://ibm.biz/oms-apps-license.

About this chart

ibm-oms-pro-prod

Readme for IBM Sterling Order Management Software Professional Edition, version 10.0.

Introduction

This document contains supplementary information about deploying the Sterling Order Management Software Professional Edition, version 10.0. For a comprehensive product documentation, visit IBM Knowledge Center.

Before you begin

Ensure that you set up and configure the database and messaging server because the Helm chart does not automatically install these middleware applications.

Note: You can by default deploy Sterling Order Management Software with Db2 database and MQ messaging by using the Helm chart. If you want to deploy Sterling Order Management Software with a different database and JMS provider, ensure that you customize the certified containers. For more information about customizing the certified containers, see Customizing certified containers.

Prerequisites

Before deploying Sterling Order Management Software, review and complete the following prerequisites:

  • Install the supported version of Kubernetes.

  • Install and configure Helm. For more information about configuring Helm, see Red Hat OpendShift documentation.

  • Install Db2 or Oracle database. For more information about the database versions, see Software Product Compatibility Reports. Ensure that the database is accessible from within the cluster. For more information about the database time zone considerations, see Time zone considerations.

  • Install MQ or any other JMS server. For more information about the system requirements, see Software Product Compatibility Reports. Ensure that the MQ server is accessible from within the cluster.

  • Load the container images to the appropriate container registry. The default images are available in the IBM Entitled Registry. When you are installing the Helm chart, if you want to automatically pull the images, use image pull secret. Alternatively, you can use customized images.

  • Configure container registry and container image to pull them to all Kubernetes worker nodes.

  • Create a Persistent Volume with access mode as 'Read write many' and having a minimum of 10 GB hard disk space.

  • Create a Secret with the datasource connectivity details.

  • Create a Role Based Access Control (RBAC).

  • Configure the agent or integration servers in the Helm chart. For more information about configuring the agent or integration servers, see Configuring agent and integration server.

  • Install PodDisruptionBudget.

    The PodDisruptionBudget ensures that a certain number or percentage of pods with an assigned label are not voluntarily evicted at any point in time. For more information about PodDisruptionBudget, see Disruptions and Specifying a disruption budget for your application.

Note: oc commands are interchangeable with kubectl

Creating a Secret

To create a Secret, complete the following steps:

  1. Configure the values as illustrated in the following <sample_secret_file>.yaml file:

    apiVersion: v1
    kind: Secret
    metadata:
       name: '<Release-name>-oms-secret'
    type: Opaque
    stringData:
      consoleadminpassword: '<liberty console admin password>'
      consolenonadminpassword: '<liberty console non admin password>'
      dbpassword: '<password for database user>'
      tlskeystorepassword: '<Liberty TLS KeyStore password. Required if SSL is enabled and using OpenShift cluster.>'
      trustStorePassword: '<password for custom TrustStore>'
      keyStorePassword: '<password for custom KeyStore>'
    
  2. Pass the name of the Secret as a value to the global.appSecret parameter. ` Note: For the Secret name, it is recommended that you prefix release name.

  3. Run the following command:

      oc create -f <sample_secret_file>.yaml  -n <namespace>
    
    

    A Secret based on the values entered in the <sample_secret_file>.yaml is created and encoded.

Creating a Role Based Access Control (RBAC)

If you are deploying the application on a namespace other than the default namespace, and if you have not created Role Based Access Control (RBAC), create RBAC with the cluster admin role.

The following sample file illustrates RBAC for the default service account with the target namespace as <namespace>.

kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: oms-role-<namespace>
  namespace: <namespace>
rules:
  - apiGroups: ['']
    resources: ['secrets']
    verbs: ['get', 'watch', 'list', 'create', 'delete', 'patch', 'update']

---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: oms-rolebinding-<namespace>
  namespace: <namespace>
subjects:
  - kind: ServiceAccount
    name: default
    namespace: <namespace>
roleRef:
  kind: Role
  name: oms-role-<namespace>
  apiGroup: rbac.authorization.k8s.io

Chart details

The Helm chart creates following resources:

  • ConfigMap with the following resource names:

    • <deployment name>-config - Provides Sterling Order Management Software and Liberty configuration.
    • <deployment name>-def-server-xml-conf - Provides the default server.xml for Liberty. However, if you are using a custom server.xml file, the Helm chart does not create this resource name.
  • Service with the name, <deployment name>, to access the application server by using a consistent IP address.

  • Deployment with the following names:

    • <deployment name>-appserver - Sterling Order Management Software application server.
    • <deployment name>-<server name> - Sterling Order Management Software agent and integration servers that are configured.
    • <deployment name>-healthmonitor- Sterling Order Management Software HealthMonitor agent if you enable health monitor.
  • Jobs with the following names:

    • <deployment name>-datasetup - Set up data for deploying and running the applications, if you enable data setup.
    • <deployment name>-preinstall - Complete the pre-installation activities such as generating ingress, tls, and secret.

    Here,

    • <deployment name> refers to <release name>-ibm-oms-pro-prod, which can be overridden with global.fullNameOverride.
    • <release name> refers to the Helm release name.
    • <server name> refers to the name of agent or integration server.

Time zone considerations

Before deploying the application, ensure that the database, application server, and agent server are all in the same time zone. Also, ensure that the time zone is compatible with locale code as specified in the application.

The containers are by default deployed in UTC time zone and the locale code is set to en_US_UTC. Therefore, ensure that you deploy the database in UTC time zone.

Resources

Minimum requirements

The Helm chart by default uses the following resources:

  • 2560Mi memory for application server.
  • 1024Mi memory for each agent or integration server and health monitor.
  • 1 CPU core for application server.
  • 0.5 CPU core for each agent or integration server and health monitor.

Recommended requirements

To achieve an approximate throughput of:

  • 350 thousand order lines per hour with corresponding inventory calls
  • 3 million inventory item updates or lookups per hour
  • 200 concurrent call center users
  • 1000 concurrent store users

use the following resources:

  • Master node (total resources spread across 3 Power9 machines):

    • 4 CPU cores
    • 24 GB memory
  • Worker nodes (3 worker nodes on 3 separate Power9 machines):

    • 16 CPU cores each
    • 32 GB memory each

Installing the Helm chart

You can install the Helm chart on a new or preloaded database by appropriately configuring the parameters of values.yaml.

Installing the Helm chart on a new database

To install the Helm chart on a new database that does not contain tables and factory data, configure the following parameters.

  • Set the value of datasetup.loadFactoryData to install and datasetup.mode to create.

  • Set the value of datasetup.fixPack.loadFPFactoryData to install and datasetup.fixPack.installedFPNo to 0.

    The application takes appropriate action based on the configured values.

Note: Do not specify any agent or integration server in omserver.servers.name. When you are installing Helm chart on a new database, deploy the application server and configure both agent and integration servers. For more information about deploying the agent and integration servers, see Configuring agent and integration server.

Installing the Helm chart on a preloaded database

To install the Helm chart on a database that contains tables and factory data, configure the following parameters:

  • Set the value of datasetup.loadFactoryData to donotinstall or blank.

  • If you want to apply the fix pack factory setup, set the value of datasetup.fixPack.loadFPFactoryData to install and datasetup.fixPack.installedFPNo to the most recently installed fix pack number.

Configuration parameters in values.yaml

The following table describes the configurable parameters that are applicable for the Helm chart.

ParameterDescriptionDefault
global.licenseSet the value to True to accept the application license.
global.licenseStoreCallCenterSet the value to True to accept the Sterling Store and Commerce Call Center application licenses.
appserver.replicaCountSpecify the number of application server instances to be deployed.1
appserver.deploymentStrategySpecify the deployment strategy for application servers. For more information about deployment strategy, see Deployment strategy.
appserver.imageProvide the container image details for application servers
appserver.exposeRestServiceThis flag is applicable only if the route API (route.openshift.io/v1) exists. If enabled, a new deployment of om-app image is created that exposes /smcfs with a new route prefixed with xapirest.
appserver.config.vendorSpecify the vendor type.websphere
appserver.config.vendorFileSpecify the vendor file.servers.properties
appserver.config.serverNameSpecify the application server name.DefaultAppServer
appserver.config.jvmSpecify minimum and maximum heap size and JVM parameters for the application server.

Deploy ibm-oms-pro-prod with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-oms-pro-prod on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartibm-oms-pro-prod is pinned at v6.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply