diff --git a/z2/README.md b/z2/README.md index 413be49..fb4ae95 100644 --- a/z2/README.md +++ b/z2/README.md @@ -1,23 +1,15 @@ -# Flask + PostgreSQL Kubernetes Deployment - -This project deploys a Flask web application with a PostgreSQL backend using Kubernetes. - -## 🛠 Structure +# Flask + PostgreSQL Kubernetes WebApp +## 📁 Project Structure - `app/`: Flask source code (`main.py`, `requirements.txt`) -- `k8s/`: Kubernetes manifests for deployments, services, namespace, etc. -- `Dockerfile`: Builds the Flask app image -- `prepare-app.sh`: Builds Docker image and prepares volumes -- `start-app.sh`: Applies all Kubernetes objects -- `stop-app.sh`: Deletes all Kubernetes resources -- `statefulset.yaml`: Defines StatefulSet, PV, and PVC +- `k8s/`: All Kubernetes manifests +- `Dockerfile`: For building the Flask app image -## 🚀 Steps to Deploy - -1. **Prepare the application:** - ```bash - ./prepare-app.sh +## 🛠️ Setup +### Build the Flask Image +```bash +./prepare-app.sh hafzal03@LAPTOP-ELUS3HGM:~/mypro/z2$ kubectl get pods -n webapp-namespace NAME READY STATUS RESTARTS AGE