Fix ORU-APP https
[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       initContainers:
22       {{- if .Values.global.aafEnabled }}
23       {{ include "common.certInitializer.initContainer" . | indent 6 }}
24       {{- end }}
25       containers:
26         - name: {{ .Chart.Name }}
27           image: "{{ .Values.image.repository }}/{{ .Values.image.name}}:{{ .Values.image.tag }}"
28           imagePullPolicy: {{ .Values.image.pullPolicy }}
29           tty: true
30           stdin: true
31           env:
32           - name: REQUESTS_CA_BUNDLE
33             value: "{{ .Values.conf.caCertificate }}"
34           envFrom:
35             - configMapRef:
36                 name: oru-app-configmapenv
37           volumeMounts:
38           {{- if .Values.global.aafEnabled }}
39           {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
40           {{- end }}
41           - name: oru-app-config-volume
42             subPath: o-ru-to-o-du-map.txt
43             mountPath: /usr/src/app/o-ru-to-o-du-map.txt
44           securityContext:
45             capabilities:
46               add:
47                 - SYS_ADMIN
48                 - SYS_PTRACE
49       {{- if .Values.global.aafEnabled }}
50       serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . ) }}
51       {{- end }}
52       volumes:
53       {{- if .Values.global.aafEnabled }}
54       {{ include "common.certInitializer.volumes" . | nindent 6 }}
55       {{- end }}
56       - name: oru-app-config-volume
57         configMap:
58           name: oru-app-configmap
59           items:
60           - key: o-ru-to-o-du-map.txt
61             path: o-ru-to-o-du-map.txt