blob: 8dea0e036507a95b2ae03c6de7c94f1a7a903774 [file] [log] [blame]
Ajay Lotan Thakur6de3b782022-04-14 08:41:12 -06001{{/*
2# Copyright 2020-present Open Networking Foundation
3
4# SPDX-License-Identifier: Apache-2.0
5*/}}
6
7{{- if .Values.config.sctplb.deploy }}
8---
9apiVersion: v1
10kind: Service
11metadata:
12 name: sctplb
13 labels:
14{{ tuple "sctplb" . | include "5g-control-plane.metadata_labels" | indent 4 }}
15spec:
16 type: {{ .Values.config.sctplb.serviceType }}
17{{- if .Values.config.sctplb.ngapp.externalIp }}
18 externalIPs:
19 - {{ .Values.config.sctplb.ngapp.externalIp }}
20{{- end }}
21 selector:
22{{ tuple "sctplb" . | include "5g-control-plane.metadata_labels" | indent 4 }}
23 ports:
24 - name: ngapp
25 port: {{ .Values.config.sctplb.ngapp.port }}
26 protocol: SCTP
27{{- if eq .Values.config.sctplb.serviceType "NodePort" }}
28{{- if .Values.config.sctplb.ngapp.nodePort }}
29 nodePort: {{ .Values.config.sctplb.ngapp.nodePort }}
30{{- end }}
31{{- end }}
32{{- end }}