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

CKA study material · question 875 of 1000

A Service selects app=hostnames but its EndpointSlice shows no endpoints, while the Pods are Running. What should be inspected?

  1. The Pods' labels, which may use a different key such as run=
  2. The Pods' readiness probes
  3. The Service's sessionAffinity setting
  4. The namespace's ResourceQuota
Show the answer

Answer: A. The Pods' labels, which may use a different key such as run=

An empty endpoint list means the Service's spec.selector does not match the Pods' metadata.labels; a key mismatch such as app= against run= is the classic case.

Source: Debug Services (Kubernetes) — Does the Service have any EndpointSlices?

Challenge yourself on this topic → Study as cards