feat: dodaj Kubernetes manifeste za FastAPI + Postgres

This commit is contained in:
2026-05-19 11:09:58 +02:00
parent a8d946f53e
commit 321df82e3b
9 changed files with 136 additions and 0 deletions

View File

View File

@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: fastapi-config
namespace: student-petracamber
data:
DATABASE_HOST: postgres-service
DATABASE_PORT: "5432"
APP_ENV: production

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: postgres-service
namespace: student-petracamber
spec:
selector:
app: postgres
ports:
- port: 5432
targetPort: 5432
type: ClusterIP # dostupno samo unutar clustera