how to fix pod to pod communication issue

prakash jayaveeran 0 Reputation points
2023-03-20T06:39:06.2933333+00:00

Hello,

we have a AKS cluster and we are using this cluster in our kvm vm now we have deployed our application in kubernetes however we are not able to communicate between pods

when we are trying to do curl we got “no reply from server”

please let me know if we need to do any changes in the network perspective

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,869 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 33,626 Reputation points Microsoft Employee
    2023-03-30T21:15:37.66+00:00

    @prakash jayaveeran

    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.

    0 comments No comments