feat: dodaj Kubernetes manifeste za FastAPI + Postgres

This commit is contained in:
2026-05-19 10:36:57 +02:00
parent c7c4e1023c
commit cb15d1441d
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-<vas-username>
data:
DATABASE_HOST: postgres-service
DATABASE_PORT: "5432"
APP_ENV: production

View File

@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: student-<vas-username> # zamijenite <vas-username>
labels:
managed-by: argocd

View File

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