Update gnbsim, sctplb images
- Also correcting metricfunction name in the helm charts
- Updating mongoDB helm charts
Change-Id: I9627cd6e819f1c91ad7b8d571c448cb23ab912ee
diff --git a/5g-control-plane/templates/service-metricfunc.yaml b/5g-control-plane/templates/service-metricfunc.yaml
new file mode 100644
index 0000000..c396d98
--- /dev/null
+++ b/5g-control-plane/templates/service-metricfunc.yaml
@@ -0,0 +1,28 @@
+{{/*
+# Copyright 2022-present Open Networking Foundation
+
+# SPDX-License-Identifier: Apache-2.0
+*/}}
+
+{{- if .Values.config.metricfunc.deploy }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: metricfunc
+ labels:
+{{ tuple "metricfunc" . | include "5g-control-plane.metadata_labels" | indent 4 }}
+spec:
+ type: {{ .Values.config.metricfunc.serviceType }}
+ selector:
+{{ tuple "metricfunc" . | include "5g-control-plane.metadata_labels" | indent 4 }}
+ ports:
+ - name: prometheus-exporter
+ port: {{ .Values.config.metricfunc.prometheus.port }}
+ protocol: TCP
+{{- if eq .Values.config.metricfunc.serviceType "NodePort" }}
+{{- if .Values.config.metricfunc.prometheus.nodePort }}
+ nodePort: {{ .Values.config.metricfunc.prometheus.nodePort }}
+{{- end }}
+{{- end }}
+{{- end }}