Shaplow
Shaplow
RRunPod
Created by Shaplow on 8/28/2024 in #⛅|pods
How to send request to a pod ?
why can't just have an ip ?
29 replies
RRunPod
Created by Shaplow on 8/28/2024 in #⛅|pods
How to send request to a pod ?
i don't get the proxy thing
29 replies
RRunPod
Created by Shaplow on 8/28/2024 in #⛅|pods
How to send request to a pod ?
i talk with gpt for 3 hours, nothing
29 replies
RRunPod
Created by Shaplow on 8/28/2024 in #⛅|pods
How to send request to a pod ?
i don't get it sorry
29 replies
RRunPod
Created by Shaplow on 8/28/2024 in #⛅|pods
How to send request to a pod ?
i read all
29 replies
RRunPod
Created by Shaplow on 8/28/2024 in #⛅|pods
How to send request to a pod ?
root@88b9feb930bd:/workspace# curl -k https://k8lq4mukjm8ibq-5000.proxy.runpod.net/ping root@88b9feb930bd:/workspace# curl -k http://k8lq4mukjm8ibq-5000.proxy.runpod.net/ping <html> <head><title>301 Moved Permanently</title></head> <body> <center><h1>301 Moved Permanently</h1></center> <hr><center>cloudflare</center> </body> </html> root@88b9feb930bd:/workspace# curl -k http://0.0.0.0:5000/ping {"status":"OK"}
29 replies
RRunPod
Created by Shaplow on 8/28/2024 in #⛅|pods
How to send request to a pod ?
My dockerfile have this : EXPOSE 5000 CMD gunicorn -b 0.0.0.0:5000 routes:app --timeout 0 So i already bind 0.0.0.0
29 replies
RRunPod
Created by Shaplow on 8/28/2024 in #⛅|pods
How to send request to a pod ?
@justin [Not Staff] Thanks for answering ! Assuming I'm a real noob, I don't understand everything, do I have to use nginx? And can I use HTTP://{pod_id}-{internal_port}.proxy.runpod.net/ping for example to test my flask ping route?
29 replies
RRunPod
Created by Shaplow on 8/28/2024 in #⛅|pods
How to send request to a pod ?
def start_runpod_pod(): pod_template = { "cloudType": "CLOUD", "gpuType": "NVIDIA L4", "region": "EU_WEST_1", "numGpus": 1, "container": { "image": "my_image", "ports": "5000/http" }, "volumeInGb": 10, "containerDiskInGb": 10 }
pod = runpod.create_pod("facefusion_pod", pod_template["container"]["image"], pod_template["gpuType"]) return pod['id'] I use this for create a pod if ever
29 replies