Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

Kubernetes / Services, DNS & Traffic Routing

Find a Service selector that matches no application Pods

A Service object can exist and have an IP while selecting the wrong labels. Compare its selector with the actual Pod labels.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Kubernetes · kubectl with supported client/server versions and delegated RBAC. Examples use namespace app unless noted. Check context, namespace, APIs and provider support first.

Start with this check

Check which system and tools you are using. Replace example objects, namespaces, images, file paths and hosts with approved values. Remove sensitive information before sharing output. Follow the application owner’s process for changes.

kubectl -n app get service web -o yaml
kubectl -n app get pods --show-labels

What the results mean

The Service selector and namespaced labels show intended matching. A matching Pod still needs eligible endpoint readiness and correct application ports.

Fix the cause and check again

Correct label or selector drift in the managed resources, then inspect EndpointSlices and test the intended service request.

Before changing production

Do not broaden selectors to unrelated Pods or change labels without reviewing other controllers and policies.

Share this article

Back to all articles