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

CKA study material · question 861 of 1000

A Service has endpoints and its selector is correct, yet connections are refused. Which mismatch should be checked next?

  1. The Service's port against the Pod's containerPort
  2. The Service's targetPort against the Pod's containerPort
  3. The Service's nodePort against the Pod's hostPort
  4. The Service's clusterIP against the Pod's IP range
Show the answer

Answer: B. The Service's targetPort against the Pod's containerPort

targetPort is where traffic actually lands on the Pod; when it does not match the container's port the Service has endpoints but nothing answers.

Source: Debug Pods (Kubernetes) — Debugging Services › My service is missing endpoints

Challenge yourself on this topic → Study as cards