6955c6d563f546cc41eaad2e60accb8074ab43a2
[it/dep.git] / smo-install / oran_oom / oru-app / templates / deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: oru-app
5   labels:
6     name: oru-app
7     release: {{ .Release.Name }}
8     chart: {{ .Chart.Name }}
9 spec:
10   replicas: {{ .Values.replicaCount }}
11   selector:
12     matchLabels:
13       name: oru-app
14   template:
15     metadata:
16       labels:
17         name: oru-app
18         release: {{ .Release.Name }}
19         chart: {{ .Chart.Name }}
20     spec:
21       containers:
22         - name: {{ .Chart.Name }}
23           image: "{{ .Values.image.repository }}/{{ .Values.image.name}}:{{ .Values.image.tag }}"
24           imagePullPolicy: {{ .Values.image.pullPolicy }}
25           tty: true
26           stdin: true
27           env:
28           - name: REQUESTS_CA_BUNDLE
29             value: "{{ .Values.conf.caCertificate }}"
30           envFrom:
31             - configMapRef:
32                 name: oru-app-configmapenv
33           volumeMounts:
34           {{- if .Values.global.aafEnabled }}
35           {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
36           {{- end }}
37           - name: oru-app-config-volume
38             subPath: o-ru-to-o-du-map.txt
39             mountPath: /usr/src/app/o-ru-to-o-du-map.txt
40           securityContext:
41             capabilities:
42               add:
43                 - SYS_ADMIN
44                 - SYS_PTRACE
45       {{- if .Values.global.aafEnabled }}
46       serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . ) }}
47       {{- end }}
48       volumes:
49       {{- if .Values.global.aafEnabled }}
50       {{ include "common.certInitializer.volumes" . | nindent 6 }}
51       {{- end }}
52       - name: oru-app-config-volume
53         configMap:
54           name: oru-app-configmap
55           items:
56           - key: o-ru-to-o-du-map.txt
57             path: o-ru-to-o-du-map.txt