Study. uk . com
  1. Home
  2. All questions
  3. Question 491

CKA study material · question 491 of 1000

Port-forwarding to a Service is used to test load balancing, but every request hits one Pod. Why?

  1. The Service has only one EndpointSlice
  2. A port-forward to a Service still lands on a single Pod behind it
  3. kube-proxy is bypassed only for NodePort Services
  4. The Service has sessionAffinity set to ClientIP
Show the answer

Answer: B. A port-forward to a Service still lands on a single Pod behind it

Port-forwarding reaches one backend Pod, so it tests the backend rather than the Service's load balancing.

Source: Use Port Forwarding to Access Applications in a Cluster (Kubernetes) — Forward a local port to a port on the Pod

Challenge yourself on this topic → Study as cards