blob: 4e03f28a6369f45a32e1452af770da42dbfb8063 [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001{{/*
2# Copyright 2020-present Open Networking Foundation
3
Ajay Lotan Thakur03189d22022-02-10 14:06:03 -06004# SPDX-License-Identifier: Apache-2.0
badhri854c028b32021-11-03 18:24:05 -05005*/}}
6
7{{- if .Values.config.gnbsim.deploy }}
8---
9apiVersion: v1
10kind: Service
11metadata:
12 name: gnbsim
13 labels:
14{{ tuple "gnbsim" . | include "5g-ransim-plane.metadata_labels" | indent 4 }}
Badhrinath Padmanabhana0c93b72022-11-21 21:53:00 -060015{{- with .Values.config.gnbsim.serviceAnnotations }}
16 annotations:
17 {{- toYaml . | nindent 4 }}
18{{- end }}
badhri854c028b32021-11-03 18:24:05 -050019spec:
Ajay Lotan Thakur82c4bec2022-09-02 13:51:45 -060020 type: {{ .Values.config.gnbsim.serviceType }}
badhri854c028b32021-11-03 18:24:05 -050021 selector:
22{{ tuple "gnbsim" . | include "5g-ransim-plane.metadata_labels" | indent 4 }}
23 ports:
24 - name: ngapp
25 port: {{ .Values.config.gnbsim.ngapp.port }}
26 protocol: SCTP
Ajay Lotan Thakur82c4bec2022-09-02 13:51:45 -060027 - name: http-api
28 port: {{ .Values.config.gnbsim.httpServer.port }}
29 protocol: TCP
Badhrinath Padmanabhana0c93b72022-11-21 21:53:00 -060030{{- if .Values.config.gnbsim.httpServer.nodePort.enabled }}
31 nodePort: {{ .Values.config.gnbsim.httpServer.nodePort.port }}
32{{- end }}
Ajay Lotan Thakureadf7702022-09-30 00:02:58 -060033{{- if .Values.config.gnbsim.goProfile.enable }}
Ajay Lotan Thakur484545b2022-02-28 14:39:16 -060034 - name: profile-http
Ajay Lotan Thakureadf7702022-09-30 00:02:58 -060035 port: {{ .Values.config.gnbsim.goProfile.port }}
Ajay Lotan Thakur484545b2022-02-28 14:39:16 -060036 protocol: TCP
37{{- end }}
badhri854c028b32021-11-03 18:24:05 -050038{{- end }}