kubernetes
network_error
ai_generated
true
couldn't find service: default/my-service
ID: kubernetes/service-not-found
88%Fix Rate
90%Confidence
50Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 8 | active | — | — | — |
Root Cause
Service doesn't exist or has no backing pods (no matching selector).
genericWorkarounds
-
95% success Verify service exists and selector matches pod labels
kubectl get svc my-service -o yaml | grep selector && kubectl get pods -l app=my-app
Sources: https://kubernetes.io/docs/concepts/services-networking/service/
-
88% success Check endpoints: kubectl get endpoints my-service
kubectl get endpoints my-service
Sources: https://kubernetes.io/docs/concepts/services-networking/service/#endpoints
Dead Ends
Common approaches that don't work:
-
Create service without selector
70% fail
Service exists but routes to nothing
-
Use pod IP directly
80% fail
Pod IP changes on restart, breaks connectivity
Error Chain
Frequently confused with: