blob: a6d2651cdd5c734d6557ae23df95316b61d274a1 [file] [log] [blame]
Yi Tseng32561422021-10-07 15:03:21 -07001{{/*
2# Copyright 2020-present Open Networking Foundation
3
Charles Chand1b4bf92022-02-02 16:27:10 -08004# SPDX-License-Identifier: Apache-2.0
Yi Tseng32561422021-10-07 15:03:21 -07005*/}}
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