Update z2/README.md
This commit is contained in:
parent
1a77e8d933
commit
f0091a1282
24
z2/README.md
24
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
|
||||
|
Loading…
Reference in New Issue
Block a user