blob: a525c2de8ed968d9bcb1f40249bda0028de9f069 [file] [log] [blame]
Yi Tseng32561422021-10-07 15:03:21 -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:
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 }}
18spec:
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