blob: 5f667106a7a28d17b94a0492468855b186e4e3db [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiSearchDataService }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: search-data-service
6 namespace: "{{ .Values.nsPrefix }}-aai"
7spec:
8 selector:
9 matchLabels:
10 app: search-data-service
11 template:
12 metadata:
13 labels:
14 app: search-data-service
15 name: search-data-service
16 spec:
17 containers:
18 - name: search-data-service
19 image: "{{ .Values.image.searchDataImage }}:{{ .Values.image.searchDataVersion }}"
20 imagePullPolicy: {{ .Values.pullPolicy }}
21 env:
22 - name: CONFIG_HOME
23 value: /opt/app/search-data-service/config/
24 - name: KEY_STORE_PASSWORD
25 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
26 - name: KEY_MANAGER_PASSWORD
27 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
28 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030029 - mountPath: /etc/localtime
30 name: localtime
31 readOnly: true
mayankg270328d32912018-02-06 10:24:30 +000032 - mountPath: /opt/app/search-data-service/config/filter-config.json
33 subPath: filter-config.json
Mandeep Khinda4b881972017-08-30 14:24:02 +000034 name: aai-search-data-service-config
mayankg270328d32912018-02-06 10:24:30 +000035 - mountPath: /opt/app/search-data-service/config/elastic-search.properties
36 subPath: elastic-search.properties
37 name: aai-search-data-service-config
38 - mountPath: /opt/app/search-data-service/config/analysis-config.json
39 subPath: filter-config.json
40 name: aai-search-data-service-config
41 - mountPath: /opt/app/search-data-service/config/auth/tomcat_keystore
42 subPath: tomcat_keystore
43 name: aai-search-data-service-auth-config
44 - mountPath: /opt/app/search-data-service/config/auth/search_policy.json
45 subPath: search_policy.json
46 name: aai-search-data-search-policy-config
BorislavGb2b99182017-10-03 15:40:55 +030047 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000048 name: aai-search-data-service-logs
BorislavGb2b99182017-10-03 15:40:55 +030049 - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml
50 name: aai-search-data-service-log-conf
51 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000052 ports:
53 - containerPort: 9509
54 readinessProbe:
55 tcpSocket:
56 port: 9509
57 initialDelaySeconds: 5
58 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030059 - name: filebeat-onap-aai-search
60 image: {{ .Values.image.filebeat }}
61 imagePullPolicy: {{ .Values.pullPolicy }}
62 volumeMounts:
63 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg270328d32912018-02-06 10:24:30 +000064 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030065 name: filebeat-conf
66 - mountPath: /var/log/onap
67 name: aai-search-data-service-logs
68 - mountPath: /usr/share/filebeat/data
69 name: aai-search-data-service-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000070 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030071 - name: localtime
72 hostPath:
73 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000074 - name: aai-search-data-service-config
mayankg270328d32912018-02-06 10:24:30 +000075 configMap:
76 name: search-data-configmap
77 - name: aai-search-data-service-auth-config
78 secret:
79 secretName: search-data-keystone-secret
80 - name: aai-search-data-search-policy-config
81 configMap:
82 name: aai-search-policy-configmap
BorislavGb2b99182017-10-03 15:40:55 +030083 - name: filebeat-conf
mayankg270328d32912018-02-06 10:24:30 +000084 configMap:
85 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +030086 - name: aai-search-data-service-logs
87 emptyDir: {}
88 - name: aai-search-data-service-filebeat
89 emptyDir: {}
90 - name: aai-search-data-service-log-conf
91 configMap:
mayankg270348798202018-02-07 06:02:17 +000092 name: aai-search-data-service-log-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +000093 restartPolicy: Always
94 imagePullSecrets:
95 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG4a022bd2017-12-17 16:33:34 +020096#{{ end }}