feat: dodaj Kubernetes manifeste za FastAPI + Postgres

This commit is contained in:
2026-05-19 11:31:33 +02:00
parent d05b3e7079
commit 47d82861a8
9 changed files with 174 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: student-mihaeljanjic
labels:
managed-by: argocd

View File

@@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: postgres-secret
namespace: student-mihaeljanjic
type: Opaque
data:
POSTGRES_PASSWORD: c3R1ZGVudDEyMw== # student123
POSTGRES_DB: ZmFzdGFwaWRi # fastapidb
POSTGRES_USER: ZmFzdGFwaXVzZXI= # fastapiuser