Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Flask API Kubernetes Pod #36

Open
RWShelton opened this issue Oct 23, 2024 · 3 comments · May be fixed by #43
Open

Create Flask API Kubernetes Pod #36

RWShelton opened this issue Oct 23, 2024 · 3 comments · May be fixed by #43
Assignees

Comments

@RWShelton
Copy link
Contributor

No description provided.

@RWShelton
Copy link
Contributor Author

RWShelton commented Dec 23, 2024

Committed an initial set of changes today including the Dockerfile and a baseline python file including flask and Psycopg for connecting to a local DB. Next step is the database connection on Kubernetes, then after that I'll publish the docker image, deploy it on the dev cluster, and get to working on the SQL queries for each of our MVP endpoints.

@RWShelton
Copy link
Contributor Author

Image is built and the pod deployment is running in K8s, but currently getting a crash backoff. Potentially a problem with loading the image, troubleshooting further.

@RWShelton
Copy link
Contributor Author

I'll copy this comment to the parent ticket as it's relevant for both:

The API is now networked to the DB pod. I've created two endpoints, one that gets a plot via an accession code, and one that gets all plots in the database. I've also included a document about how to set up port forwarding for local testing. It's in a separate file right now, but I'm planning to move it into one condensed document tomorrow. Next steps for the API are creating the joins that will connect the plot data up to observations and the rest of the necessary tables to get a complete view of the data.

@RWShelton RWShelton linked a pull request Feb 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant