feat: dodaj Kubernetes manifeste za FastAPI + Postgres
This commit is contained in:
9
manifests/config/configmap.yaml
Normal file
9
manifests/config/configmap.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: fastapi-config
|
||||
namespace: student-mirko416
|
||||
data:
|
||||
DATABASE_HOST: postgres-service
|
||||
DATABASE_PORT: "5432"
|
||||
APP_ENV: production
|
||||
6
manifests/config/namespace.yaml
Normal file
6
manifests/config/namespace.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: student-mirko416
|
||||
labels:
|
||||
managed-by: argocd
|
||||
10
manifests/config/secret.yaml
Normal file
10
manifests/config/secret.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: postgres-secret
|
||||
namespace: student-mirko416
|
||||
type: Opaque
|
||||
data:
|
||||
POSTGRES_PASSWORD: c3R1ZGVudDEyMw==
|
||||
POSTGRES_DB: ZmFzdGFwaWRi
|
||||
POSTGRES_USER: ZmFzdGFwaXVzZXI=
|
||||
Reference in New Issue
Block a user