Shaplow
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
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
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
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