blob: efee9711a7cdde6d5c1ff8f49f7b01243b7f0414 [file] [log] [blame]
{{/*
# Copyright 2020-present Open Networking Foundation
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.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: ClusterIP
selector:
{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
ports:
- name: sbi
port: {{ .Values.config.nrf.sbi.port }}
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: nrf-headless
labels:
{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
spec:
clusterIP: None
selector:
{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
{{- if or .Values.config.nrf.sbi.nodePort.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: nrf-external
labels:
{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
spec:
type: NodePort
selector:
{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
ports:
{{- if .Values.config.nrf.sbi.nodePort.enabled }}
- name: sbi
port: {{ .Values.config.nrf.sbi.port }}
protocol: TCP
nodePort: {{ .Values.config.nrf.sbi.nodePort.port }}
{{- end }}
{{- end }}
{{- end }}