How ossmaahmed/paypal works
This repository implements a simulated login flow: a user-facing page collects credentials, a Flask endpoint accepts them, and the endpoint writes them to MySQL. Kubernetes manifests describe deployment, ingress, services, persistent storage, and network policies for the application. The backend-to-database write is visible in source; frontend behavior and manifest-level routing are not sampled, so those relationships are shown only as unverified where useful.
Main entry points: networkpolicy Network policies · index.html Login page · app.py Credential endpoint · deployment-front.yaml Frontend workload
Components 14
Login experience
- Login page
frontend/index.html
Credential handling
- Credential endpoint
backend/app.py - MySQL database
k83/database
Kubernetes workloads
- Frontend workload
k83/frontendapp/deployment-front.yaml - Backend workload
k83/backendapp/deployment-back.yaml - Frontend service
k83/frontendapp/svc-front.yaml - Backend service
k83/backendapp/svc-backend.yaml
Cluster networking and storage
- Ingress
k83/ingress.yaml - Frontend persistent storage
k83/frontendapp/pv-frontend.yaml - Frontend storage claim
k83/frontendapp/pvc-frontend.yaml - Database persistent storage
k83/database/pv-database.yaml - Database storage claim
k83/database/pvc-database.yaml - Network policies
k83/networkpolicy
Other components
- User
Connections 10
- User → Login page: uses
README.md - Login page → Credential endpoint: submits credentials
- Credential endpoint → MySQL database: writes credentials
backend/app.py - Ingress → Frontend service: routes traffic
- Frontend workload → Frontend service: exposed by
- Backend workload → Backend service: exposed by
- Database storage claim → Database persistent storage: claims storage
- Frontend storage claim → Frontend persistent storage: claims storage
- Network policies → Frontend workload: constrains traffic
- Network policies → Backend workload: constrains traffic