You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create an API for model inference using Flask and Gunicorn. However, when I attempt to access it via localhost:31111, the connection is refused.
In my app.py, I've set up a health check endpoint at "/" to ensure the application is running correctly. Here's a snippet of the code:
This Flask application is configured to run on port 5000 inside the container, as specified in my Dockerfile and Kubernetes deployment configuration. Additionally, I'm using Gunicorn to serve the application within the container. Here's how I'm running it in my Dockerfile:
Now, for Kubernetes deployment and service configuration, I have the following YAML files:
I've tested the API inside the pod, and it works fine. However, when I try to access it from the host machine, the connection is refused.
Could you please guide me on resolving this issue?
The text was updated successfully, but these errors were encountered:
I'm trying to create an API for model inference using Flask and Gunicorn. However, when I attempt to access it via localhost:31111, the connection is refused.
In my app.py, I've set up a health check endpoint at "/" to ensure the application is running correctly. Here's a snippet of the code:
This Flask application is configured to run on port 5000 inside the container, as specified in my Dockerfile and Kubernetes deployment configuration. Additionally, I'm using Gunicorn to serve the application within the container. Here's how I'm running it in my Dockerfile:
Now, for Kubernetes deployment and service configuration, I have the following YAML files:
I've tested the API inside the pod, and it works fine. However, when I try to access it from the host machine, the connection is refused.
Could you please guide me on resolving this issue?
The text was updated successfully, but these errors were encountered: