blob: 7202e0d39cc2682220674e942793478a4c5466eb [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:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +00008 replicas: {{ .Values.searchDataServiceReplicas }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00009 selector:
10 matchLabels:
11 app: search-data-service
12 template:
13 metadata:
14 labels:
15 app: search-data-service
16 name: search-data-service
17 spec:
18 containers:
19 - name: search-data-service
20 image: "{{ .Values.image.searchDataImage }}:{{ .Values.image.searchDataVersion }}"
21 imagePullPolicy: {{ .Values.pullPolicy }}
22 env:
23 - name: CONFIG_HOME
24 value: /opt/app/search-data-service/config/
25 - name: KEY_STORE_PASSWORD
26 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
27 - name: KEY_MANAGER_PASSWORD
28 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
29 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030030 - mountPath: /etc/localtime
31 name: localtime
32 readOnly: true
mayankg270328d32912018-02-06 10:24:30 +000033 - mountPath: /opt/app/search-data-service/config/filter-config.json
34 subPath: filter-config.json
Mandeep Khinda4b881972017-08-30 14:24:02 +000035 name: aai-search-data-service-config
mayankg270328d32912018-02-06 10:24:30 +000036 - mountPath: /opt/app/search-data-service/config/elastic-search.properties
37 subPath: elastic-search.properties
38 name: aai-search-data-service-config
39 - mountPath: /opt/app/search-data-service/config/analysis-config.json
40 subPath: filter-config.json
41 name: aai-search-data-service-config
42 - mountPath: /opt/app/search-data-service/config/auth/tomcat_keystore
43 subPath: tomcat_keystore
44 name: aai-search-data-service-auth-config
45 - mountPath: /opt/app/search-data-service/config/auth/search_policy.json
46 subPath: search_policy.json
47 name: aai-search-data-search-policy-config
BorislavGb2b99182017-10-03 15:40:55 +030048 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000049 name: aai-search-data-service-logs
BorislavGb2b99182017-10-03 15:40:55 +030050 - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml
51 name: aai-search-data-service-log-conf
52 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000053 ports:
54 - containerPort: 9509
55 readinessProbe:
56 tcpSocket:
57 port: 9509
58 initialDelaySeconds: 5
59 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030060 - name: filebeat-onap-aai-search
61 image: {{ .Values.image.filebeat }}
62 imagePullPolicy: {{ .Values.pullPolicy }}
63 volumeMounts:
64 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg270328d32912018-02-06 10:24:30 +000065 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030066 name: filebeat-conf
67 - mountPath: /var/log/onap
68 name: aai-search-data-service-logs
69 - mountPath: /usr/share/filebeat/data
70 name: aai-search-data-service-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000071 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030072 - name: localtime
73 hostPath:
74 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000075 - name: aai-search-data-service-config
mayankg270328d32912018-02-06 10:24:30 +000076 configMap:
77 name: search-data-configmap
78 - name: aai-search-data-service-auth-config
79 secret:
80 secretName: search-data-keystone-secret
81 - name: aai-search-data-search-policy-config
82 configMap:
83 name: aai-search-policy-configmap
BorislavGb2b99182017-10-03 15:40:55 +030084 - name: filebeat-conf
mayankg270328d32912018-02-06 10:24:30 +000085 configMap:
86 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +030087 - name: aai-search-data-service-logs
88 emptyDir: {}
89 - name: aai-search-data-service-filebeat
90 emptyDir: {}
91 - name: aai-search-data-service-log-conf
92 configMap:
mayankg270348798202018-02-07 06:02:17 +000093 name: aai-search-data-service-log-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +000094 restartPolicy: Always
95 imagePullSecrets:
96 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG4a022bd2017-12-17 16:33:34 +020097#{{ end }}