Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 1 | --- |
| 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 | --- |
| 18 | apiVersion: v1 |
| 19 | kind: Service |
| 20 | metadata: |
| 21 | name: {{ .Values.mme.name }} |
| 22 | spec: |
| 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 | --- |
| 37 | apiVersion: v1 |
| 38 | kind: Service |
| 39 | metadata: |
| 40 | name: {{ .Values.mme.name }}-external |
| 41 | spec: |
| 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 }} |