<p>Traffic flow to implement:</p>
<pre><code>client ---&gt; Ingress (SSL,LoadBalancer) --&gt; my_web(service) -&gt; PODs
</code></pre>
<p>Ingress:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: foo

spec:
  ingressClassName: nginx

  rules:
    - host: &quot;test.foo.com&quot;
      http:
        paths:
          - pathType: Prefix
            path: &quot;/&quot;
            backend:
              service:
                name: my_web
                port:
                  number: 8080
</code></pre>
<p>Could not connect ingress port 80:</p>
<pre><code>curl http://test.foo.com:80      &lt;--- could not connect
</code></pre>
<p>test.foo.com is mapped to 127.0.0.1 in hosts file.</p>
<p>Could connect to the my_web service (loadBalancer) directly</p>
<pre><code>curl http://localhost:8080    &lt;---- success
</code></pre>
<p>Does ingress expose any port externally?</p>
<p>my_web_service.yaml</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: my_web
  labels:
    app: my_web
spec:
  ports:
    - name: http
      port: 8080
      targetPort: 8080
  selector:
    app: my_web
  type: LoadBalancer
</code></pre>
<p>my_web_deployment.yaml</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: my_web
  labels:
    app: my_web
spec:
  selector:
    matchLabels:
      app: my_web
  template:
    metadata:
      labels:
        app: my_web
    spec:
      containers:
        - image: my_web:latest
          name: my_web
          ports:
            - containerPort: 8080
</code></pre>

eastwater
<p>Ingress itself does not expose ports if you don't configure a loadbalancer service for the ingress implementation.</p>
<p>Use</p>
<p>curl <a href="http://test.foo.com:8080" rel="nofollow noreferrer">http://test.foo.com:8080</a></p>
<p>in your case</p>
