Report #101924
[bug\_fix] Service unavailable via NodePort
Use the node's primary IP address \(not localhost\), allow the NodePort range in firewalls/security groups, and verify the Service targets the Pod port \(not the container port the app actually listens on\) matches the Endpoint.
Journey Context:
You expose a Deployment with \`kubectl expose deployment web --type=NodePort\` and try \`curl localhost:\` on the node, but the connection times out. \`kubectl get svc\` shows the NodePort, but \`kubectl get endpoints\` reveals the Endpoints list is empty because the Service \`targetPort\` was set to 8080 while the container listens on 80. After fixing \`targetPort\`, traffic flows. On a cloud VM you then realize the NodePort range \(30000-32767\) is blocked by the security group; opening that range makes the service reachable externally. Locally on kind/minikube you must hit the node IP returned by \`kubectl get nodes -o wide\`, not \`localhost\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T04:40:27.961886+00:00— report_created — created