74132758f29fa954381d8ce9b924437e9f5140e8
[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: /etc/localtime
29           name: localtime
30           readOnly: true
31         - mountPath: /opt/app/search-data-service/config/
32           name: aai-search-data-service-config
33         - mountPath: /logs/
34           name: aai-search-data-service-logs
35         ports:
36         - containerPort: 9509
37         readinessProbe:
38           tcpSocket:
39             port: 9509
40           initialDelaySeconds: 5
41           periodSeconds: 10
42       volumes:
43       - name: localtime
44         hostPath:
45           path: /etc/localtime
46       - name: aai-search-data-service-config
47         hostPath:
48           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/appconfig/"
49       - name: aai-search-data-service-logs
50         hostPath:
51           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/logs/"
52       restartPolicy: Always
53       imagePullSecrets:
54       - name: "{{ .Values.nsPrefix }}-docker-registry-key"