<p>I am using <code>nginx ingress controller</code> below is the ingress rule file for 2 services:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-ingress
  namespace: kube-system
  annotations:
    kubernetes.io/ingress.class: nginx
    kubernetes.io/ingress.allow-http: &quot;false&quot;
    nginx.ingress.kubernetes.io/ssl-redirect: &quot;false&quot;
    nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;
    nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
  tls:
  - hosts:
    - rewrite.bar.com.com
    secretName: ingress-tls
  rules:
  - host: rewrite.bar.com.com
  - http:
      paths:
      - path: /my-service-1/(.*)
        pathType: Prefix
        backend:
          service:
            name: my-service-1
            port:
              number: 36995
      - path: /my-service-2/(.*)
        pathType: Prefix
        backend:
          service:
            name: my-service-2
            port:
              number: 32243
</code></pre>
<p>Now using below command through shell of service-2 I can curl to the service-1 api endpoint, here I need to pass host ('wire.com') which is TLS enabled as well,</p>
<pre><code>curl --resolve wire.com:443:10.22.148.179 https://wire.com:32243/GetData
</code></pre>
<p>Above curl using host address give me response successfully, no issue here!</p>
<p>Now I am using IP address of the POD instead of host address, but this won't give me response, it's always give error like <code>curl: (52) Empty reply from server</code>. Here <code>10.22.148.179</code> is my ingress public IP address and <code>10.2.0.58</code> is my POD IP address.</p>
<pre><code>curl --resolve enabledservices-dev-aks.honeywell.com:443:10.22.148.179 http//10.2.0.58:32243/GetData
</code></pre>
<p>My goal to hit the POD/service api end point through IP address, is this possible with context of Ingress integrated?</p>

user584018
<p>Moving this from comments to answer.</p>
<hr />
<p>The issue was curl request and HTTP protocol used while the server is serving by HTTPS. This is the reason of <code>(52) Empty reply from server</code> error.</p>
<p>Request by curl should be done by specifying the protocol like:</p>
<pre><code>curl https://test.example.com:8888
</code></pre>
<hr />
<p><code>Ingress</code> is used as a single entry point to the cluster so all inside services can be exposed internally in the cluster using <code>cluster-ip</code> service type - see <a href="https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types" rel="nofollow noreferrer">kubernetes service types</a>.</p>
<p>If any inside service/pod is required to be tested from inside the cluster, request should be executed from the cluster to be able to hit a <code>cluster-ip</code> since <code>cluster-ip</code> is only accessible within the cluster.</p>
