skip to content
Alvin Lucillo

Unable to reach svc within a pod

/ 1 min read

When service name is correct and curl fails when it’s accessed within a pod in the cluster, one common mistake is that the service assumes a port and target port (e.g., 8080) but the pod has no specific port and its image is nginx, which has default port 80. To fix that, modify the service to reflect the right port number.