blob: d37cb611e68395c5c439a9059b47c732ad1eff39 [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001{{/*
2# Copyright 2020-present Open Networking Foundation
3
Ajay Lotan Thakur03189d22022-02-10 14:06:03 -06004# SPDX-License-Identifier: Apache-2.0
badhri854c028b32021-11-03 18:24:05 -05005*/}}
6
7{{- if .Values.config.smf.deploy }}
8---
9apiVersion: v1
10kind: Service
11metadata:
12 name: smf
13 labels:
14{{ tuple "smf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
15spec:
16 type: {{ .Values.config.smf.serviceType }}
17 selector:
18{{ tuple "smf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
19 ports:
Ajay Lotan Thakur9ad7dfe2022-07-25 17:26:03 -060020{{- if eq .Values.config.upfadapter.deploy false }}
badhri854c028b32021-11-03 18:24:05 -050021 - name: pfcp
22 port: {{ .Values.config.smf.n4.port }}
23 protocol: UDP
24{{- if eq .Values.config.smf.serviceType "NodePort" }}
25{{- if .Values.config.smf.n4.nodePort }}
26 nodePort: {{ .Values.config.smf.n4.nodePort }}
27{{- end }}
28{{- end }}
Ajay Lotan Thakur9ad7dfe2022-07-25 17:26:03 -060029{{- end }}
badhri854c028b32021-11-03 18:24:05 -050030 - name: prometheus-exporter
31 port: {{ .Values.config.smf.prometheus.port }}
32 protocol: TCP
33{{- if eq .Values.config.smf.serviceType "NodePort" }}
34{{- if .Values.config.smf.prometheus.nodePort }}
35 nodePort: {{ .Values.config.smf.prometheus.nodePort }}
36{{- end }}
37{{- end }}
38 - name: sbi
39 port: {{ .Values.config.smf.sbi.port }}
40 protocol: TCP
41{{- if eq .Values.config.smf.serviceType "NodePort" }}
42{{- if .Values.config.smf.sbi.nodePort }}
43 nodePort: {{ .Values.config.smf.sbi.nodePort }}
44{{- end }}
45{{- end }}
46{{- end }}