feat: dodaj Kubernetes manifeste za FastAPI + Postgres

This commit is contained in:
2026-05-19 10:46:45 +02:00
commit 385b4815cf
9 changed files with 177 additions and 0 deletions

View File

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

View File

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

View File

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