ibm-itxa-prod

by joaquinito2051

Helm chartv1.1.3App 10.0.2Apache-2.0

Data transformation is a required function for most B2B and A2A integration patterns, and is critical in many industries such as Healthcare claims processing and Financial Services payments adjudication. Individual transactions are received from a trading partner in a bulk file. These transactions need to separated, validated (to ensure you have the correct information form the trading partner), translated into an internal format (eg, XML->X12N), and correlated for those trading partners. IBM Sterling Transformation Extender Advanced (ITXA) provides a modular infrastructure for highly available and scalable data transformation and document processing. It provides automated sequencing of document processing functions such as enveloping, de-enveloping, acknowledgement, transformation, metadata capture for transactions, and data for reporting and analytics. Documentation Additional information about installation can be found at https://ibm.biz/Bdfpax. License IBM Transformation Extender Advanced is licensed under https://www.ibm.com/support/customer/csol/terms/?id=L-QWDZ-KN3PGC which must be accepted during the install of the Product.

About this chart

IBM Transformation Extender Advanced v10.0.2.2

What's New

ITXA 10.0.2.2 Certified Container release. See IBM ITXA Documentation for a full list of what's new in ITXA 10.0.2.2.

Introduction

IBM Transformation Extender Advanced (ITXA) includes support for Enveloping, De-enveloping, and processing of Standards based documents. This includes validation and acknowledgement generation. It also supports tranformation via either the IBM Transformation Extender (ITX) or Sterling B2BI Integrator core engines. ITXA can also leverage the ITX Financial Payment, Supply Chain, or HealthCare packs to support industry specific standards.

Notes

  • ITXA user passwords are stored in the database. It is highly recommend that encryption is enabled for the database used for ITXA.

Chart Details

This chart deploys Transformation Extender Advanced on a container management platform with the following resources deployments

  • Create a deployment <release name>-ibm-itxa-prod-itxauiserver for ITXA UI application server with 1 replica by default.
  • Create a deployment <release name>-ibm-itxa-prod-itxadatasetup. It is used for performing Database Initialization Job for ITXA that is required to deploy and run the ITXA application.
  • Create a service <release name>-ibm-itxa-prod-itxauiserver. This service is used to access the ITXA application server using a consistent IP address.
  • Create a ConfigMap itxa-config. This is used to provide ITXA configuration.
  • service-account will be created if the parameter .Values.global.serviceAccount.create is set to true. The service account will be created with name provided in the parameter .Values.global.serviceAccount.name. If the parameter .Values.global.serviceAccount.create is set to false, the service account will not be created and you have to specify already created service account in the parameter .Values.global.serviceAccount.name. If not specified the service account name, then service account default will be used.

Note : <release name> refers to the name of the helm release and <server name> refers to the app server name.

Prerequisites

Quickstart Checklist

Note: The steps below are for a new install. To upgrade from a previous non-containerized install or containerized deployment of ITXA, see Upgrading the Chart below.

  1. Redhat Openshift Container Platform version 4.19, 4.20, 4.21 and 4.22 or Kubernetes Cluster version 1.32 to 1.36 is available.

  2. Ensure that all images are downloaded from the IBM Entitled Registry and pushed to an image registry accessible by the cluster. See Downloading Artifacts for more details.

  3. Download the helm chart from the IBM Charts repository and Extract to a working directory.

  4. If integrating ITXA with B2BI, it is recommended to install ITXA and B2BI in the same namespace. If not you will need to duplicate the Persistent Volume (PV) and create separate Persistent Volume Claims (PVCs) in each namespace.

  5. The ITXA PVC is automatically created for you based on settings in values.yaml under global.persistence section. If you enable dynamic provisioning, the PV will also be created for you at deployment time. If you disable dynamic provisioning, you need to create PV using the sample Persistent Volume yaml below. The storage class you use must support ReadWriteMany (RWX) Storage since the volume will be shared between the ITXA and B2BI Pods.

  6. Determine Subdomain for your cluster using the info from Identify Sub Domain Name of your cluster below. This info will be needed later in values.yaml.

  7. Create The following Kubernetes Secrets per the instructions below: itxa-db-secret, tls-itxa-secret, itxa-ingress-secret and itxa-user-secret.

  8. Create Role, RBAC, Pod Security Policy, Cluster Role, Cluster Rolebinding, and Security Context Constraint using sample yamls below Red Hat OpenShift SecurityContextConstraints Requirements and PodSecurityPolicy Requirements

  9. Configure the proper JDBC driver to match the Database you are using. Populate global.database.dbDriver in values.yaml with valid values ojdbc17-23.26.2.0.0.jar, db2jcc4.jar or mssql-jdbc-13.2.1.jre11.jar for supported databases Oracle, DB2 or MSSQL respectively. For detailed instructions see Specifying the proper database driver below.

  10. Populate necessary sections in the values.yaml that is included with the helm chart.

    1. Set License to true.
    2. Add proper images and tags and pull secret for your repo.
    3. Add proper secret names to match the secrets you created.
    4. Update the itxauiserver.ingress.host to match the appname and subdomain you determined in step 6 above.
  11. User 1001 must have access to the NFS volume mounted via the PVC. How you do this varies depending on what storage provider you are using. In some cases you can do it directly from the NFS share, in other cases you may need to mount the PVC via a container running as root and run:

    • chown -R 1001 /[mounted dir]
    • chgrp -R 0 /[mounted dir]
    • chmod -R 770 /[mounted dir]
  12. If user needs to install any of the packs, refer the section below Adding ITXA Packs to modify the itxa-init-db image, add the packs, and push the new image to your repo. Once db init image is modified with packs, edit values.yaml as shown below. If you are not installing or upgrading any packs, you must still complete this step to do DB setup, just leave all deployPacks settings set to false.

