initial commit
This commit is contained in:
17
k8s_config/dev/fleets/config.yaml
Normal file
17
k8s_config/dev/fleets/config.yaml
Normal 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
|
||||
31
k8s_config/dev/fleets/deployment.yaml
Normal file
31
k8s_config/dev/fleets/deployment.yaml
Normal 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
|
||||
8
k8s_config/dev/fleets/kustomization.yaml
Normal file
8
k8s_config/dev/fleets/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: fleets-config
|
||||
files:
|
||||
- config.yaml
|
||||
11
k8s_config/dev/fleets/service.yaml
Normal file
11
k8s_config/dev/fleets/service.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: fleets
|
||||
spec:
|
||||
selector:
|
||||
app: fleets
|
||||
ports:
|
||||
- port: 8080
|
||||
name: grpc
|
||||
targetPort: 8080
|
||||
Reference in New Issue
Block a user