City and temperature and humidity registration project
This project contains temperature and humidity information of a city written in Batflask and displayed to the user as json. This program reads the data from the json file and stores it in the database. And in two types of container and orchestration infrastructure.
-
git clone [email protected]:miaad-akbari/Flask-App.git
-
pip install -r requirements.txt
-
python3 app.py
-
git clone [email protected]:miaad-akbari/Flask-App.git
-
docker build -t my-app:0.1.0 .
-
docker tag my-app:0.1.0 registry/my-app:0.1.0
-
docker push registry/my-app:0.1.0
-
docker run -d --namee app-flask -p 5000:5000 registry/my-app:0.1.0
-
docker ps
-
docker logs -f app-flask
-
git clone [email protected]:miaad-akbari/Flask-App.git
-
helm create helm
-
change file value.yaml and deployment.yaml and service.yaml
-
cp template/deployment.yaml ../ && cp template/service.yaml
-
helm package .
-
helm install helm ./helm-package.tgz:0.1.0 -f value.yaml
-
kubectl get all
-
git clone [email protected]:miaad-akbari/Flask-App.git
-
cd manifest/
-
kubectl create ns app
-
kubectl apply -f full-dep.yaml -n app
-
kubectl get pv,pvc -n app
-
kubectl get po -n app
-
kubectl get svc -n app && kubectl get svc -n app -o wide