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