blob: 61314b6ad7567f7bcbc261f28f529d02701fcfe3 [file] [log] [blame]
{{/*
# Copyright 2020-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
*/}}
{{- if .Values.config.nrf.deploy }}
---
apiVersion: v1
kind: Service
metadata:
name: nrf
labels:
{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
spec:
type: {{ .Values.config.nrf.serviceType }}
selector:
{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
ports:
- name: sbi
port: {{ .Values.config.nrf.sbi.port }}
protocol: TCP
{{- if eq .Values.config.nrf.serviceType "NodePort" }}
{{- if .Values.config.nrf.sbi.nodePort }}
nodePort: {{ .Values.config.nrf.sbi.nodePort }}
{{- end }}
{{- end }}
{{- end }}