blob: a7c815d9b2e49b93e9f75327c203a75f316b575c [file] [log] [blame]
{{/*
# Copyright 2020-present Open Networking Foundation
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.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 }}