Skip to content

Commit

Permalink
added service
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Dec 11, 2019
1 parent 243243d commit 1b4d33a
Showing 1 changed file with 36 additions and 7 deletions.
43 changes: 36 additions & 7 deletions helm/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{- $fullName := include "mojaloop-simulator.fullname" . -}}
apiVersion: v1
kind: Service
metadata:
name: {{ template "mojaloop-simulator.fullname" . }}
name: {{ $fullName }}-sim-backend
labels:
app: {{ template "mojaloop-simulator.name" . }}
chart: {{ template "mojaloop-simulator.chart" . }}
Expand All @@ -10,12 +11,40 @@ metadata:
spec:
type: {{ .Values.config.service.type }}
ports:
{{- range .Values.config.service.ports }}
- port: {{ .port }}
targetPort: {{ .targetPort }}
protocol: {{ .protocol }}
name: {{ .name }}
{{- end }}
- port: 4001
protocol: TCP
name: outboundapi
- port: 3002
protocol: TCP
name: reportapi
- port: 3003
protocol: TCP
name: testapi
selector:
app: {{ template "mojaloop-simulator.name" . }}
release: {{ .Release.Name }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ $fullName }}-scheme-adapter
labels:
app: {{ template "mojaloop-simulator.name" . }}
chart: {{ template "mojaloop-simulator.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: {{ .Values.config.service.type }}
ports:
- port: 4000
protocol: TCP
name: inboundapi
- port: 3002
protocol: TCP
name: reportapi
- port: 3003
protocol: TCP
name: testapi
selector:
app: {{ template "mojaloop-simulator.name" . }}
release: {{ .Release.Name }}

0 comments on commit 1b4d33a

Please sign in to comment.