blob: 38ada87e0cf4c4799dbd25add0a96d6723789345 [file] [log] [blame]
Hyunsun Moon33d85312020-08-20 00:55:31 -07001{{/*
2# Copyright 2020-present Open Networking Foundation
3
4# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
5*/}}
6
7---
8apiVersion: v1
9kind: Service
10metadata:
Hyunsun Moon804e05d2020-09-01 17:31:33 -070011 name: upf
12 labels:
13{{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }}
Hyunsun Moon44abcbc2021-06-23 17:55:23 -070014{{- with .Values.service.annotations }}
15 annotations:
16 {{- toYaml . | nindent 4 }}
17{{- end }}
Hyunsun Moon804e05d2020-09-01 17:31:33 -070018spec:
Hyunsun Moon3cc43512021-06-17 02:24:41 -070019 type: {{ .Values.service.type }}
Hyunsun Moon3b4d8f92021-07-09 15:20:12 -070020{{- if .Values.service.externalIp }}
21 externalIPs:
22 - {{ .Values.service.externalIp }}
23{{- end }}
Hyunsun Moon804e05d2020-09-01 17:31:33 -070024 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:
Hyunsun Moon3cc43512021-06-17 02:24:41 -070034 name: upf-http
Hyunsun Moon33d85312020-08-20 00:55:31 -070035 labels:
36{{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }}
Hyunsun Moon44abcbc2021-06-23 17:55:23 -070037{{- with .Values.service.annotations }}
38 annotations:
39 {{- toYaml . | nindent 4 }}
40{{- end }}
Hyunsun Moon33d85312020-08-20 00:55:31 -070041spec:
Hyunsun Moon3cc43512021-06-17 02:24:41 -070042 type: {{ .Values.service.type }}
Hyunsun Moon3b4d8f92021-07-09 15:20:12 -070043{{- if .Values.service.externalIp }}
44 externalIPs:
45 - {{ .Values.service.externalIp }}
46{{- end }}
Hyunsun Moon33d85312020-08-20 00:55:31 -070047 selector:
48{{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }}
Hyunsun Moon33d85312020-08-20 00:55:31 -070049 ports:
50 - name: bess-web
51 protocol: TCP
52 port: 8000
Andy Baviere84456c2021-04-09 14:00:45 -070053 - name: prometheus-exporter
54 protocol: TCP
Andy Bavier6ad6a882021-04-19 20:48:03 -070055 port: 8080