Can’t start web app on 80 port cpu based pod
Hi everyone!
I have a web app. I used nginx for configuration proxy.
I started an app via http-server with port 4000, which is also opened via tcp.
I expose tcp ports 80 and 443 on start of the pod.(I am not sure, maybe I should open Http ports 80 and 443)
When I try to open ip address, I did not see my site.
Did I miss something?
I am mostly interested in port exposing, because I do not understand how this affects my configs.
Thank you in advanced!
Solution:Jump to solution
you cant pick what port you want to have external if you exposed port XX TCP it will get random assigned port
SO PORT yyyy WILL POINT TO INTERNAL PORT xx...
5 Replies
And also, on start cpu pod with Runpod Ubuntu it has predefined /etc/nginx/nginx.conf. Should I change it according my config?
nope external ports are always random
Ok, but my main question how to start my app. If you have some instructions, how to create do that, it will be really helpful. Because for now I can’t understand where is the problem. Or we can somehow create it like a cookbook for the site.
Or you mean, that my external pod port should be 443, but I can’t configure it now?
Solution
you cant pick what port you want to have external if you exposed port XX TCP it will get random assigned port
SO PORT yyyy WILL POINT TO INTERNAL PORT xx
Got it! Thanks