aboutsummaryrefslogtreecommitdiffstats
path: root/operations/a1-pe-sim-packages/resources/oran-sim-csar/o-ran-simulator/templates/a1-pe-sim-service.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'operations/a1-pe-sim-packages/resources/oran-sim-csar/o-ran-simulator/templates/a1-pe-sim-service.yaml')
-rw-r--r--operations/a1-pe-sim-packages/resources/oran-sim-csar/o-ran-simulator/templates/a1-pe-sim-service.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-csar/o-ran-simulator/templates/a1-pe-sim-service.yaml b/operations/a1-pe-sim-packages/resources/oran-sim-csar/o-ran-simulator/templates/a1-pe-sim-service.yaml
new file mode 100644
index 0000000..320e83e
--- /dev/null
+++ b/operations/a1-pe-sim-packages/resources/oran-sim-csar/o-ran-simulator/templates/a1-pe-sim-service.yaml
@@ -0,0 +1,23 @@
+{{/* Set up subresource name */}}
+ {{- $spec := .Values.a1pesimulator -}}
+ {{- $name := $spec.name -}}
+ {{- $input := dict "dot" . "name" $name "spec" $spec }}
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "handover-simulator.utils.name" (list .Release.Name $name) }}
+ labels: {{ include "handover-simulator.utils.labels" $input | nindent 4 }}
+spec:
+ type: {{ $spec.service.type }}
+ ports:
+ {{- range $spec.service.ports }}
+ - port: {{ .port }}
+ targetPort: {{ .port }}
+ protocol: TCP
+ name: {{ .name }}
+ {{- with .nodePort }}
+ nodePort: {{ tpl . $ }}
+ {{- end }}
+ {{- end }}
+ selector: {{ include "handover-simulator.utils.labels" $input | nindent 4 }}
+