<p>I am building a microservice application. I am unable to send request <strong>to one of the services</strong> using postman:</p>
<p>Endpoint I am sending <code>POST</code> request to using postman:</p>
<pre><code>http://cultor.dev/api/project
</code></pre>
<blockquote>
<p>Error : &quot;project-srv&quot; does not have any active Endpoint (ingress-nginx returns 503 error)</p>
</blockquote>
<h3>Note</h3> 
<p>All the other microservices are running fine which use exact same config.</p>
<blockquote>
<p><strong>ingress-nginx config:</strong></p>
</blockquote>
<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata: 
    name: ingress-service 
    annotations: 
        nginx.ingress.kubernetes.io/default-backend: ingress-nginx-controller
        nginx.ingress.kubernetes.io/use-regex: 'true'
spec: 
    rules: 
        - host: cultor.dev 
          http: 
            paths:
              - path: /api/project/?(.*)
                backend: 
                  serviceName: project-srv 
                  servicePort: 3000
              - path: /api/profile/?(.*)
                backend: 
                  serviceName: profile-srv 
                  servicePort: 3000
              - path: /api/users/?(.*) 
                backend: 
                  serviceName: auth-srv 
                  servicePort: 3000
              - path: /?(.*) 
                backend: 
                  serviceName: client-srv 
                  servicePort: 3000
</code></pre>
<blockquote>
<p><strong>ClusterIP services:</strong></p>
</blockquote>
<pre><code>$ kubectl get svc
NAME                TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)             AGE
auth-srv            ClusterIP   10.245.52.208    &lt;none&gt;        3000/TCP            40m
client-srv          ClusterIP   10.245.199.94    &lt;none&gt;        3000/TCP            39m
kubernetes          ClusterIP   10.245.0.1       &lt;none&gt;        443/TCP             24d
nats-srv            ClusterIP   10.245.1.58      &lt;none&gt;        4222/TCP,8222/TCP   39m
profile-srv         ClusterIP   10.245.208.174   &lt;none&gt;        3000/TCP            39m
project-srv         ClusterIP   10.245.131.56    &lt;none&gt;        3000/TCP            39m
</code></pre>
<h3>LOGS</h3>
<blockquote>
<p><strong>inress-nginx:</strong></p>
</blockquote>
<pre><code>45.248.29.8 - - [02/Oct/2020:15:16:52 +0000] &quot;POST /api/project/507f1f77bcf86cd799439011 HTTP/1.1&quot; 503 197 &quot;-&quot; &quot;PostmanRuntime/7.26.5&quot; 591 0.000 [default-project-srv-3000] [] - - - - e1ae0615f49091786d56cab2bb9c94c6
W1002 15:17:59.712320       8 controller.go:916] Service &quot;default/project-srv&quot; does not have any active Endpoint.
I1002 15:17:59.814364       8 main.go:115] successfully validated configuration, accepting ingress ingress-service in namespace default
W1002 15:17:59.827616       8 controller.go:916] Service &quot;default/project-srv&quot; does not have any active Endpoint.
</code></pre>

Karan Kumar
<p>It was error with the labels as suggested by @Kamol Hasan.</p>
<p>The pod selector label in the 'Deployment' config was not matching selector in it's 'Service' config.</p>
