Deploying multiple ZIETrans applications in Kubernetes without Scaling:

To package multiple ZIETrans applications into the same container and deploy them on Kubernetes, follow these steps. We've also provided links to the Dockerfile and Helm chart to assist you:

Build Docker Image and HelmChart files.

In the provided Dockerfile, ensure the inclusion of ZIETrans ear files in the dropins folder of the Liberty Server.

If you intend to enable remote admin console support for these ZIETrans applications following steps have to be considered additionally:

  1. Add a jvm.options file. Ensure that you specify the appropriate port for JMX, as this port will be used for enabling remote admin support through Management scope of the ZIETrans Admin Console.

Example:

-Dcom.sun.management.jmxremote.port=8888
  1. Add server.xml to enable JMX related features as provided in the above Docker file reference link.

  2. Note that we have added updatepod.sh file in the docker file, which assigns the POD IP to the the below jvm properties in jvm.options file.

-Djava.rmi.server.hostname=$POD_IP
  1. The wrapper.sh file in the docker, runs the updatepod.sh before starting the liberty server.

  2. After building the docker file, add the image name in HELM chart and install the chart. Post deployment, user can access the ZIETrans application with below URL

http://localhost:9080/<zietrans-project>

Note:

  1. Ports and application names are examples, to be replaced with actual values.

  2. If you do not intend to enable runtime configuration to be outside, you can comment out the line "/copyruntime.sh" in he wrapper.sh file.