blob: fbcd602c0da7a777f55d13525d45c47c1bd83c53 [file] [log] [blame]
Hyunsun Moon636e17d2019-07-03 12:52:15 -05001---
2# Copyright 2019-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16{{- if eq .Values.mme.type "openmme" }}
17---
18apiVersion: v1
19kind: Service
20metadata:
21 name: {{ .Values.mme.name }}
22spec:
23 selector:
24 app: {{ .Values.mme.name }}
25 clusterIP: None
26 ports:
27 - name: s11
28 port: {{ .Values.mme.conf.s11.egtp_default_port }}
29 protocol: UDP
30 - name: s1ap
31 port: {{ .Values.mme.conf.s1ap.sctp_port }}
32 protocol: SCTP
33 - name: s6a
34 port: 3868
35 protocol: TCP
36---
37apiVersion: v1
38kind: Service
39metadata:
40 name: {{ .Values.mme.name }}-external
41spec:
42 selector:
43 app: {{ .Values.mme.name }}
44 type: NodePort
45 ports:
46 - name: s1ap
47 port: {{ .Values.mme.conf.s1ap.sctp_port }}
48 nodePort: {{ .Values.mme.conf.s1ap.sctp_port_external }}
49 protocol: SCTP
50{{- end }}