SMO-Install: A1 PMS config correction and simulator URL update in charts
[it/dep.git] / smo-install / oran_oom / a1simulator / templates / deployment.yaml
1 {{- range $i, $a1sim := .Values.a1Sims }}
2 ---
3 apiVersion: apps/v1
4 kind: Deployment
5 metadata:
6   name: {{ $a1sim.name }}
7   labels:
8     sim-name: {{ $a1sim.name }}
9     release: {{ $.Release.Name }}
10     chart: {{ $.Chart.Name }}
11 spec:
12   replicas: 1
13   selector:
14     matchLabels:
15       sim-name: {{ $a1sim.name }}
16   template:
17     metadata:
18       labels:
19         sim-name: {{ $a1sim.name }}
20         release: {{ $.Release.Name }}
21         chart: {{ $.Chart.Name }}
22       annotations:
23         checksum/config: {{ print $a1sim | sha256sum }}
24     spec:
25       hostname: "{{ $a1sim.name }}"
26       containers:
27         - name: {{ $.Chart.Name }}
28           image: "{{ $.Values.image.repository }}/{{ $.Values.image.name}}:{{ $.Values.image.tag }}"
29           imagePullPolicy: {{ $.Values.image.pullPolicy }}
30           tty: true
31           stdin: true
32           envFrom:
33             - configMapRef:
34                 name: {{ $a1sim.name }}-configmapenv
35
36 {{- end }}