aboutsummaryrefslogtreecommitdiffstats
path: root/operations/a1-pe-sim-packages/resources/oran-sim-csar/o-ran-simulator/templates/a1-pe-sim-service.yaml
blob: 320e83e9720fb5a8e06f317e0561f9e1d3c7e49e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 }}