Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | {{/* |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | # Copyright 2019-present Open Networking Foundation |
| 3 | # Copyright 2019 Intel Corporation |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 4 | |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 5 | # SPDX-License-Identifier: Apache-2.0 |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 6 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 7 | */}} |
| 8 | |
| 9 | --- |
| 10 | apiVersion: v1 |
| 11 | kind: Service |
| 12 | metadata: |
| 13 | name: spgwu |
| 14 | labels: |
| 15 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
| 16 | spec: |
| 17 | selector: |
| 18 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
| 19 | ports: |
| 20 | - name: dp-comm |
| 21 | port: {{ .Values.config.spgwu.dpComm.port }} |
| 22 | {{- if .Values.config.spgwu.multiUpfs }} |
| 23 | protocol: TCP |
| 24 | {{- else }} |
| 25 | protocol: UDP |
| 26 | {{- end }} |
| 27 | --- |
| 28 | apiVersion: v1 |
| 29 | kind: Service |
| 30 | metadata: |
| 31 | name: spgwu-headless |
| 32 | labels: |
| 33 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
| 34 | spec: |
| 35 | clusterIP: None |
| 36 | selector: |
| 37 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
| 38 | ports: |
| 39 | - name: dp-comm |
| 40 | port: {{ .Values.config.spgwu.dpComm.port }} |
| 41 | {{- if .Values.config.spgwu.multiUpfs }} |
| 42 | protocol: TCP |
| 43 | {{- else }} |
| 44 | protocol: UDP |
| 45 | {{- end }} |
| 46 | {{- if and (not .Values.config.spgwu.multiUpfs) .Values.config.spgwu.dpComm.nodePort.enabled }} |
| 47 | --- |
| 48 | apiVersion: v1 |
| 49 | kind: Service |
| 50 | metadata: |
| 51 | name: spgwu-external |
| 52 | labels: |
| 53 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
| 54 | spec: |
| 55 | selector: |
| 56 | {{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }} |
| 57 | type: NodePort |
| 58 | ports: |
| 59 | - name: dp-comm |
| 60 | port: {{ .Values.config.spgwu.dpComm.port }} |
| 61 | protocol: UDP |
| 62 | nodePort: {{ .Values.config.spgwu.dpComm.nodePort.port }} |
| 63 | {{- end }} |