aboutsummaryrefslogtreecommitdiffstats
path: root/operations/a1-pe-sim-packages/resources/oran-sim-csar/o-ran-simulator/templates/a1-pe-sim-deployment.yaml
blob: c5690b60608d4414564e43ceccf4cd616d93b32a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{/* Set up subresource name */}}
  {{- $spec := .Values.a1pesimulator -}}
  {{- $name := $spec.name -}}
  {{- $input := dict "dot" . "name" $name "spec" $spec }}
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "handover-simulator.utils.name" (list .Release.Name $name) }}
  labels: {{ include "handover-simulator.utils.labels" $input | nindent 4 }}
spec:
  replicas: {{ $spec.replicaCount }}
  selector:
    matchLabels: {{ include "handover-simulator.utils.labels" $input | nindent 6 }}
  template:
    metadata:
      labels: {{ include "handover-simulator.utils.labels" $input | nindent 8 }}
    spec:
      containers: {{ include "handover-simulator.deployment.containers" $input | nindent 8 }}
      volumes:
        - name: config
          configMap:
            name: {{ include "handover-simulator.utils.name" (list .Release.Name $name "app-cm") }}