Hyunsun Moon | 33d8531 | 2020-08-20 00:55:31 -0700 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 5 | */}} |
| 6 | |
| 7 | --- |
| 8 | apiVersion: v1 |
| 9 | kind: Service |
| 10 | metadata: |
Hyunsun Moon | 804e05d | 2020-09-01 17:31:33 -0700 | [diff] [blame] | 11 | name: upf |
| 12 | labels: |
| 13 | {{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }} |
Hyunsun Moon | 44abcbc | 2021-06-23 17:55:23 -0700 | [diff] [blame] | 14 | {{- with .Values.service.annotations }} |
| 15 | annotations: |
| 16 | {{- toYaml . | nindent 4 }} |
| 17 | {{- end }} |
Hyunsun Moon | 804e05d | 2020-09-01 17:31:33 -0700 | [diff] [blame] | 18 | spec: |
Hyunsun Moon | 3cc4351 | 2021-06-17 02:24:41 -0700 | [diff] [blame] | 19 | type: {{ .Values.service.type }} |
Hyunsun Moon | 3b4d8f9 | 2021-07-09 15:20:12 -0700 | [diff] [blame] | 20 | {{- if .Values.service.externalIp }} |
| 21 | externalIPs: |
| 22 | - {{ .Values.service.externalIp }} |
| 23 | {{- end }} |
Hyunsun Moon | 804e05d | 2020-09-01 17:31:33 -0700 | [diff] [blame] | 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 | --- |
| 31 | apiVersion: v1 |
| 32 | kind: Service |
| 33 | metadata: |
Hyunsun Moon | 3cc4351 | 2021-06-17 02:24:41 -0700 | [diff] [blame] | 34 | name: upf-http |
Hyunsun Moon | 33d8531 | 2020-08-20 00:55:31 -0700 | [diff] [blame] | 35 | labels: |
| 36 | {{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }} |
Hyunsun Moon | 44abcbc | 2021-06-23 17:55:23 -0700 | [diff] [blame] | 37 | {{- with .Values.service.annotations }} |
| 38 | annotations: |
| 39 | {{- toYaml . | nindent 4 }} |
| 40 | {{- end }} |
Hyunsun Moon | 33d8531 | 2020-08-20 00:55:31 -0700 | [diff] [blame] | 41 | spec: |
Hyunsun Moon | 3cc4351 | 2021-06-17 02:24:41 -0700 | [diff] [blame] | 42 | type: {{ .Values.service.type }} |
Hyunsun Moon | 3b4d8f9 | 2021-07-09 15:20:12 -0700 | [diff] [blame] | 43 | {{- if .Values.service.externalIp }} |
| 44 | externalIPs: |
| 45 | - {{ .Values.service.externalIp }} |
| 46 | {{- end }} |
Hyunsun Moon | 33d8531 | 2020-08-20 00:55:31 -0700 | [diff] [blame] | 47 | selector: |
| 48 | {{ tuple "upf" . | include "omec-user-plane.metadata_labels" | indent 4 }} |
Hyunsun Moon | 33d8531 | 2020-08-20 00:55:31 -0700 | [diff] [blame] | 49 | ports: |
| 50 | - name: bess-web |
| 51 | protocol: TCP |
| 52 | port: 8000 |
Andy Bavier | e84456c | 2021-04-09 14:00:45 -0700 | [diff] [blame] | 53 | - name: prometheus-exporter |
| 54 | protocol: TCP |
Andy Bavier | 6ad6a88 | 2021-04-19 20:48:03 -0700 | [diff] [blame] | 55 | port: 8080 |