blob: 28cc4f3236119828eb9c9521e4d2d79c11464915 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableAaiSearchDataService }}
Mandeep Khinda4b881972017-08-30 14:24:02 +000016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: aai-search-data-service
20 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khinda4b881972017-08-30 14:24:02 +000021spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +000022 replicas: {{ .Values.searchDataServiceReplicas }}
Mandeep Khinda4b881972017-08-30 14:24:02 +000023 selector:
24 matchLabels:
25 app: search-data-service
26 template:
27 metadata:
28 labels:
29 app: search-data-service
BorislavG8bfc6cf2018-02-27 15:04:26 +000030 name: aai-search-data-service
Mandeep Khinda4b881972017-08-30 14:24:02 +000031 spec:
32 containers:
33 - name: search-data-service
34 image: "{{ .Values.image.searchDataImage }}:{{ .Values.image.searchDataVersion }}"
35 imagePullPolicy: {{ .Values.pullPolicy }}
36 env:
37 - name: CONFIG_HOME
38 value: /opt/app/search-data-service/config/
39 - name: KEY_STORE_PASSWORD
40 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
41 - name: KEY_MANAGER_PASSWORD
42 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
43 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030044 - mountPath: /etc/localtime
45 name: localtime
46 readOnly: true
mayankg270328d32912018-02-06 10:24:30 +000047 - mountPath: /opt/app/search-data-service/config/filter-config.json
48 subPath: filter-config.json
Mandeep Khinda4b881972017-08-30 14:24:02 +000049 name: aai-search-data-service-config
mayankg270328d32912018-02-06 10:24:30 +000050 - mountPath: /opt/app/search-data-service/config/elastic-search.properties
51 subPath: elastic-search.properties
52 name: aai-search-data-service-config
53 - mountPath: /opt/app/search-data-service/config/analysis-config.json
54 subPath: filter-config.json
55 name: aai-search-data-service-config
56 - mountPath: /opt/app/search-data-service/config/auth/tomcat_keystore
57 subPath: tomcat_keystore
58 name: aai-search-data-service-auth-config
59 - mountPath: /opt/app/search-data-service/config/auth/search_policy.json
60 subPath: search_policy.json
61 name: aai-search-data-search-policy-config
BorislavGb2b99182017-10-03 15:40:55 +030062 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000063 name: aai-search-data-service-logs
BorislavGb2b99182017-10-03 15:40:55 +030064 - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml
65 name: aai-search-data-service-log-conf
66 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000067 ports:
68 - containerPort: 9509
69 readinessProbe:
70 tcpSocket:
71 port: 9509
72 initialDelaySeconds: 5
73 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030074 - name: filebeat-onap-aai-search
75 image: {{ .Values.image.filebeat }}
76 imagePullPolicy: {{ .Values.pullPolicy }}
77 volumeMounts:
78 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg270328d32912018-02-06 10:24:30 +000079 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030080 name: filebeat-conf
81 - mountPath: /var/log/onap
82 name: aai-search-data-service-logs
83 - mountPath: /usr/share/filebeat/data
84 name: aai-search-data-service-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000085 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030086 - name: localtime
87 hostPath:
88 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000089 - name: aai-search-data-service-config
mayankg270328d32912018-02-06 10:24:30 +000090 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +000091 name: aai-search-data-configmap
mayankg270328d32912018-02-06 10:24:30 +000092 - name: aai-search-data-service-auth-config
93 secret:
BorislavG8bfc6cf2018-02-27 15:04:26 +000094 secretName: aai-search-data-keystone-secret
mayankg270328d32912018-02-06 10:24:30 +000095 - name: aai-search-data-search-policy-config
96 configMap:
97 name: aai-search-policy-configmap
BorislavGb2b99182017-10-03 15:40:55 +030098 - name: filebeat-conf
mayankg270328d32912018-02-06 10:24:30 +000099 configMap:
100 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +0300101 - name: aai-search-data-service-logs
102 emptyDir: {}
103 - name: aai-search-data-service-filebeat
104 emptyDir: {}
105 - name: aai-search-data-service-log-conf
106 configMap:
mayankg270348798202018-02-07 06:02:17 +0000107 name: aai-search-data-service-log-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +0000108 restartPolicy: Always
109 imagePullSecrets:
110 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG4a022bd2017-12-17 16:33:34 +0200111#{{ end }}