Badhrinath Pa | 083686a | 2020-09-29 21:51:42 -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: |
Badhrinath Pa | 083686a | 2020-09-29 21:51:42 -0700 | [diff] [blame] | 11 | name: pfcp-agent |
| 12 | labels: |
| 13 | {{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }} |
Hyunsun Moon | 3b4d8f9 | 2021-07-09 15:20:12 -0700 | [diff] [blame] | 14 | {{- with .Values.service.annotations }} |
| 15 | annotations: |
| 16 | {{- toYaml . | nindent 4 }} |
Hyunsun Moon | 295d98d | 2021-03-17 11:04:34 -0700 | [diff] [blame] | 17 | {{- end }} |
Hyunsun Moon | 3b4d8f9 | 2021-07-09 15:20:12 -0700 | [diff] [blame] | 18 | spec: |
| 19 | type: {{ .Values.service.type }} |
| 20 | {{- if .Values.service.externalIp }} |
| 21 | externalIPs: |
| 22 | - {{ .Values.service.externalIp }} |
| 23 | {{- end }} |
| 24 | selector: |
| 25 | {{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }} |
| 26 | ports: |
| 27 | - name: pfcp |
| 28 | port: 8805 |
| 29 | protocol: UDP |