- Install mysql - kubectl apply -f mysql-deployment.yaml, kubectl apply -f mysql-secret.yaml, kubectl apply -f mysql-storage.yaml
- eval $(minikube docker-env)
- docker built -t myservice .
- docker build -f ModelDockerfile -t mymodel .
- Install roles - kubectl apply -f job-role-deployment.yaml
- Install services - kubectl apply -f fastapi-deployment.yaml
- kubectl port-forward service/mysql 3306:3306
There are 2 services,
- main.py - fastapi - writes and reads from mysql
- modelthreads2.py - responsible for reading from mysql, the jobs which are queued, and spawns a model to update status to finished - this stays alive and processes models.