Kubernetes Networking in 5 Minutes

Kubernetes Pod scheduling on Nodes

How Does Kubernetes Networking Compared to Docker Networking?

  • The packet leaves the pod 1 network and enters the root network at veth0
  • Then the packet passes on to the Linux bridge (cbr0) whose responsibility is to make an ARP request to find the destination.
  • After the bridge realizes that this pod doesn’t have the destination address, the packet comes back to the main network interface eth0.
  • The packet now leaves the node 1 to find its destination on the other node and enters the route table who routes the packet to the node whose CIDR block contains the pod4.
  • So, now the packet reaches node2 and then the bridge takes the packet which makes an ARP request to find out that the IP belonging to veth0.
  • Finally, the packet crosses the pipe-pair and reaches pod4.

Services

  • Now, there are various service types that give you the option for exposing a service outside of your cluster IP address.

ClusterIP: This is the default service type which exposes the service on a cluster-internal IP by making the service only reachable within the cluster.

Ingress Network

--

--

--

I am an IT professional, having 10 years of IT experience. I have worked on DevOps, AWS, Azure, GCP, Kubernetes etc Technologies.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

if..else if…else, switch, and ternaries

December Development Update

Functional programming in Python

Chain of Responsibility in a real world refactoring example

Modern Desktop

An Object Oriented Framework for Product Requirements Development

attr’s in Ruby

BigQuery ‘Review’

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Prakash Waikar

Prakash Waikar

I am an IT professional, having 10 years of IT experience. I have worked on DevOps, AWS, Azure, GCP, Kubernetes etc Technologies.

More from Medium

Kubernetes Rolling Updates & Rollbacks — Chapter 11

Kubernetes and its Use-Cases

Kubernetes