Correct, that is the Cluster IP of my LoadBalancer service.

My Pods are listening on port 8090. I tried to curl port 80 because I figured 
the LoadBalancer listens on 80 and 443 and directs the request to my 
nginx-ingress.

But I also tried to curl port 8090 from inside a node: "curl 
10.59.246.49:8090/" and I get this "(7) Failed to connect to 10.59.246.49 port 
8090: Connection timed out".

I can, however, curl the Cluster IP of the nginx-ingress running in the node: 
"curl 10.56.0.9:8090/" => { "message": "success!" }.

Here's the YML of my LoadBalancer:

---
apiVersion: v1
kind: Service
metadata:
  name: api
  labels:
    app: api
spec:
  type: LoadBalancer
  ports:
    - port: 80
      targetPort: 8090
      protocol: TCP
      name: http
    - port: 443
      targetPort: 8090
      protocol: TCP
      name: https
  selector:
    app: nginx-ingress


-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to