Welcome to the Linux Foundation Forum!

connecting from outside cluster not working

Hi, i'm at 3.5.6 and after getting an ipv4 using curl ifconfig.me i cannot acces the nginx app.
the port in my case is different (31616). what can be the problem?

thanks

Answers

  • telcomx
    telcomx Posts: 15

    are you following below steps?

    ubuntu@ip-172-31-21-182:~$ kubectl get svc
    NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
    kubernetes ClusterIP 10.96.0.1 443/TCP 22h
    nginx LoadBalancer 10.96.138.125 80:32704/TCP 11s
    ubuntu@ip-172-31-21-182:~$
    ubuntu@ip-172-31-21-182:~$
    ubuntu@ip-172-31-21-182:~$
    ubuntu@ip-172-31-21-182:~$
    ubuntu@ip-172-31-21-182:~$ curl ifconfig.io
    18.220.33.141

  • chrispokorni
    chrispokorni Posts: 2,155

    Hi @angel.olivares,

    Are you running the lab in the cloud or local? If local, can your host reach the VM's network?

    Regards,
    -Chris

  • Hi, thanks for your replies.
    I'm running the nodes in local, i can access thee nodes from the host's terminal and able to curl the cluster ip and endpoints from the cp as in previous steps 3.4.26. curl from host to public ip timed out too

  • chrispokorni
    chrispokorni Posts: 2,155

    Hi @angel.olivares,

    What type of network interface do you have on your VMs, and how do they get assigned public IPs?
    What IPs are returned by curl ifconfig.io and curl ifconfig.me? (feel free to mask the last two octets of both IPs)

    Regards,
    -Chris

  • Hi, I've been looking into this and recently run onto the same issue when testing another application. it turns out that my ISP has something called CGNAT activated wich prevents resolving incoming traffic and you can't do things like running a server for example. I have to pay to desactivate this but once done it should work.

Categories

Upcoming Training