blob: 74132758f29fa954381d8ce9b924437e9f5140e8 [file] [log] [blame]
Mandeep Khindafc068432017-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:
yurync400bf52017-09-13 19:21:03 +030028 - mountPath: /etc/localtime
29 name: localtime
30 readOnly: true
Mandeep Khindafc068432017-08-30 14:24:02 +000031 - 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:
yurync400bf52017-09-13 19:21:03 +030043 - name: localtime
44 hostPath:
45 path: /etc/localtime
Mandeep Khindafc068432017-08-30 14:24:02 +000046 - name: aai-search-data-service-config
47 hostPath:
48 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/appconfig/"
Mandeep Khindafc068432017-08-30 14:24:02 +000049 - 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"