This project explores the usage of kubernetes to deploy the front end and backend of the immo eliza deployment in separate pods. It is currently designed to run locally.
+---fast_api
| main.py
|
+---models
| cat_boost.pkl
| kitchen_ordinal.pkl
| linear_regression.pkl
| one_hot.pkl
| random_forest.pkl
| state_building_ordinal.pkl
|
+---streamlit
| slapp.py
| using_api.py
| Dockerfile
| service.yaml
| streamlit_pod.yaml
| requirements.txt
| .gitattributes
| Dockerfile
| service.yaml
| api_pod.yaml
| README.md
| requirements.txt
- Install kubernetes and create a cluster.
- Create pods using the files api_pod.yaml and streamlit/streamlit_pod.yaml
- Create services using the files streamlit/service.yaml and service.yaml
- Run the services using
minikube service streamlit-service minikube service fastapi-service
You may have to run the 2 lines in 2 separate instances of the CLI.
- Find a free way to delploy this kubernetes cluster globally.
This project took three days for completion.
This project was done as part of the AI Boocamp at BeCode.org.
Connect with me on LinkedIn.