A basic 3D static webapp deployed on Kubernetes cluster.
The app has multiple endpoints which you play with. The app is deployed on a Kubernetes cluster and is accessible via a LoadBalancer service.
- / - The main page
- health - Health check endpoint
- /score - enpoint which take json input and returns the score json
- /docs - micro doc page
- /meta - meta data of the app
- Clone the repo
docker build --tag ritesh2000/ml-score-api .
docker run --rm --name test-api -p 5000:5000 -d ritesh2000/ml-score-api
curl http://localhost:5000/
docker push ritesh2000/ml-score-api
docker rm -f test-api
-- to remove the container(empty port 5000)
After a sucessful test on docker, you can deploy the app on a Kubernetes cluster.
kubectl apply -f kubernetes/namespace.yaml
kubectl apply -f kubernetes/deployment.yaml
kubectl apply -f kubernetes/service.yaml
http://localhost:5000/
--Test all the endpoints
A dynamic todo app deployed on Kubernetes cluster.
- Clone the repo
kubectl create ns todo
-- Create a namespacekubectl apply -f todo-sql-app/deploy/todo-v1.yaml
-- Deploy the appstern todo
-- Check the tail-logskubectl port-forward todo-app-7cdfc755c-cq2g2 3000:3000
-- Forward the portkubectl apply -f todo-sql-app/deploy/todo-service.yaml
kubectl get service todo
kubectl apply -f todo-sql-app/deploy/mysql-v1.yaml
-- Deploy mysqlstern mysql
-- Check the tail-logskubectl apply -f todo-sql-app/deploy/todo-v2.yaml
-- Deploy the app with mysql