blob: a6d2651cdd5c734d6557ae23df95316b61d274a1 [file] [log] [blame]
{{/*
# Copyright 2020-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
*/}}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "pfcp-agent.fullname" . }}
labels:
{{ tuple "pfcp" . | include "pfcp-agent.metadata_labels" | indent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.externalIp }}
externalIPs:
- {{ .Values.service.externalIp }}
{{- end }}
selector:
{{ tuple "pfcp" . | include "pfcp-agent.metadata_labels" | indent 4 }}
ports:
- name: pfcp
port: 8805
protocol: UDP