Hyunsun Moon | 06f9855 | 2019-08-15 13:44:47 -0600 | [diff] [blame] | 1 | {{/* |
| 2 | Copyright 2019-present Open Networking Foundation |
| 3 | Copyright 2019 Intel Corporation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | */}} |
| 17 | |
Hyunsun Moon | a24d3f9 | 2019-06-19 03:04:58 -0500 | [diff] [blame] | 18 | --- |
| 19 | apiVersion: v1 |
| 20 | kind: Service |
| 21 | metadata: |
Hyunsun Moon | 834c28f | 2019-12-05 18:26:22 -0800 | [diff] [blame] | 22 | name: spgwu |
Hyunsun Moon | c4a7d54 | 2019-08-22 18:53:40 -0500 | [diff] [blame] | 23 | labels: |
| 24 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
Hyunsun Moon | a24d3f9 | 2019-06-19 03:04:58 -0500 | [diff] [blame] | 25 | spec: |
| 26 | selector: |
Hyunsun Moon | 7a007bb | 2019-08-19 16:41:36 -0600 | [diff] [blame] | 27 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
Hyunsun Moon | a24d3f9 | 2019-06-19 03:04:58 -0500 | [diff] [blame] | 28 | ports: |
Hyunsun Moon | c4a7d54 | 2019-08-22 18:53:40 -0500 | [diff] [blame] | 29 | - name: dp-comm |
Hyunsun Moon | 834c28f | 2019-12-05 18:26:22 -0800 | [diff] [blame] | 30 | port: {{ .Values.config.spgwu.dpComm.port }} |
| 31 | {{- if .Values.config.spgwu.multiUpfs }} |
| 32 | protocol: TCP |
| 33 | {{- else }} |
Hyunsun Moon | a24d3f9 | 2019-06-19 03:04:58 -0500 | [diff] [blame] | 34 | protocol: UDP |
Hyunsun Moon | 834c28f | 2019-12-05 18:26:22 -0800 | [diff] [blame] | 35 | {{- end }} |
| 36 | --- |
| 37 | apiVersion: v1 |
| 38 | kind: Service |
| 39 | metadata: |
| 40 | name: spgwu-headless |
| 41 | labels: |
| 42 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
| 43 | spec: |
| 44 | clusterIP: None |
| 45 | selector: |
| 46 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
| 47 | ports: |
| 48 | - name: dp-comm |
| 49 | port: {{ .Values.config.spgwu.dpComm.port }} |
| 50 | {{- if .Values.config.spgwu.multiUpfs }} |
| 51 | protocol: TCP |
| 52 | {{- else }} |
| 53 | protocol: UDP |
| 54 | {{- end }} |
| 55 | {{- if and (not .Values.config.spgwu.multiUpfs) .Values.config.spgwu.dpComm.nodePort.enabled }} |
| 56 | --- |
| 57 | apiVersion: v1 |
| 58 | kind: Service |
| 59 | metadata: |
| 60 | name: spgwu-external |
| 61 | labels: |
| 62 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
| 63 | spec: |
| 64 | selector: |
| 65 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
| 66 | type: NodePort |
| 67 | ports: |
| 68 | - name: dp-comm |
| 69 | port: {{ .Values.config.spgwu.dpComm.port }} |
| 70 | protocol: UDP |
Hyunsun Moon | c4a7d54 | 2019-08-22 18:53:40 -0500 | [diff] [blame] | 71 | nodePort: {{ .Values.config.spgwu.dpComm.nodePort.port }} |
Hyunsun Moon | 834c28f | 2019-12-05 18:26:22 -0800 | [diff] [blame] | 72 | {{- end }} |