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

What is Ingress network, and how does it work?

Pragya Keshap answered on December 24, 2022 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • Ingress
  • Ingress
  • Getting Started with Ingress

  • What is Ingress network, and how does it work?

    0

    Ingress network is a collection of rules that acts as an entry point to the Kubernetes cluster. This allows inbound connections, which can be configured to give services externally through reachable URLs, load balance traffic, or by offering name-based virtual hosting. So, Ingress is an API object that manages external access to the services in a cluster, usually by HTTP and is the most powerful way of exposing service.

    Now, let me explain to you the working of Ingress network with an example.

    There are 2 nodes having the pod and root network namespaces with a Linux bridge. In addition to this, there is also a new virtual ethernet device called flannel0(network plugin) added to the root network.

    So, the packet leaves pod1’s network at eth0 and enters the root network at veth0.

    Then it is passed on to cbr0, which makes the ARP request to find the destination and it is found out that nobody on this node has the destination IP address.

    So, the bridge sends the packet to flannel0 as the node’s route table is configured with flannel0.

    Now, the flannel daemon talks to the API server of Kubernetes to know all the pod IPs and their respective nodes to create mappings for pods IPs to node IPs.

    The network plugin wraps this packet in a UDP packet with extra headers changing the source and destination IP’s to their respective nodes and sends this packet out via eth0.

    Now, since the route table already knows how to route traffic between nodes, it sends the packet to the destination node2.

    The packet arrives at eth0 of node2 and goes back to flannel0 to de-capsulate and emits it back in the root network namespace.

    Again, the packet is forwarded to the Linux bridge to make an ARP request to find out the IP that belongs to veth1.

    The packet finally crosses the root network and reaches the destination Pod4.

    https://kubernetes.io/docs/concepts/services-networking/ingress/#:~:text=Ingress%20exposes%20HTTP%20and%20HTTPS,defined%20on%20the%20Ingress%20resource.&text=An%20Ingress%20may%20be%20configured,offer%20name%2Dbased%20virtual%20hosting.

    Popularity 3/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Feb 11 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0
    Popularity 3/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Dec 24 2022
    Deepika Sahu
    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.