Yi Tseng | 3256142 | 2021-10-07 15:03:21 -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: |
| 11 | name: {{ include "pfcp-agent.fullname" . }} |
| 12 | labels: |
| 13 | {{ tuple "pfcp" . | include "pfcp-agent.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 "pfcp" . | include "pfcp-agent.metadata_labels" | indent 4 }} |
| 26 | ports: |
| 27 | - name: pfcp |
| 28 | port: 8805 |
| 29 | protocol: UDP |