liveBook · Manning

Kube-proxy

As explained in Acing the Certified Kubernetes Administrator Exam, Second Edition

Kube-proxy is the Kubernetes node component that implements network forwarding rules for service traffic to pods.

kube-proxy is a Kubernetes component installed on every node. It enables Service communication by creating forwarding rules that direct Service traffic to the associated Pods. section 1.6 section 2.1.4

Use these operational distinctions when inspecting a cluster:

  • Find kube-proxy among the kube-system Pods running across worker nodes. section 2.1.4
  • Relate a Service to its selected Pods and the forwarding rules kube-proxy creates for that Service. section 1.6 section 2.1.4
  • Check kube-proxy and the cluster CNI when investigating connectivity or network problems. section 8.4

Inspect kube-proxy in kind

Run `kubectl get po -o wide -A | grep worker` and verify a kube-proxy Pod is Running on the worker. In a kind cluster, kube-proxy appears alongside kindnet, while containerd provides the container runtime. section 2.1.4

Figure 1.9 The role of the worker node is to run the application workloads. It also contains kubelet, kube-proxy, and the container runtime (e.g., containerd).
figure

Use the worker-node architecture to locate kube-proxy alongside kubelet and the container runtime, separate from control-plane responsibilities. section 1.6

How Acing the Certified Kubernetes Administrator Exam, Second Edition covers it

How deep it goes
Explains node placement, Service forwarding, and iptables rules, but stops short of detailing rule-generation internals.
Examples
Uses kind worker nodes, kube-system Pod listings, kubectl inspection, kindnet, and containerd to demonstrate placement and operation.
What you can do after
Diagnose/debug with kube-system listings, Service and Deployment ports and labels, kube-proxy status, and CNI presence.
How it connects
Connects Kubernetes Services and Pods with iptables, kube-system, CNI networking, kubelet, and the container runtime.

Also explained in

Compare how 2 books explain kube-proxy →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Certified Kubernetes Administrator Exam, Second Edition. The section links point to the parts of the book it draws on.