Hyunsun Moon | 06f9855 | 2019-08-15 13:44:47 -0600 | [diff] [blame] | 1 | {{/* |
| 2 | Copyright 2019-present Open Networking Foundation |
Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 3 | |
Hyunsun Moon | 06f9855 | 2019-08-15 13:44:47 -0600 | [diff] [blame] | 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 | |
Hyunsun Moon | ed24cac | 2019-08-26 20:52:20 -0500 | [diff] [blame^] | 17 | {{- $configJson := index .Values.config.mme.cfgFiles "config.json" }} |
| 18 | {{- $configJsonS11 := index $configJson "s11" }} |
| 19 | {{- $configJsonS1ap := index $configJson "s1ap" }} |
| 20 | --- |
| 21 | # Additional service for identity |
| 22 | apiVersion: v1 |
| 23 | kind: Service |
| 24 | metadata: |
| 25 | name: mme |
| 26 | labels: |
| 27 | {{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 28 | spec: |
| 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 Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 35 | --- |
| 36 | apiVersion: v1 |
| 37 | kind: Service |
| 38 | metadata: |
Hyunsun Moon | 16d7092 | 2019-08-25 04:57:25 -0500 | [diff] [blame] | 39 | name: mme-s11 |
Hyunsun Moon | 06f9855 | 2019-08-15 13:44:47 -0600 | [diff] [blame] | 40 | labels: |
Hyunsun Moon | 7a007bb | 2019-08-19 16:41:36 -0600 | [diff] [blame] | 41 | {{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 42 | spec: |
| 43 | selector: |
Hyunsun Moon | 7a007bb | 2019-08-19 16:41:36 -0600 | [diff] [blame] | 44 | {{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
Hyunsun Moon | 16d7092 | 2019-08-25 04:57:25 -0500 | [diff] [blame] | 45 | {{- if .Values.config.mme.s11.nodePort.enabled }} |
| 46 | type: NodePort |
| 47 | {{- end }} |
Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 48 | ports: |
| 49 | - name: s11 |
Hyunsun Moon | ed24cac | 2019-08-26 20:52:20 -0500 | [diff] [blame^] | 50 | port: {{ index $configJsonS11 "egtp_default_port" }} |
Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 51 | protocol: UDP |
Hyunsun Moon | 16d7092 | 2019-08-25 04:57:25 -0500 | [diff] [blame] | 52 | {{- if .Values.config.mme.s11.nodePort.enabled }} |
| 53 | nodePort: {{ .Values.config.mme.s11.nodePort.port }} |
| 54 | {{- end }} |
| 55 | --- |
| 56 | apiVersion: v1 |
| 57 | kind: Service |
| 58 | metadata: |
| 59 | name: mme-s6a |
| 60 | labels: |
| 61 | {{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
Hyunsun Moon | ed24cac | 2019-08-26 20:52:20 -0500 | [diff] [blame^] | 62 | {{- if .Values.config.mme.s6a.nodePort.enabled }} |
| 63 | type: NodePort |
| 64 | {{- end }} |
Hyunsun Moon | 16d7092 | 2019-08-25 04:57:25 -0500 | [diff] [blame] | 65 | spec: |
| 66 | selector: |
| 67 | {{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 68 | ports: |
Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 69 | - name: s6a |
| 70 | port: 3868 |
| 71 | protocol: TCP |
Hyunsun Moon | ed24cac | 2019-08-26 20:52:20 -0500 | [diff] [blame^] | 72 | {{- if .Values.config.mme.s6a.nodePort.enabled }} |
| 73 | nodePort: {{ .Values.config.mme.s6a.nodePort.port }} |
| 74 | {{- end }} |
Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 75 | --- |
| 76 | apiVersion: v1 |
| 77 | kind: Service |
| 78 | metadata: |
Hyunsun Moon | 16d7092 | 2019-08-25 04:57:25 -0500 | [diff] [blame] | 79 | name: mme-s1ap |
Hyunsun Moon | 06f9855 | 2019-08-15 13:44:47 -0600 | [diff] [blame] | 80 | labels: |
Hyunsun Moon | 7a007bb | 2019-08-19 16:41:36 -0600 | [diff] [blame] | 81 | {{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 82 | spec: |
| 83 | selector: |
Hyunsun Moon | 7a007bb | 2019-08-19 16:41:36 -0600 | [diff] [blame] | 84 | {{ tuple "mme" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 85 | type: NodePort |
| 86 | ports: |
| 87 | - name: s1ap |
Hyunsun Moon | ed24cac | 2019-08-26 20:52:20 -0500 | [diff] [blame^] | 88 | port: {{ index $configJsonS1ap "sctp_port" }} |
| 89 | nodePort: {{ index $configJsonS1ap "sctp_port_external" }} |
Hyunsun Moon | 636e17d | 2019-07-03 12:52:15 -0500 | [diff] [blame] | 90 | protocol: SCTP |