feat: dodaj Kubernetes manifeste za FastAPI + Postgres

This commit is contained in:
Ivan Filipovic
2026-05-25 00:36:06 +02:00
parent 20813dcae7
commit 259844cc5f
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-ivanivso7
data:
DATABASE_HOST: postgres-service
DATABASE_PORT: "5432"
APP_ENV: production

View File

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

View File

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