blob: f2db9370fd5ebb8c121a98d4fc04d5cb3ee159c2 [file] [log] [blame]
Mandeep Khinda4b881972017-08-30 14:24:02 +00001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: search-data-service
5 namespace: "{{ .Values.nsPrefix }}-aai"
6spec:
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: /logs/
31 name: aai-search-data-service-logs
32 ports:
33 - containerPort: 9509
34 readinessProbe:
35 tcpSocket:
36 port: 9509
37 initialDelaySeconds: 5
38 periodSeconds: 10
39 volumes:
40 - name: aai-search-data-service-config
41 hostPath:
42 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/appconfig/"
Mandeep Khinda4b881972017-08-30 14:24:02 +000043 - name: aai-search-data-service-logs
44 hostPath:
45 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/logs/"
46 restartPolicy: Always
47 imagePullSecrets:
48 - name: "{{ .Values.nsPrefix }}-docker-registry-key"