initial commit

This commit is contained in:
2024-11-04 01:22:29 +01:00
commit 23c38fe67b
44 changed files with 1307 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
dev_env: true
storage:
db:
type: mongodb
mongodb:
host: mongodb
port: 27017
db_name: coopgo_platform
collections:
vehicles: fleet_vehicles
bookings: fleet_bookings
services:
grpc:
port: 8080

View File

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

View File

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

View File

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