blob: a1f956b456e6f989db58da2f9a45f026e454de82 [file] [log] [blame]
Badhrinath Pa083686a2020-09-29 21:51:42 -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:
Badhrinath Pa083686a2020-09-29 21:51:42 -070011 name: pfcp-agent
12 labels:
13{{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }}
14spec:
15 type: ClusterIP
16 selector:
17{{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }}
18 ports:
19 - name: pfcp
20 port: 8805
21 protocol: UDP
Hyunsun Moon295d98d2021-03-17 11:04:34 -070022{{- if .Values.config.nodePort.enabled }}
23---
24apiVersion: v1
25kind: Service
26metadata:
27 name: pfcp-agent-external
28 labels:
29{{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }}
30spec:
31 type: NodePort
32 selector:
33{{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }}
34 ports:
35 - name: pfcp
36 port: 8805
37 protocol: UDP
38 nodePort: {{ .Values.config.nodePort.port }}
39{{- end }}