- Home
- All questions
- Question 859
CKA study material · question 859 of 1000
Which command lists the EndpointSlices belonging to a Service named web?
Show the answer
Answer: B. kubectl get endpointslices -l kubernetes.io/service-name=web
EndpointSlices are associated with their Service by the kubernetes.io/service-name label, so a label selector is how they are listed.
Source: Debug Pods (Kubernetes) — Diagnosing the problem › Debugging Services