This project deploys a basic sentiment analyser using docker and kubernetes. Emphasis will be more on kubernetes
This application has three microservices
- FrontEnd - ReactJS
- Webapp Server - Java/Spring
- Logic - Python/Flask
Docker Run commands:
- docker run -d -p 5050:5000 chaitu0406/sentiment-analysis-logic
- docker inspect
- docker run -d -p 8080:8080 -e SA_LOGIC_API_URL="http://172.17.0.3:5000" chaitu0406/sentiment-analysis-web-app
- docker run -d -p 8888:80 chaitu0406/sentiment-analysis-frontend
Open localhost:8888 and you should be able to access and play the application
Important Kubernetes commands
- minikube start
- minikube service - info abt the service
- minikube service list - List all services
- kubectl apply -f
- kubectl delete deployment
- kubectl delete service
- kubectl get all
- kubectl get deployments
- kubectl get pods
- kubectl get svc
- kubectl get nodes
- minikube stop
Installation Links: https://phoenixnap.com/kb/install-node-js-npm-on-windows (NodeJS and npm) (Java missing) https://mkyong.com/maven/how-to-install-maven-in-windows/ (Maven) https://www.nginx.com/resources/wiki/start/topics/tutorials/install/ (nginx) https://medium.com/@JockDaRock/minikube-on-windows-10-with-hyper-v-6ef0f4dc158c (minikube and kubectl)