Improve oran_oom helm charts
[it/dep.git] / smo-install / oran_oom / oru-app / templates / deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
4 spec:
5   replicas: {{ .Values.replicaCount }}
6   selector: {{- include "common.selectors" . | nindent 4 }}
7   template:
8     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
9     spec:
10       containers:
11         - name: {{ include "common.containername" . }}
12           image: "{{ .Values.image.repository }}/{{ .Values.image.name}}:{{ .Values.image.tag }}"
13           imagePullPolicy: {{ .Values.image.pullPolicy }}
14           tty: true
15           stdin: true
16           envFrom:
17             - configMapRef:
18                 name: {{ include "common.name" . }}-configmapenv
19           volumeMounts:
20           - name: oru-app-config-volume
21             subPath: o-ru-to-o-du-map.txt
22             mountPath: /usr/src/app/o-ru-to-o-du-map.txt
23           securityContext:
24             capabilities:
25               add:
26                 - SYS_ADMIN
27                 - SYS_PTRACE
28       volumes:
29       - name: oru-app-config-volume
30         configMap:
31           name: {{ include "common.name" . }}
32           items:
33           - key: o-ru-to-o-du-map.txt
34             path: o-ru-to-o-du-map.txt