Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Pod-to-Pod Networking

Sumit Rawal answered on May 6, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • how to get the ip of a pod ?
  • kubernetes get inside pod
  • k8s login to pod
  • connect to a pod
  • kubectl cp command from pod to local
  • accessing kube api from a pod
  • kubectl top pod
  • kubernetes run bash on pod
  • what is a pod?
  • copy data to kubernetes pod
  • how get pods in kuber
  • Creating Pods
  • What are K8s Pods?
  • command inside pod
  • kubernetes pod
  • What is a pod in Kubernetes?
  • what is pods in kubernetes
  • docker equivalent to kubectl describe pod
  • What is a Pod?
  • Introduction to pods#
  • How will a service know which pods should receive their requests?
  • Getting Started with Pods
  • Which of the following is a better approach to run Pods?
  • Creating a pod with docker image#
  • What is a Pod in Kubernetes, and why is it the smallest deployable unit?
  • Pods with a single container:
  • what are pods in kubernetes
  • K8s pod command

  • Pod-to-Pod Networking

    0

    In Kubernetes, every node has a designated CIDR range of IPs for Pods. This would ensure that every Pod gets a unique IP address that can be seen by other Pods in the cluster and also ensures that when a new Pod is created, the IP address never overlaps. Unlike Container-to-Container networking, Pod-to-Pod communication happens using real IPs, whether the Pod is deployed on the same node or a different node in the cluster.

    You can notice from the diagram above that, for Pods to communicate with each other, the traffic has to flow between the Pod network namespace and the Root network namespace. This is achieved by connecting both the Pod namespace and the root namespace by a virtual ethernet device or a veth pair (veth0 to Pod namespace 1 and veth1 to Pod namespace 2 in the diagram). Both these virtual interfaces would be connected via a virtual network bridge which will then allow traffic to flow between them using the ARP protocol.

    So if data is sent from Pod 1 to Pod 2, the flow of events would like this ( refer to diagram above )

    Pod 1 traffic flows through eth0 to the root network namespaces virtual interface veth0.

    Then traffic goes via veth0 to the virtual bridge which is connected to veth1.

    Traffic goes via the virtual bridge to veth1.

    Finally, traffic reaches eth0 interface of Pod 2 via veth1.  

    Popularity 2/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 06 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.