How Kube-proxy manages service to pod mapping - How Kube-proxy work in a Kubernetes Cluster.

networknutsdotnet Video 7 months ago

Description

In this video you will learn how in a Kubernetes cluster, "kube-proxy" help in service to pod mapping.

Kube-Proxy is a Kubernetes agent installed on every node in the cluster. Kube-proxy runs as a daemonset. It monitors the changes that happen to Service objects and their endpoints. Then it translates these changes into actual network rules inside the node.

When new Services or endpoints are added or removed, the API server communicates these changes to the Kube-Proxy.

Kube-proxy ensures that traffic can reach the correct services and that the services can be accessed from outside the cluster. kube-proxy operates at the cluster level and manages traffic distribution based on the defined services within Kubernetes.

In the context of Kubernetes, Kube-proxy uses iptables, random mode, to create and manage rules that route traffic between services and their corresponding pods.


Video Timeline:

00:00 - 08:45 - Understanding Kube-proxy working
08:46 - 20:21 - Deploying application and checking how Kube-proxy work