Which Kubernetes component is primarily responsible for routing service traffic and managing IP rules?

Prepare for the Kubernetes Certified Network Administrator (KCNA) exam with our detailed tests. Use flashcards and multiple choice questions, complete with hints and explanations, to enhance your learning experience. Get exam-ready today!

Multiple Choice

Which Kubernetes component is primarily responsible for routing service traffic and managing IP rules?

Explanation:
Kube-proxy handles routing service traffic and managing IP rules. It runs on every node and watches Services and Endpoints in the cluster, then configures the node’s networking (iptables or IPVS rules) so that requests directed at a service IP are forwarded to one of the healthy pods backing that service. It also handles simple load balancing across endpoints and updates the rules as pods scale up or down. CoreDNS is responsible for service name resolution inside the cluster, not traffic routing. Kubelet is the node agent that starts and monitors containers and pods on a node. Etcd is the cluster’s key-value store that persists state, not traffic routing.

Kube-proxy handles routing service traffic and managing IP rules. It runs on every node and watches Services and Endpoints in the cluster, then configures the node’s networking (iptables or IPVS rules) so that requests directed at a service IP are forwarded to one of the healthy pods backing that service. It also handles simple load balancing across endpoints and updates the rules as pods scale up or down.

CoreDNS is responsible for service name resolution inside the cluster, not traffic routing. Kubelet is the node agent that starts and monitors containers and pods on a node. Etcd is the cluster’s key-value store that persists state, not traffic routing.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy