c3f5603a8ef7dce1b8f06909517cc318fe2b432f
[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: CURL_CA_BUNDLE
29               value: ''
30           envFrom:
31             - configMapRef:
32                 name: oru-app-configmapenv
33           volumeMounts:
34             - name: oru-app-config-volume
35               subPath: o-ru-to-o-du-map.txt
36               mountPath: /usr/src/app/o-ru-to-o-du-map.txt
37           securityContext:
38             capabilities:
39               add:
40                 - SYS_ADMIN
41                 - SYS_PTRACE
42       volumes: 
43         - name: oru-app-config-volume
44           configMap:
45             name: oru-app-configmap
46             items:
47               - key: o-ru-to-o-du-map.txt
48                 path: o-ru-to-o-du-map.txt