blob: 24ddc0fee1fd2f996e94543409ad065946870709 [file] [log] [blame]
Hyunsun Moon06f98552019-08-15 13:44:47 -06001{{/*
2Copyright 2019-present Open Networking Foundation
Hyunsun Moon636e17d2019-07-03 12:52:15 -05003
Hyunsun Moon06f98552019-08-15 13:44:47 -06004Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/}}
16
Hyunsun Mooned24cac2019-08-26 20:52:20 -050017{{- $configJson := index .Values.config.mme.cfgFiles "config.json" }}
18{{- $configJsonS11 := index $configJson "s11" }}
19{{- $configJsonS1ap := index $configJson "s1ap" }}
20---
21# Additional service for identity
22apiVersion: v1
23kind: Service
24metadata:
25 name: mme
26 labels:
27{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
28spec:
29 selector:
30{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
31 ports:
32 - name: s6a
33 port: 3868
34 protocol: TCP
Hyunsun Moon636e17d2019-07-03 12:52:15 -050035---
36apiVersion: v1
37kind: Service
38metadata:
Hyunsun Moon16d70922019-08-25 04:57:25 -050039 name: mme-s11
Hyunsun Moon06f98552019-08-15 13:44:47 -060040 labels:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060041{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050042spec:
43 selector:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060044{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon16d70922019-08-25 04:57:25 -050045{{- if .Values.config.mme.s11.nodePort.enabled }}
46 type: NodePort
47{{- end }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050048 ports:
49 - name: s11
Hyunsun Mooned24cac2019-08-26 20:52:20 -050050 port: {{ index $configJsonS11 "egtp_default_port" }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050051 protocol: UDP
Hyunsun Moon16d70922019-08-25 04:57:25 -050052 {{- if .Values.config.mme.s11.nodePort.enabled }}
53 nodePort: {{ .Values.config.mme.s11.nodePort.port }}
54 {{- end }}
55---
56apiVersion: v1
57kind: Service
58metadata:
59 name: mme-s6a
60 labels:
61{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Mooned24cac2019-08-26 20:52:20 -050062{{- if .Values.config.mme.s6a.nodePort.enabled }}
63 type: NodePort
64{{- end }}
Hyunsun Moon16d70922019-08-25 04:57:25 -050065spec:
66 selector:
67{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
68 ports:
Hyunsun Moon636e17d2019-07-03 12:52:15 -050069 - name: s6a
70 port: 3868
71 protocol: TCP
Hyunsun Mooned24cac2019-08-26 20:52:20 -050072 {{- if .Values.config.mme.s6a.nodePort.enabled }}
73 nodePort: {{ .Values.config.mme.s6a.nodePort.port }}
74 {{- end }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050075---
76apiVersion: v1
77kind: Service
78metadata:
Hyunsun Moon16d70922019-08-25 04:57:25 -050079 name: mme-s1ap
Hyunsun Moon06f98552019-08-15 13:44:47 -060080 labels:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060081{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050082spec:
83 selector:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060084{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050085 type: NodePort
86 ports:
87 - name: s1ap
Hyunsun Mooned24cac2019-08-26 20:52:20 -050088 port: {{ index $configJsonS1ap "sctp_port" }}
89 nodePort: {{ index $configJsonS1ap "sctp_port_external" }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050090 protocol: SCTP