KCNA · Question #113
What is the purpose of the kube-proxy?
The correct answer is B. The kube-proxy maintains network rules on nodes.. The kube-proxy maintains network rules on each node, enabling service discovery and load balancing for Kubernetes Services.
Question
What is the purpose of the kube-proxy?
Options
- AThe kube-proxy balances network requests to pods.
- BThe kube-proxy maintains network rules on nodes.
- CThe kube-proxy ensures the cluster connectivity with internet.
- DThe kube-proxy maintains the DNS rules of the cluster.
How the community answered
(40 responses)- A3% (1)
- B88% (35)
- C5% (2)
- D5% (2)
Why each option
The kube-proxy maintains network rules on each node, enabling service discovery and load balancing for Kubernetes Services.
While it contributes to load balancing, its primary mechanism is maintaining network rules, not directly balancing requests in the sense of a traditional load balancer.
The kube-proxy runs on each node and implements the Kubernetes Service concept by maintaining network rules (e.g., iptables or IPVS) to route traffic from a Service IP to the correct backend Pods, ensuring network connectivity within the cluster.
Ensuring cluster connectivity with the internet is typically handled by Ingress controllers, external load balancers, or network gateway configurations, not the kube-proxy itself.
DNS rules for the cluster are maintained by CoreDNS, which is another crucial Kubernetes component, not the kube-proxy.
Concept tested: Kubernetes kube-proxy function
Source: https://kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/
Topics
Community Discussion
No community discussion yet for this question.