Summary
NotesThe application is now running on OpenShift: built into a container image that runs as any user, configured with a ConfigMap and a Secret, storing its data on a persistent volume, checked by health probes, and published over HTTPS with a Route. OpenShift can build new versions straight from Git, and monitor the application with its own Prometheus.
From the first health check API to here, that’s the whole journey: a FastAPI web application with a database, web pages, authentication, registration, administration, payments and monitoring, deployed on a container platform.
Code
The example code at this point is tagged ch13-openshift in the example repository. To get it:
git clone https://github.com/codewalkr/fastapi-example-for-you.git
cd fastapi-example-for-you
git checkout ch13-openshift