KCNA · Question #194
What function does kube-proxy provide to a cluster?
The correct answer is B. Forwarding data to the correct endpoints for Services. Kube-proxy maintains network rules on nodes and performs network proxying for Kubernetes Services, forwarding traffic to the appropriate Pods.
Question
What function does kube-proxy provide to a cluster?
Options
- AImplementing the Ingress resource type for application traffic.
- BForwarding data to the correct endpoints for Services.
- CManaging data egress from the cluster nodes to the network.
- DManaging access to the Kubernetes API.
How the community answered
(47 responses)- B94% (44)
- C4% (2)
- D2% (1)
Why each option
Kube-proxy maintains network rules on nodes and performs network proxying for Kubernetes Services, forwarding traffic to the appropriate Pods.
Ingress controllers, not kube-proxy, are responsible for implementing the Ingress resource for external HTTP/S traffic routing.
Kube-proxy watches the Kubernetes API server for changes to Services and Endpoints, then maintains network rules (e.g., iptables or IPVS) on each node to ensure that network requests directed to a Service's virtual IP address are correctly routed to the healthy Pods backing that Service. This enables stable network access to application workloads regardless of Pod churn.
Managing data egress from cluster nodes is typically handled by network plugins (CNI) and firewall rules, not primarily kube-proxy.
Access to the Kubernetes API is managed by the kube-apiserver and authentication/authorization components, not kube-proxy.
Concept tested: Kubernetes kube-proxy function
Source: https://kubernetes.io/docs/concepts/overview/components/#kube-proxy
Topics
Community Discussion
No community discussion yet for this question.