GitFred validation sample

โ— app-postgres ยท Python / FastAPI + PostgreSQL

A FastAPI app using GitFred's managed PostgreSQL addon. Before this page could render, GitFred provisioned a dedicated schema and role, injected DATABASE_URL, and ran python migrate.py as a pre-rollout Job. The number below is read live from the database on every request.

What's in the repo

๐Ÿ main.py
FastAPI app
๐Ÿ—„๏ธ migrate.py
release command
๐Ÿ“„ requirements.txt
fastapi + psycopg
๐Ÿณ Dockerfile
non-root USER

How it gets to your browser

๐Ÿ“ฆGitHub repoapp + migration
โ†’
๐Ÿ”จkaniko buildimage built in-cluster
โ†’
๐Ÿ—„๏ธmigrate Jobpython migrate.py before rollout
โ†’
๐ŸŸขapp podnon-root, $PORT
โ†’
๐Ÿ˜PostgreSQLDATABASE_URL, tenant schema, TLS

Rows in the hits table (live query)

1

What this proves

Live runtime values

current_schema()app_15
$PORT (injected by GitFred)8080
Pod hostnameweb-5d7c75bcf4-657b9