blob: a1f956b456e6f989db58da2f9a45f026e454de82 [file] [log] [blame]
{{/*
# Copyright 2020-present Open Networking Foundation
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
*/}}
---
apiVersion: v1
kind: Service
metadata:
name: pfcp-agent
labels:
{{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }}
spec:
type: ClusterIP
selector:
{{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }}
ports:
- name: pfcp
port: 8805
protocol: UDP
{{- if .Values.config.nodePort.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: pfcp-agent-external
labels:
{{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }}
spec:
type: NodePort
selector:
{{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }}
ports:
- name: pfcp
port: 8805
protocol: UDP
nodePort: {{ .Values.config.nodePort.port }}
{{- end }}