add diags services

This commit is contained in:
2024-11-20 17:21:09 +01:00
parent bb0fe1ee9f
commit 882403258b
8 changed files with 82 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
dev_env: true
storage:
db:
type: mongodb
mongodb:
host: mongodb
port: 27017
db_name: coopgo_platform
collections:
events: diags
services:
grpc:
port: 8080

View File

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

View File

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

View File

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