Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add OpenShift + Aiven PostgreSQL demo#168

Open
hevansDev wants to merge 4 commits into
aiven:mainfrom
hevansDev:feat/openshift-postgresql
Open

feat: add OpenShift + Aiven PostgreSQL demo#168
hevansDev wants to merge 4 commits into
aiven:mainfrom
hevansDev:feat/openshift-postgresql

Conversation

@hevansDev

Copy link
Copy Markdown

Summary

  • Adds solutions/openshift-postgresql/: a demo showing how to connect OpenShift workloads to Aiven for PostgreSQL
  • Two provisioning paths: create the database via the Aiven console (Option A, works on Developer Sandbox) or via the Aiven Operator installed with Helm (Option B, requires cluster-admin)
  • Minimal FastAPI app as a deployable starting point, intended to be replaced with the user's own workload
  • Validated end-to-end on Red Hat Developer Sandbox (Option A) and CRC / OpenShift Local (Option B)

Notes

  • The container image currently lives at docker.io/hughevansone/openshift-aiven-pg-demo:v1 — happy to move it to ghcr.io/aiven-labs/ once org package access is sorted
  • Uses the hobbyist (free tier) plan throughout

# The Aiven free tier plan is "hobbyist". It is a single-node instance
# with no backups or high-availability. It is suitable for development
# and demonstration purposes only.
plan: hobbyist

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps developer tier instead of hobbyist (it's a little cheaper)

@@ -0,0 +1,65 @@
import os

import psycopg2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use psycopg (which psycopg3) not 2

@@ -0,0 +1,4 @@
fastapi==0.115.6
uvicorn[standard]==0.34.0
psycopg2-binary==2.9.10

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again psycopg (instead of psycopg2)

@kjaymiller kjaymiller left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my suggestions would be to use the developer tier instead of hobbyist unless we have a reason to use hobbyist.

also you're using psycopg2. I would personally use psycopg (which is psycopg3)

@hevansDev hevansDev requested a review from kjaymiller July 6, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants