Hyunsun Moon | 16d7092 | 2019-08-25 04:57:25 -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 | |
| 17 | --- |
| 18 | apiVersion: v1 |
| 19 | kind: Service |
| 20 | metadata: |
| 21 | name: spgwc-cp-comm |
| 22 | labels: |
| 23 | {{ tuple "spgwc" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 24 | spec: |
| 25 | selector: |
| 26 | {{ tuple "spgwc" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 27 | {{- if .Values.config.spgwc.cpComm.nodePort.enabled }} |
| 28 | type: NodePort |
| 29 | {{- end }} |
| 30 | ports: |
| 31 | - name: cp-comm |
| 32 | port: 21 |
| 33 | protocol: UDP |
| 34 | {{- if .Values.config.spgwc.cpComm.nodePort.enabled }} |
| 35 | nodePort: {{ .Values.config.spgwc.cpComm.nodePort.port }} |
| 36 | {{- end }} |
| 37 | --- |
| 38 | apiVersion: v1 |
| 39 | kind: Service |
| 40 | metadata: |
| 41 | name: spgwc-s11 |
| 42 | labels: |
| 43 | {{ tuple "spgwc" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 44 | spec: |
| 45 | selector: |
| 46 | {{ tuple "spgwc" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 47 | {{- if .Values.config.spgwc.s11.nodePort.enabled }} |
| 48 | type: NodePort |
| 49 | {{- end }} |
| 50 | ports: |
| 51 | - name: s11 |
| 52 | port: 2123 |
| 53 | protocol: UDP |
| 54 | {{- if .Values.config.spgwc.s11.nodePort.enabled }} |
| 55 | nodePort: {{ .Values.config.spgwc.s11.nodePort.port }} |
| 56 | {{- end }} |