blob: 0747919ec6bdcadfc813a06515f084c768e65162 [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 Moon636e17d2019-07-03 12:52:15 -050017---
18apiVersion: v1
19kind: Service
20metadata:
Hyunsun Moon16d70922019-08-25 04:57:25 -050021 name: mme-s11
Hyunsun Moon06f98552019-08-15 13:44:47 -060022 labels:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060023{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050024spec:
25 selector:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060026{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon16d70922019-08-25 04:57:25 -050027{{- if .Values.config.mme.s11.nodePort.enabled }}
28 type: NodePort
29{{- end }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050030 ports:
31 - name: s11
Hyunsun Moon16d70922019-08-25 04:57:25 -050032 port: {{ .Values.config.mme.appConfig.s11.egtp_default_port }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050033 protocol: UDP
Hyunsun Moon16d70922019-08-25 04:57:25 -050034 {{- if .Values.config.mme.s11.nodePort.enabled }}
35 nodePort: {{ .Values.config.mme.s11.nodePort.port }}
36 {{- end }}
37---
38apiVersion: v1
39kind: Service
40metadata:
41 name: mme-s6a
42 labels:
43{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
44spec:
45 selector:
46{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
47 ports:
Hyunsun Moon636e17d2019-07-03 12:52:15 -050048 - name: s6a
49 port: 3868
50 protocol: TCP
51---
52apiVersion: v1
53kind: Service
54metadata:
Hyunsun Moon16d70922019-08-25 04:57:25 -050055 name: mme-s1ap
Hyunsun Moon06f98552019-08-15 13:44:47 -060056 labels:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060057{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050058spec:
59 selector:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060060{{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050061 type: NodePort
62 ports:
63 - name: s1ap
Hyunsun Moon16d70922019-08-25 04:57:25 -050064 port: {{ .Values.config.mme.appConfig.s1ap.sctp_port }}
65 nodePort: {{ .Values.config.mme.appConfig.s1ap.sctp_port_external }}
Hyunsun Moon636e17d2019-07-03 12:52:15 -050066 protocol: SCTP