5g core control plane helm charts and 5g Ran simulator helm charts
Change-Id: I4201ec10d796c1aa8f21679f99fbb790e414d97a
diff --git a/omec/5g-control-plane/templates/service-ausf.yaml b/omec/5g-control-plane/templates/service-ausf.yaml
new file mode 100644
index 0000000..c06af07
--- /dev/null
+++ b/omec/5g-control-plane/templates/service-ausf.yaml
@@ -0,0 +1,63 @@
+{{/*
+# 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: ClusterIP
+ selector:
+{{ tuple "ausf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
+ ports:
+ - name: prometheus-exporter
+ port: {{ .Values.config.ausf.prometheus.port }}
+ protocol: TCP
+ - name: sbi
+ port: {{ .Values.config.ausf.sbi.port }}
+ protocol: TCP
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: ausf-headless
+ labels:
+{{ tuple "ausf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
+spec:
+ clusterIP: None
+ selector:
+{{ tuple "ausf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
+{{- if or .Values.config.ausf.prometheus.nodePort.enabled .Values.config.ausf.sbi.nodePort.enabled }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: ausf-external
+ labels:
+{{ tuple "ausf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
+spec:
+ type: NodePort
+ selector:
+{{ tuple "ausf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
+ ports:
+{{- if .Values.config.ausf.prometheus.nodePort.enabled }}
+ - name: prometheus-exporter
+ port: {{ .Values.config.ausf.prometheus.port }}
+ protocol: TCP
+ nodePort: {{ .Values.config.ausf.prometheus.nodePort.port }}
+{{- end }}
+{{- if .Values.config.ausf.sbi.nodePort.enabled }}
+ - name: sbi
+ port: {{ .Values.config.ausf.sbi.port }}
+ protocol: TCP
+ nodePort: {{ .Values.config.ausf.sbi.nodePort.port }}
+{{- end }}
+{{- end }}
+{{- end }}