This commit is contained in:
2025-01-29 02:52:07 +01:00
14 changed files with 166 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
dev_env: true
storage:
db:
type: mongodb
mongodb:
host: mongodb
port: 27017
db_name: coopgo_platform
collections:
drivers: solidarity_drivers
passengers: solidarity_passengers
bookings: solidarity_bookings
services:
grpc:
port: 8080
routing:
type: valhalla
valhalla:
base_url: https://valhalla.coopgo.io/

View File

@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: solidarity-service
spec:
selector:
matchLabels:
app: solidarity-service
template:
metadata:
labels:
app: solidarity-service
spec:
containers:
- name: solidarity-service
image: coopgo-platform/solidarity-service
ports:
- name: grpc
containerPort: 8080
protocol: TCP
volumeMounts:
- name: solidarity-service-config-volume
mountPath: /config.yaml
subPath: config.yaml
volumes:
- name: solidarity-service-config-volume
configMap:
name: solidarity-service-config
items:
- key: config.yaml
path: config.yaml

View File

@@ -0,0 +1,9 @@
resources:
- deployment.yaml
- service.yaml
configMapGenerator:
- name: solidarity-service-config
files:
- config.yaml

View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: solidarity-service
spec:
selector:
app: solidarity-service
ports:
- port: 8080
name: grpc
targetPort: 8080