After modifying itxa-init-db image, you can install dbinit and UI server at the same time as follows.

Install ITXA dbinit and UI Server at the same time

Configure image repository to pull the image. Please see Configuring the image repository either at global level or Image level below.

Set itxadbinit to true.

Set the itxaUI to true

Set the packs to true under deployPacks for any pack you want to install or upgrade.

 install:
  itxaUI:
    enabled: true
  itxadbinit:
    enabled: true
	
itxadatasetup:
  dbType: <DB_TYPE>
  deployPacks:
    edi: true
    fsp: true
    hc: true
```	

Before installing, you should dry run your configuration to validate the generated manifests and verify them against the cluster:
`helm install <releasename> -f ibm-itxa-prod/values.yaml ./ibm-itxa-prod --timeout 3600s --debug --dry-run`

Then run helm install pointing to the values.yaml you've been editing. For example to use the values.yaml and helm charts in the default ibm-itxa-prod directory run:  
`helm install <releasename> -f ibm-itxa-prod/values.yaml ./ibm-itxa-prod --timeout 3600s --debug`.  

This will initialize the Database with the proper tables.  This can take several minutes to an hour depending on database latency and resources. This will also install the ITXA UI.
	
Then, run  `helm upgrade` with the same command line you ran for helm install above.
	
   Verify the ITXA UI pod comes up and you can connect to it via `https://[hostname]/spe/myspe` with ID "admin" and the password you specified in the parameter `adminPassword` of `itxa-user-secret.yaml` file.
   Hostname should match the app and subdomain name you determined above.  For example `https://itxa.mycluster.mydomain.com`


## Detailed Instructions


## Installing the Chart (Installing the ITXA UI Server)

