blob: d37661049c287ca5350cfba500b6da951b9556ff [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
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "pfcp-agent.fullname" . }}-rest
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: rest
port: 8080
protocol: TCP