Config seg sdc deployment
[oom.git] / kubernetes / aai / templates / search-data-service-deployment.yaml
1 #{{ if not .Values.disableAaiSearchDataService }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: search-data-service
6   namespace: "{{ .Values.nsPrefix }}-aai"
7 spec:
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:
29         - mountPath: /etc/localtime
30           name: localtime
31           readOnly: true
32         - mountPath: /opt/app/search-data-service/config/filter-config.json
33           subPath: filter-config.json
34           name: aai-search-data-service-config
35         - 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
47         - mountPath: /var/log/onap
48           name: aai-search-data-service-logs
49         - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml
50           name: aai-search-data-service-log-conf
51           subPath: logback.xml
52         ports:
53         - containerPort: 9509
54         readinessProbe:
55           tcpSocket:
56             port: 9509
57           initialDelaySeconds: 5
58           periodSeconds: 10
59       - name: filebeat-onap-aai-search
60         image: {{ .Values.image.filebeat }}
61         imagePullPolicy: {{ .Values.pullPolicy }}
62         volumeMounts:
63         - mountPath: /usr/share/filebeat/filebeat.yml
64           subPath: filebeat.yml
65           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
70       volumes:
71       - name: localtime
72         hostPath:
73           path: /etc/localtime
74       - name: aai-search-data-service-config
75         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
83       - name: filebeat-conf
84         configMap:
85           name: aai-filebeat-configmap
86       - 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:
92          name: aai-search-data-service-configmap
93       restartPolicy: Always
94       imagePullSecrets:
95       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
96 ---
97 apiVersion: v1
98 kind: ConfigMap
99 metadata:
100   name: aai-search-data-service-configmap
101   namespace: {{ .Values.nsPrefix }}-aai
102 data:
103 {{ (.Files.Glob "resources/search-data-service/conf/logback.xml").AsConfig | indent 2 }}
104 #{{ end }}