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

CKA study material · question 711 of 1000

A hand-written EndpointSlice named my-service-1 exists alongside a selectorless Service named my-service, but the Service still shows no endpoints. What is most likely wrong?

  1. The EndpointSlice lacks the kubernetes.io/service-name label
  2. The EndpointSlice name must match the Service name exactly
  3. EndpointSlices may not be created by hand
  4. The Service needs a matching ownerReference on the EndpointSlice
Show the answer

Answer: A. The EndpointSlice lacks the kubernetes.io/service-name label

An EndpointSlice is associated with its Service by the kubernetes.io/service-name label; the naming convention is only a convention.

Source: Service (Kubernetes) — Defining a Service › Services without selectors

Challenge yourself on this topic → Study as cards