License addition in all yamls
[oom.git] / kubernetes / aai / templates / search-data-service-deployment.yaml
1 # 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
15 #{{ if not .Values.disableAaiSearchDataService }}
16 apiVersion: extensions/v1beta1
17 kind: Deployment
18 metadata:
19   name: aai-search-data-service
20   namespace: "{{ .Values.nsPrefix }}"
21 spec:
22   replicas: {{ .Values.searchDataServiceReplicas }}
23   selector:
24     matchLabels:
25       app: search-data-service
26   template:
27     metadata:
28       labels:
29         app: search-data-service
30       name: aai-search-data-service
31     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:
44         - mountPath: /etc/localtime
45           name: localtime
46           readOnly: true
47         - mountPath: /opt/app/search-data-service/config/filter-config.json
48           subPath: filter-config.json
49           name: aai-search-data-service-config
50         - 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
62         - mountPath: /var/log/onap
63           name: aai-search-data-service-logs
64         - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml
65           name: aai-search-data-service-log-conf
66           subPath: logback.xml
67         ports:
68         - containerPort: 9509
69         readinessProbe:
70           tcpSocket:
71             port: 9509
72           initialDelaySeconds: 5
73           periodSeconds: 10
74       - name: filebeat-onap-aai-search
75         image: {{ .Values.image.filebeat }}
76         imagePullPolicy: {{ .Values.pullPolicy }}
77         volumeMounts:
78         - mountPath: /usr/share/filebeat/filebeat.yml
79           subPath: filebeat.yml
80           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
85       volumes:
86       - name: localtime
87         hostPath:
88           path: /etc/localtime
89       - name: aai-search-data-service-config
90         configMap:
91           name: aai-search-data-configmap
92       - name: aai-search-data-service-auth-config
93         secret:
94           secretName: aai-search-data-keystone-secret
95       - name: aai-search-data-search-policy-config
96         configMap:
97           name: aai-search-policy-configmap
98       - name: filebeat-conf
99         configMap:
100           name: aai-filebeat-configmap
101       - 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:
107          name: aai-search-data-service-log-configmap
108       restartPolicy: Always
109       imagePullSecrets:
110       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
111 #{{ end }}