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