HOw can I open port for my pod and run it as a api endpoint
I can not ping to my endpoint
I can not run nginx in my pod
How can I open the port?
I created it with RunPodPyTorch 2.4 and global network enabled
10 Replies
@nerdylive I give more detail here
If nginx can not work, have any way to I can open port and navigate it to 8000?
Stack Overflow
Restarting nginx: nginxnginx: [emerg] bind() to 0.0.0.0:80 failed (...
When I try to restart nginx with sudo /etc/init.d/nginx restart I get the message from the subject.
I discovered that the reason is most likely that the script doesn't know how to stop the deamon
you can open any http port i guess
edit pod
oh, I seeee, so, have anyway to I can keep data/config of the container? it alway lost all data affter I turn off -> turn on the pod @nerdylive
container only save on /workspace
also i'd suggest use network storage, so you can terminate pod
and network storage can be shared to many pod
@nerdylive thank you so much, I changed to use "endpoint", it is much better for me, but, I have a concern how can I protect my endpoint? I scared that someone can ddos that
You use api key to access your endpoint, I think it's already protected from ddos too, to make sure try contacting support on website
ah I see, I forgot that point, thank you so much