blob: 99235b925f8fa04d37d95525434d554ae3d91e58 [file] [log] [blame]
Ajay Lotan Thakur9ad7dfe2022-07-25 17:26:03 -06001{{/*
2# SPDX-FileCopyrightText: 2022-present Intel Corporation
3
4# SPDX-License-Identifier: Apache-2.0
5*/}}
6
7{{- if .Values.config.upfadapter.deploy }}
8---
9apiVersion: v1
10kind: Service
11metadata:
12 name: upf-adapter
13 labels:
14{{ tuple "upfadapter" . | include "5g-control-plane.metadata_labels" | indent 4 }}
15spec:
16 type: {{ .Values.config.upfadapter.serviceType }}
17 selector:
18{{ tuple "upfadapter" . | include "5g-control-plane.metadata_labels" | indent 4 }}
19 ports:
20 - name: pfcp
21 port: {{ .Values.config.upfadapter.n4.port }}
22 protocol: UDP
23{{- if eq .Values.config.upfadapter.serviceType "NodePort" }}
24{{- if .Values.config.upfadapter.n4.nodePort }}
25 nodePort: {{ .Values.config.upfadapter.n4.nodePort }}
26{{- end }}
27{{- end }}
28 - name: upfadapter-rest
29 port: {{ .Values.config.upfadapter.rest.port }}
30 protocol: TCP
31{{- end }}