From the course: Google Cloud Professional Cloud Architect Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Running minikube with FastAPI for Kubernetes development

Running minikube with FastAPI for Kubernetes development

From the course: Google Cloud Professional Cloud Architect Cert Prep

Running minikube with FastAPI for Kubernetes development

- [Instructor] Here I have a GitHub repo that has a fast API microservice inside of it that has a container file as well. Let's go ahead and take a look at the structure. In this, we have a main PY and this is where the main microservice code lives. And I also have logic built into a directory. Inside this directory, I have a couple of functions here. I have something that will randomly give me different fruits. I also have a little bit of logic. You can build up as many pieces of logic as you want and then incorporate them into routes. At this point as well, because I'm using fast API, I have access to slash docs, which is a swagger implementation. This allows me to look at the API endpoints and experiment with them without having to have a a UI built. Finally, we have a Docker file right here, which is great. This allows me to containerize my application and push it either into a container registry and let it run in inside of the container registry. Or also I can run it locally with…

Contents