-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
# Conflicts: # docker-compose.yaml
- Loading branch information
Showing
5 changed files
with
44 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
# k8s-image-recognition | ||
|
||
This repository was made for my Final engineering study project at Unilasalle Amiens France, thank you to the staff of the school as well as to the teachers for these 3 years which complete my 6 years of studies in the field of software and system/network engineering. | ||
|
||
A simple Image recognition model exposed on uvicorn, exposed by an Actix reverse proxy, | ||
that runs in a k8s cluster hosted on aws | ||
### Linux/MacOS | ||
It concists in a simple automated k8s cluster build on AWS deploying an actix_web reverse proxy API to call an inference of google/pix2struct model that i trained for french road signs, stored in Huggingface.co. | ||
|
||
CI\CD are building docker images resulting from the main branch's content. | ||
|
||
## How to Use : | ||
```shell | ||
kompose convert -f .\docker-compose.yml | ||
kubectl --kubeconfig=<Path to your configuration> apply -f . | ||
kubectl get pod | ||
kubectl get service | ||
kubectl get deployment | ||
``` | ||
### Linux/MacOS Image build requierments | ||
```shell | ||
echo "HUGGING_FACE_TOKEN=YOUR_HUGGINGFACE_TOKEN_TO_YOUR_MODEL" > ./descrivizio001/.env | ||
``` | ||
### Windows | ||
### Windows build requierments | ||
```shell | ||
New-Item -ItemType File -Path ".\descrivizio001\.env" -Value "HUGGING_FACE_TOKEN=YOUR_HUGGINGFACE_TOKEN_TO_YOUR_MODEL" | ||
``` | ||
|
||
![k8s-load-balanced.drawio.png](doc%2Frsc%2Fimg%2Fk8s-load-balanced.drawio.png) | ||
![k8s-load-balanced.drawio.png](doc%2Frsc%2Fimg%2Fk8s-load-balanced.drawio.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: "3" | ||
|
||
services: | ||
descrivizio001: | ||
image : nakiradu77/k8s-image-recognition-descrivizio001:latest | ||
ports: | ||
- "7777:7777" | ||
hostname: descrivizio001 | ||
|
||
descrivizio001-api: | ||
image: nakiradu77/k8s-image-recognition-descrivizio001-api:latest | ||
ports: | ||
- "8085:8085" | ||
depends_on: | ||
- descrivizio001 |