A Service with No Endpoints
kubectl get endpointslices -l kubernetes.io/service-name=web shows no endpoints, although Pods of the web app are Running and Ready. What is the most likely cause?
kubectl get endpointslices -l kubernetes.io/service-name=web
Choose one answer
The Service's selector doesn't match the labels on the Pods, so no Pod is selected as an endpoint.
selector
The Service is ClusterIP, which only publishes endpoints to Pods in the same namespace.
The Service's targetPort doesn't match any containerPort declared by the Pods.
targetPort
containerPort
The Pods run on a node that hasn't registered with kube-proxy yet.