It sounds like you may need to configure your Kubernetes cluster's networking to allow communication between pods. By default, Kubernetes creates a separate network namespace for each pod, which means that pods cannot communicate with each other directly unless you configure networking.
One way to configure networking in Kubernetes is to use a network plugin. There are several network plugins available for Kubernetes, including Calico, Flannel, and Weave Net. These plugins provide different networking models and features, so you should choose the one that best fits your needs.
Once you have chosen a network plugin, you can follow the installation and configuration instructions provided by the plugin's documentation. This will typically involve deploying a set of network agents or daemons to your cluster, and configuring your Kubernetes nodes to use the plugin's networking model.
After you have configured networking, you should be able to communicate between pods using their IP addresses or DNS names. You can test this by running a simple pod-to-pod communication test, such as running a curl command from one pod to another.
I hope this helps! Let me know if you have any other questions.
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.