feat: dodaj Kubernetes manifeste za FastAPI + Postgres

This commit is contained in:
2026-05-19 10:32:03 +02:00
parent f1957949c6
commit d5ca84bd40
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-nikolahrkac
data:
DATABASE_HOST: postgres-service
DATABASE_PORT: "5432"
APP_ENV: production

View File

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

View File

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