blob: b8b6a3061fb04f0d641a405c8bb03899d7c44e9e [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---
Hyunsun Moon636e17d2019-07-03 12:52:15 -050021apiVersion: v1
22kind: Service
23metadata:
Hyunsun Moon16d70922019-08-25 04:57:25 -050024 name: mme-s11
Hyunsun Moon06f98552019-08-15 13:44:47 -060025 labels:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060026{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050027spec:
28 selector:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060029{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon16d70922019-08-25 04:57:25 -050030{{- if .Values.config.mme.s11.nodePort.enabled }}
31 type: NodePort
32{{- end }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050033 ports:
34 - name: s11
Hyunsun Mooned24cac2019-08-26 20:52:20 -050035 port: {{ index $configJsonS11 "egtp_default_port" }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050036 protocol: UDP
Hyunsun Moon16d70922019-08-25 04:57:25 -050037 {{- if .Values.config.mme.s11.nodePort.enabled }}
38 nodePort: {{ .Values.config.mme.s11.nodePort.port }}
39 {{- end }}
40---
41apiVersion: v1
42kind: Service
43metadata:
44 name: mme-s6a
45 labels:
46{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Mooned24cac2019-08-26 20:52:20 -050047{{- if .Values.config.mme.s6a.nodePort.enabled }}
48 type: NodePort
49{{- end }}
Hyunsun Moon16d70922019-08-25 04:57:25 -050050spec:
51 selector:
52{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
53 ports:
Hyunsun Moon636e17d2019-07-03 12:52:15 -050054 - name: s6a
55 port: 3868
56 protocol: TCP
Hyunsun Mooned24cac2019-08-26 20:52:20 -050057 {{- if .Values.config.mme.s6a.nodePort.enabled }}
58 nodePort: {{ .Values.config.mme.s6a.nodePort.port }}
59 {{- end }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050060---
61apiVersion: v1
62kind: Service
63metadata:
Hyunsun Moon16d70922019-08-25 04:57:25 -050064 name: mme-s1ap
Hyunsun Moon06f98552019-08-15 13:44:47 -060065 labels:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060066{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050067spec:
68 selector:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060069{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050070 type: NodePort
71 ports:
72 - name: s1ap
Hyunsun Mooned24cac2019-08-26 20:52:20 -050073 port: {{ index $configJsonS1ap "sctp_port" }}
74 nodePort: {{ index $configJsonS1ap "sctp_port_external" }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050075 protocol: SCTP