Charles Chan | e1e5e62 | 2022-02-16 15:17:05 -0800 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | */}} |
| 6 | |
| 7 | --- |
| 8 | apiVersion: v1 |
| 9 | kind: Service |
| 10 | metadata: |
| 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 }} |
| 18 | spec: |
| 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 | --- |
| 31 | apiVersion: v1 |
| 32 | kind: Service |
| 33 | metadata: |
| 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 }} |
| 41 | spec: |
| 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 |