blob: cbe45d138d93c4d5d6dcd8e818658be679054491 [file] [log] [blame]
Badhrinath987e1d82020-11-20 13:23:58 -06001{{/*
2# Copyright 2020-present Open Networking Foundation
3
4# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
5*/}}
6
7{{- if .Values.config.nrf.deploy }}
8---
9apiVersion: v1
10kind: Service
11metadata:
12 name: nrf
13 labels:
14{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
15spec:
16 type: ClusterIP
17 selector:
18{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
19 ports:
20 - name: sbi
21 port: {{ .Values.config.nrf.sbi.port }}
22 protocol: TCP
Badhrinath987e1d82020-11-20 13:23:58 -060023{{- if or .Values.config.nrf.sbi.nodePort.enabled }}
24---
25apiVersion: v1
26kind: Service
27metadata:
28 name: nrf-external
29 labels:
30{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
31spec:
32 type: NodePort
33 selector:
34{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
35 ports:
36{{- if .Values.config.nrf.sbi.nodePort.enabled }}
37 - name: sbi
38 port: {{ .Values.config.nrf.sbi.port }}
39 protocol: TCP
40 nodePort: {{ .Values.config.nrf.sbi.nodePort.port }}
41{{- end }}
42{{- end }}
43{{- end }}