blob: e7a2cbcfc7f28e3e31f9f4bdd33007b5ebd1bcf7 [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
30---
31apiVersion: v1
32kind: Service
33metadata:
34 name: upf-http
35 labels:
36{{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }}
37{{- with .Values.service.annotations }}
38 annotations:
39 {{- toYaml . | nindent 4 }}
40{{- end }}
41spec:
42 type: {{ .Values.service.type }}
43{{- if .Values.service.externalIp }}
44 externalIPs:
45 - {{ .Values.service.externalIp }}
46{{- end }}
47 selector:
48{{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }}
49 ports:
50 - name: bess-web
51 protocol: TCP
52 port: 8000
53 - name: prometheus-exporter
54 protocol: TCP
55 port: 8080