feat: dodaj Kubernetes manifeste za FastAPI + Postgres
This commit is contained in:
0
manifests/database/deployment.yaml
Normal file
0
manifests/database/deployment.yaml
Normal file
9
manifests/database/pvc.yaml
Normal file
9
manifests/database/pvc.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: fastapi-config
|
||||
namespace: student-petracamber
|
||||
data:
|
||||
DATABASE_HOST: postgres-service
|
||||
DATABASE_PORT: "5432"
|
||||
APP_ENV: production
|
||||
12
manifests/database/service.yaml
Normal file
12
manifests/database/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: postgres-service
|
||||
namespace: student-petracamber
|
||||
spec:
|
||||
selector:
|
||||
app: postgres
|
||||
ports:
|
||||
- port: 5432
|
||||
targetPort: 5432
|
||||
type: ClusterIP # dostupno samo unutar clustera
|
||||
Reference in New Issue
Block a user