8f4acef7cb2c227f257f642a2c1471bf20a92d7d
[oom.git] / kubernetes / aai / templates / search-data-service-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: search-data-service
5   namespace: "{{ .Values.nsPrefix }}-aai"
6 spec:
7   selector:
8     matchLabels:
9       app: search-data-service
10   template:
11     metadata:
12       labels:
13         app: search-data-service
14       name: search-data-service
15     spec:
16       containers:
17       - name: search-data-service
18         image: "{{ .Values.image.searchDataImage }}:{{ .Values.image.searchDataVersion }}"
19         imagePullPolicy: {{ .Values.pullPolicy }}
20         env:
21         - name: CONFIG_HOME
22           value: /opt/app/search-data-service/config/
23         - name: KEY_STORE_PASSWORD
24           value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
25         - name: KEY_MANAGER_PASSWORD
26           value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
27         volumeMounts:
28         - mountPath: /opt/app/search-data-service/config/
29           name: aai-search-data-service-config
30         - mountPath: /opt/app/search-data-service/config/auth/tomcat_keystore
31           name: aai-tomcat-key
32         - mountPath: /logs/
33           name: aai-search-data-service-logs
34         ports:
35         - containerPort: 9509
36         readinessProbe:
37           tcpSocket:
38             port: 9509
39           initialDelaySeconds: 5
40           periodSeconds: 10
41       volumes:
42       - name: aai-search-data-service-config
43         hostPath:
44           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/appconfig/"
45       - name: aai-tomcat-key
46         secret:
47           secretName: secret-{{ .Values.nsPrefix }}-aai
48       - name: aai-search-data-service-logs
49         hostPath:
50           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/logs/"
51       restartPolicy: Always
52       imagePullSecrets:
53       - name: "{{ .Values.nsPrefix }}-docker-registry-key"