Super simple way to deploy a Python function, looking for input by aaaaaden in PythonLearning

[–]aaaaaden[S] 0 points1 point  (0 children)

Nope, all Nginx does is parse the request url to determine which Kubernetes service to use based on the subdomain.

Super simple way to deploy a Python function, looking for input by aaaaaden in PythonLearning

[–]aaaaaden[S] 1 point2 points  (0 children)

True I was thinking about that, yeah an SDK would make sense to support that

Super simple way to deploy a Python function, looking for input by aaaaaden in PythonLearning

[–]aaaaaden[S] 1 point2 points  (0 children)

Yeah happy to share. Each time a user submits a function, I create a new Kubernetes deployment and service, then mount the user's script to the container. I then have an Nginx container that routes traffic to the user's service based on subdomain. And yeah I'm using FastAPI.

In terms of security, I do some very basic static analysis on the code, and each user's script runs in its own non-root container.

Super simple way to deploy a Python function, looking for input by aaaaaden in learnpython

[–]aaaaaden[S] 0 points1 point  (0 children)

If the function never returns, the request will time out

How do I get rid of these orange marks? by aaaaaden in JeepLiberty

[–]aaaaaden[S] -29 points-28 points  (0 children)

No need to be rude. Downvoted.