blob: 48c8b74e71476455c050464da75beec78e115bfa [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2019-present Open Networking Foundation
3# Copyright 2019 Intel Corporation
Jeremy Ronquillo223db002020-06-05 10:28:22 -07004
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07005# SPDX-License-Identifier: Apache-2.0
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07006# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo223db002020-06-05 10:28:22 -07007*/}}
8
9---
10apiVersion: v1
11kind: Service
12metadata:
13 name: spgwu
14 labels:
15{{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }}
16spec:
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---
28apiVersion: v1
29kind: Service
30metadata:
31 name: spgwu-headless
32 labels:
33{{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }}
34spec:
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---
48apiVersion: v1
49kind: Service
50metadata:
51 name: spgwu-external
52 labels:
53{{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }}
54spec:
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 }}