blob: 4f3e2b8b364a993411544f97b8a7a6b2f3db5a92 [file] [log] [blame]
{{/*
# Copyright 2020-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
*/}}
{{- if .Values.config.gnbsim.deploy }}
---
apiVersion: v1
kind: Service
metadata:
name: gnbsim
labels:
{{ tuple "gnbsim" . | include "5g-ransim-plane.metadata_labels" | indent 4 }}
spec:
type: ClusterIP
selector:
{{ tuple "gnbsim" . | include "5g-ransim-plane.metadata_labels" | indent 4 }}
ports:
- name: ngapp
port: {{ .Values.config.gnbsim.ngapp.port }}
protocol: SCTP
{{- if .Values.config.gnbsim.profile.enable }}
- name: profile-http
port: {{ .Values.config.gnbsim.profile.port }}
protocol: TCP
{{- end }}
{{- end }}