Welcome to the Linux Foundation Forum!

Lab 7.1 Why curl on LoadBalancer:NodePort doesn't work ?

I have a question. Why I can't connect to my LoadBalancer IP with the nodeport ?

  1. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
  2. deploy LoadBalancer 10.100.26.91 192.168.50.200 80:31335/TCP 3d app=deploy
  3. kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 30d <none>
  4. nginx ClusterIP 10.109.9.141 <none> 443/TCP 26d app=nginx
  5. registry ClusterIP 10.101.132.79 <none> 5000/TCP 26d app=registry
  6. secondapp LoadBalancer 10.103.86.124 192.168.50.201 80:32000/TCP 112s example=second

curl http://192.168.50.201:80 works but not curl http://192.168.50.201:32000 ?

Comments

  • Hi @SebastienDionne,

    The NodePort is designed to work with the Node/Host IP, as it is a Port of the Node. An external LB may be able to listen on the port with the same value as the nodeport, but that may require additional configuration of the LB.

    Regards,
    -Chris

  • thanks

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training