Prepare a custom values.yaml file based on the [Configuration](#Configuration) section. Ensure that application license is accepted by setting the value of `global.license` to true.

Note:

1. Ensure that all the sections in values.yaml like global, itxauiserver, itxadatasetup and metering are correctly populated before installing ITXA UI Server. A sample values.yaml is provided in the helm charts.


### Helm Install

### Configure  repository (Below content explains how to configure the repository (NFS Share folder) on a NFS server.)
Refer the URL for NFS server: https://www.linuxtechi.com/setup-nfs-server-on-centos-8-rhel-8/
Make sure you have set the permissions on the repository correctly.
You can do that by mounting the above folder into a node and execute below cmds on NFS server.

- `sudo chown -R 1001 /[mounted dir]`
- `sudo chgrp -R 0 /[mounted dir]`
- `sudo chmod -R 770 /[mounted dir]`

The above cmds make sure the repository folders and files have right permissions for the pods to access them.
As mentioned, the owner of the files in repository folders, is the user 1001 and group as root.
Also the rwx permissions are 770.

### Identify Sub Domain Name of your cluster

- Steps to find Sub Domain Name. 
  You would need this information when you need to provide a hostname to provide to ingress and in sign-in certificates.
  Taking an example of a cluster web console URL - `https://console-openshift-console.somename.os.mycompany.com`
  1. Identify the cluster name in the console URL, for eg somename is the cluster name.
  2. Identify the base domain which is placed after the cluster name. In above the base domain is os.mycompany.com.
  3. So sub domain name is derived as - app.<cluster name>.<base domain> i.e. apps.somename.os.mycompany.com

# Install Persistent related objects in Openshift

- Note - The charts are bundled with sample files as templates , you can use these to plugin in your configuration and create pre-req objects. They are packaged in prereqs.zip along with the chart.

1. Download the charts from IBM site.
2. Create a storage class and persistent volume with access mode as 'Read Write Many' with minimum 12GB space.

- Create persistent volume, itxa_pv.yaml file as below -

```yaml
apiVersion: v1
kind: PersistentVolume
metadata:
  name: itxa-pv
  labels:
    intent: itxa-logs
spec:
  accessModes:
  - ReadWriteMany
  capacity:
    storage: 12Gi
  nfs:
    path: /shared/nfs
    server: my.nfs.server.com
  persistentVolumeReclaimPolicy: Retain
  storageClassName: itxa-sc

oc create -f itxa_pv.yaml

  • Create a Storage class, file itxa_sc.yaml as below -
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: itxa-sc
parameters:
  type: pd-standard
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
volumeBindingMode: Immediate

oc create -f itxa_sc.yaml

  • Create a Database secret, file itxa-db-secret.yaml as below -
apiVersion: v1
kind: Secret
metadata:
  name: itxa-db-secret
type: Opaque
stringData:
  dbUser: xxxx
  dbPassword: xxxx
  dbHostIp: "1.2.3.4"
  databaseName: dbname
  dbPort: "50000"
  #The following dbCurrentSchema parameter is added to mention schema name for DB2(schema name should be in CAPS).
  dbCurrentSchema: xxxx

oc create -f itxa-db-secret.yaml

  1. Create a secret tls-itxa-secret.yaml with a password for Liberty Keystore pkcs12.
apiVersion: v1
kind: Secret
metadata:
  name: tls-itxa-secret
type: Opaque
stringData:
  tlskeystorepassword: [tlskeystore password]

oc create -f tls-itxa-secret.yaml Password can be anything, it will be used by Liberty for keystore access. You will need to mention this secret name in Values.global.tlskeystoresecret field.

  1. If you choose to create a self signed certificate for ingress, please follow below steps. Create certificate and key for ingress - ingress.crt and key ingress.key This is for creating the cert allowing the ingress object to enable HTTPS for ITXA. Prereq is to select a ingress host for launching ITXA.

e.g. machine-specific ingress host. Pleae note the ingress host should end in the subdomain name of your machine.

cmd - openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./ingress.key -out ./ingress.crt -subj "/CN=[ingress_host]/O=[ingress_host]"

cmd - oc create secret tls itxa-ingress-secret --key ingress.key --cert ingress.crt

  • You need to refer this secret name into values.yaml - itxauiserver.ingress.ssl.secretname
  • Also enable ssl by setting itxauiserver.ingress.ssl.enabled to true.

For production environments it is strongly recommended to obtain a CA certified TLS certificate and create a secret manually such as in the steps below.

  1. Obtain a CA certified TLS certificate for the given itxauiserver.ingress.host in the form of key and certificate files.
  2. Create a secret from the above key and certificate files by running:
	oc create secret tls <release-name>-ingress-secret --key <file containing key> --cert <file containing certificate> -n <namespace>
  1. Use the created secret as the value for the parameter itxauiserver.ingress.ssl.secretname.

  2. Set the following variables in the values.yaml

    1. Set the Registry from where you will pull the images- e.g. global.image.repository: "cp.icr.io/ibm-itxa"
    2. Set the image names - e.g. itxauiserver.image.name: itxa-ui-server e.g. itxauiserver.image.tag: 10.0.1.3-x86_64
    3. Set the ingress host
      • Note: The ingress host should end in same subdomain as the cluster node.
    4. Check the ingress tls secret name is set correctly as per cert created above, in place of itxauiserver.ingress.ssl.secretname

Steps to set a default Password

  1. Before installing ITXA UI Server create a secret file itxa-user-secret.yaml.

Example: Replace <ADMIN_USER_PASSWORD> with password

apiVersion: v1
kind: Secret
metadata:
  name: "<secrets_name>"
type: Opaque
stringData:
  adminPassword: "<ADMIN_USER_PASSWORD>"

Deploy ibm-itxa-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-itxa-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-itxa-prod is pinned at v1.1.3 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