Changes to support SCTP LB pod
Change-Id: I46e2f6da984edc57235fc6c151bc4886190d921d
diff --git a/5g-control-plane/templates/service-sctplb.yaml b/5g-control-plane/templates/service-sctplb.yaml
new file mode 100644
index 0000000..8dea0e0
--- /dev/null
+++ b/5g-control-plane/templates/service-sctplb.yaml
@@ -0,0 +1,32 @@
+{{/*
+# Copyright 2020-present Open Networking Foundation
+
+# SPDX-License-Identifier: Apache-2.0
+*/}}
+
+{{- if .Values.config.sctplb.deploy }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: sctplb
+ labels:
+{{ tuple "sctplb" . | include "5g-control-plane.metadata_labels" | indent 4 }}
+spec:
+ type: {{ .Values.config.sctplb.serviceType }}
+{{- if .Values.config.sctplb.ngapp.externalIp }}
+ externalIPs:
+ - {{ .Values.config.sctplb.ngapp.externalIp }}
+{{- end }}
+ selector:
+{{ tuple "sctplb" . | include "5g-control-plane.metadata_labels" | indent 4 }}
+ ports:
+ - name: ngapp
+ port: {{ .Values.config.sctplb.ngapp.port }}
+ protocol: SCTP
+{{- if eq .Values.config.sctplb.serviceType "NodePort" }}
+{{- if .Values.config.sctplb.ngapp.nodePort }}
+ nodePort: {{ .Values.config.sctplb.ngapp.nodePort }}
+{{- end }}
+{{- end }}
+{{- end }}