How javiermedinag2/practica-kubernetes works
Biblioteca is a small Flask book-catalog application deployed with MongoDB on Kubernetes. Users reach the web service to view the catalog, look up a book by ID, or submit a book; Flask performs the corresponding MongoDB reads and inserts. The manifest also defines MongoDB persistence and a startup wait for database availability. The application and seed script were inspected; deployment relationships are based on the README, not an inspection of the manifest contents.
Main entry points: biblioteca.yaml MongoDB · app.py Flask application · init-mongo.js Initial books
Components 12
Catalog application
- Flask application
web/app.py - Welcome route
web/app.py - List books
web/app.py - Find book
web/app.py - Add book
web/app.py
Book storage
- MongoDB
k8s/biblioteca.yaml - Initial books
bd/init-mongo.js
Kubernetes deployment
- Web service
k8s/biblioteca.yaml - Persistent volume
k8s/biblioteca.yaml - Flask workload
k8s/biblioteca.yaml - Database wait
k8s/biblioteca.yaml
Other components
- Reader
Connections 13
- Reader → Web service: requests
readme.md - Web service → Flask application: routes to
readme.md - Flask application → Welcome route: dispatches
web/app.py - Flask application → List books: dispatches
web/app.py - Flask application → Find book: dispatches
web/app.py - Flask application → Add book: dispatches
web/app.py - List books → MongoDB: reads books
web/app.py - Find book → MongoDB: queries book
web/app.py - Add book → MongoDB: inserts book
web/app.py - Initial books → MongoDB: inserts books
bd/init-mongo.js - Flask workload → Web service: serves through
readme.md - Database wait → MongoDB: waits for
readme.md - MongoDB → Persistent volume: stores data on
readme.md