blob: 30d50c817ba1d21e46904971811025057a51c034 [file] [log] [blame]
Charles Chane1e5e622022-02-16 15:17:05 -08001{{/*
2# Copyright 2020-present Open Networking Foundation
3
4# SPDX-License-Identifier: Apache-2.0
5*/}}
6
7---
8apiVersion: v1
9kind: Service
10metadata:
11 name: upf
12 labels:
13{{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }}
14{{- with .Values.service.annotations }}
15 annotations:
16 {{- toYaml . | nindent 4 }}
17{{- end }}
18spec:
19 type: {{ .Values.service.type }}
20{{- if .Values.service.externalIp }}
21 externalIPs:
22 - {{ .Values.service.externalIp }}
23{{- end }}
24 selector:
25{{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }}
26 ports:
27 - name: pfcp
28 protocol: UDP
29 port: 8805
Badhrinath Padmanabhan5c579982022-11-16 15:01:38 -050030{{- if eq .Values.service.type "NodePort" }}
31{{- if .Values.service.nodePort }}
32 nodePort: {{ .Values.service.nodePort }}
33{{- end }}
34{{- end }}
Charles Chane1e5e622022-02-16 15:17:05 -080035---
36apiVersion: v1
37kind: Service
38metadata:
39 name: upf-http
40 labels:
41{{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }}
42{{- with .Values.service.annotations }}
43 annotations:
44 {{- toYaml . | nindent 4 }}
45{{- end }}
46spec:
47 type: {{ .Values.service.type }}
48{{- if .Values.service.externalIp }}
49 externalIPs:
50 - {{ .Values.service.externalIp }}
51{{- end }}
52 selector:
53{{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }}
54 ports:
55 - name: bess-web
56 protocol: TCP
57 port: 8000
58 - name: prometheus-exporter
59 protocol: TCP
60 port: 8080