blob: 3eb0c5c71417530c332120edc3709b04ab256e72 [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
BorislavGc4bafe12017-10-03 15:40:55 +030033 - mountPath: /var/log/onap
Mandeep Khindafc068432017-08-30 14:24:02 +000034 name: aai-search-data-service-logs
BorislavGc4bafe12017-10-03 15:40:55 +030035 - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml
36 name: aai-search-data-service-log-conf
37 subPath: logback.xml
Mandeep Khindafc068432017-08-30 14:24:02 +000038 ports:
39 - containerPort: 9509
40 readinessProbe:
41 tcpSocket:
42 port: 9509
43 initialDelaySeconds: 5
44 periodSeconds: 10
BorislavGc4bafe12017-10-03 15:40:55 +030045 - name: filebeat-onap-aai-search
46 image: {{ .Values.image.filebeat }}
47 imagePullPolicy: {{ .Values.pullPolicy }}
48 volumeMounts:
49 - mountPath: /usr/share/filebeat/filebeat.yml
50 name: filebeat-conf
51 - mountPath: /var/log/onap
52 name: aai-search-data-service-logs
53 - mountPath: /usr/share/filebeat/data
54 name: aai-search-data-service-filebeat
Mandeep Khindafc068432017-08-30 14:24:02 +000055 volumes:
yurync400bf52017-09-13 19:21:03 +030056 - name: localtime
57 hostPath:
58 path: /etc/localtime
Mandeep Khindafc068432017-08-30 14:24:02 +000059 - name: aai-search-data-service-config
60 hostPath:
61 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/appconfig/"
BorislavGc4bafe12017-10-03 15:40:55 +030062 - name: filebeat-conf
Mandeep Khindafc068432017-08-30 14:24:02 +000063 hostPath:
BorislavGc4bafe12017-10-03 15:40:55 +030064 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
65 - name: aai-search-data-service-logs
66 emptyDir: {}
67 - name: aai-search-data-service-filebeat
68 emptyDir: {}
69 - name: aai-search-data-service-log-conf
70 configMap:
71 name: aai-search-data-service-configmap
Mandeep Khindafc068432017-08-30 14:24:02 +000072 restartPolicy: Always
73 imagePullSecrets:
74 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGc4bafe12017-10-03 15:40:55 +030075---
76apiVersion: v1
77kind: ConfigMap
78metadata:
79 name: aai-search-data-service-configmap
80 namespace: {{ .Values.nsPrefix }}-aai
81data:
82{{ (.Files.Glob "resources/search-data-service/conf/logback.xml").AsConfig | indent 2 }}
83