blob: efee9711a7cdde6d5c1ff8f49f7b01243b7f0414 [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
23---
24apiVersion: v1
25kind: Service
26metadata:
27 name: nrf-headless
28 labels:
29{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
30spec:
31 clusterIP: None
32 selector:
33{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
34{{- if or .Values.config.nrf.sbi.nodePort.enabled }}
35---
36apiVersion: v1
37kind: Service
38metadata:
39 name: nrf-external
40 labels:
41{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
42spec:
43 type: NodePort
44 selector:
45{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
46 ports:
47{{- if .Values.config.nrf.sbi.nodePort.enabled }}
48 - name: sbi
49 port: {{ .Values.config.nrf.sbi.port }}
50 protocol: TCP
51 nodePort: {{ .Values.config.nrf.sbi.nodePort.port }}
52{{- end }}
53{{- end }}
54{{- end }}