Configuring local Command Line Adapter 2 (CLA2) on Certified Container
On a Certified Container deployment, the CLA2 server is not launched in the ASI pod by default. To setup and launch a local CLA2 server inside each ASI node or pod, you must perform certain additional configuration changes during the Certified Container deployment.
Launch the CLA2 Server
setupCfg:
...
...
SANDBOX_LAUNCH_CLA2_SERVER: true
setupCfg:
...
...
#CLA2 configurations
launchClaServer: true
Map external scripts or files for CLA2 server
External scripts or files required to be executed by the CLA2 server can be made available to the local CLA2 server either through the resources volume, if enabled and configured, or through the resources or extra init container configured for the ASI pod.
If resources volume is enabled and configured as part of the Certified Container deployment, the scripts or files to be executed by the local CLA2 server can be placed in the external mapped resources path location. While configuring the CLA2 Adapter, set the working directory to /ibm/resources.
- If resources init container option is enabled, extend
the resources init image by adding the required scripts
and files to the location /ibm/resources. For more
details, refer to Building Custom Init Container Image. Configure the extended
image for the resourcesInit section in the helm values
configuration override file. Note: While configuring the CLA2 Adapter, the working directory needs to be set to /ibm/resources.
- Build an entirely new image to bundle the scripts and
files required by the local CLA2 server and copy the
artifacts to a directory location. For more details,
refer to Building Custom Init Container Image. Make
sure the Docker file is updated to copy the required
files as needed. Then, the new image should be
configured as an extra init
container for the ASI pod in the helm configuration
override file. For example:
asi: … extraInitContainers: - name: cla2server image: “image-registry.openshift-image-registry.svc:5000/b2bi- cla2:1.0" imagePullPolicy: IfNotPresent command: shareVolume: true localMountPath: /b2bi/cla2/ appMountPath: /ibm/cla2/
Note: While configuring the CLA2 Adapter, the working directory needs to be set to appMountPath from the above extra init configuration example viz. /ibm/cla2.Note: In Sterling B2B Integrator v6.2.0.0, only the resources init image option is available for mounting CLA2 scripts/resources.Note: From Sterling B2B Integrator v6.2.0.1 onwards, the extraInitContainer configurations is available to mount a local path to an application mount path.
CLA2 adapter configurations
- Set the Remote Name to either
localhost or
127.0.0.1.Tip: It is recommended to set the Remote Name to either localhost or the localhost loopback IP 127.0.0.1. Setting it to the local pod IP is not recommended as it may change when the pod restarts or upgrades.
- Set the Remote Port to the configured base port + 52.
Note: Base port value is configured in the setupCfg section (setupCfg.basePort) of the helm configuration values override file.
- Set the working directory to the mapped resources or init container location viz. /ibm/resources or appMountPath-/ibm/cla2 - from the extra init container configuration.
For rest of the CLA2 adapter configurations, refer to Configuring CLA2.
PROPERTY_cla2server_enableAuthentication: true/false
PROPERTY_cla2server_SSLRequired: "Yes/No"
CLA2 TLS Configurations
PROPERTY_cla2server_CLA2TLSVersion: TLSv1.3
, orPROPERTY_cla2server_CLA2TLSVersion: TLSv1.2