Problem in running Gigaspace application in K8s

Cluster information:

Kubernetes version: Major: 1, Minor: 22
Cloud being used: (put bare-metal if not on a public cloud) bare-metal
Installation method:
Host OS: Windows

Hello team.
I am currently trying to deploy an application using Gigaspaces on K8s. I have GSM started inside a container running in POD1 and GSA started inside a container running in POD2.Problem is GSA uses a random port because of which my GSM is not able to communicate with GSA running inside POD2.

K8s does not allow opening all ports, also it does not support adding a new container inside already running POD. If we put containers running GSM and GSA inside a same POD, GSM is able to get the GSA. But I can not put them in the same deployment file because my helm chart1 is going to start GSM and afterwards another helm chart2 is going to start GSA.

Can someone help me to resolve this issue?
Thanks and Regards,
Pranoday