HI Aidan,
Thank you for your response. It sure clarifies a key point in migrating to DataPower in CP4I.
Thanks,
Paul
Original Message:
Sent: 6/5/2024 4:20:00 PM
From: Aidan Harbison
Subject: RE: DataPower in CP4I
Hi Paul,
In general, it is not recommended to enable and use the DataPower UI in a Kubernetes / OpenShift environment, especially not with multiple replicas. This is because any changes made via the UI will not be persisted in the container, nor replicated to the other Pods in the StatefulSet. Instead, service configuration should be developed elsewhere and deployed to the cluster using ConfigMaps, Secrets, and the DataPowerService custom resource. As for where to develop the configurations, I'd recommend a local DataPower container (e.g., via podman or docker) where you can easily mount the config and local directories to lift out the configuration and files you'd need to deploy to the cluster.
The following documentation can be used as a guide for setting up a local development environment in docker / podman. You can ignore / skip the part about building a custom image if you like; the important part is the run command with file system mounting and the UI port (9090) exposed. Note you may need to customize this to better suite your needs (such as exposing more ports).
https://www.ibm.com/docs/en/datapower-gateway/10.5.x?topic=docker-creating-datapower-application
For working with the DataPowerService in CP4I / OpenShift, I would recommend the following guide:
https://www.ibm.com/docs/en/datapower-operator/1.10?topic=guides-domain-configuration
Hope the above information helps.
Aidan
------------------------------
Aidan Harbison
------------------------------
Original Message:
Sent: Wed June 05, 2024 01:21 PM
From: Paul Dango
Subject: DataPower in CP4I
Hi,
Just starting to work on DataPower CP4I.
When a Datapower is deployed and running in CP4I with multiple replicas, how are updates in the services propagated to the replicas?
The scenario is where one can access the DataPower WEBUI and creates or updates a service with new XSLT/GatewayScript files, TLS profiles, configuration files..etc.
Are the existing pods deleted and new ones created with the updates?
Or are updates to DataPower services or creation of services performed outside of CP4I , and deployed in CP4I using DataPower CRD and operator and oc/kubctl commands? It appears that the DataPower CRD, uses the application domain as the basic unit of deployment?
Thanks,
Paul
------------------------------
Paul Dango
------------------------------