yuryn | 5d0587b | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAaiSearchDataService }} |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: search-data-service |
| 6 | namespace: "{{ .Values.nsPrefix }}-aai" |
| 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: search-data-service |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: search-data-service |
| 15 | name: search-data-service |
| 16 | spec: |
| 17 | containers: |
| 18 | - name: search-data-service |
| 19 | image: "{{ .Values.image.searchDataImage }}:{{ .Values.image.searchDataVersion }}" |
| 20 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 21 | env: |
| 22 | - name: CONFIG_HOME |
| 23 | value: /opt/app/search-data-service/config/ |
| 24 | - name: KEY_STORE_PASSWORD |
| 25 | value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 |
| 26 | - name: KEY_MANAGER_PASSWORD |
| 27 | value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 |
| 28 | volumeMounts: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 29 | - mountPath: /etc/localtime |
| 30 | name: localtime |
| 31 | readOnly: true |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 32 | - mountPath: /opt/app/search-data-service/config/ |
| 33 | name: aai-search-data-service-config |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 34 | - mountPath: /var/log/onap |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 35 | name: aai-search-data-service-logs |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 36 | - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml |
| 37 | name: aai-search-data-service-log-conf |
| 38 | subPath: logback.xml |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 39 | ports: |
| 40 | - containerPort: 9509 |
| 41 | readinessProbe: |
| 42 | tcpSocket: |
| 43 | port: 9509 |
| 44 | initialDelaySeconds: 5 |
| 45 | periodSeconds: 10 |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 46 | - name: filebeat-onap-aai-search |
| 47 | image: {{ .Values.image.filebeat }} |
| 48 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 49 | volumeMounts: |
| 50 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 51 | name: filebeat-conf |
| 52 | - mountPath: /var/log/onap |
| 53 | name: aai-search-data-service-logs |
| 54 | - mountPath: /usr/share/filebeat/data |
| 55 | name: aai-search-data-service-filebeat |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 56 | volumes: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 57 | - name: localtime |
| 58 | hostPath: |
| 59 | path: /etc/localtime |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 60 | - name: aai-search-data-service-config |
| 61 | hostPath: |
| 62 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/appconfig/" |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 63 | - name: filebeat-conf |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 64 | hostPath: |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 65 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml |
| 66 | - name: aai-search-data-service-logs |
| 67 | emptyDir: {} |
| 68 | - name: aai-search-data-service-filebeat |
| 69 | emptyDir: {} |
| 70 | - name: aai-search-data-service-log-conf |
| 71 | configMap: |
| 72 | name: aai-search-data-service-configmap |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 73 | restartPolicy: Always |
| 74 | imagePullSecrets: |
| 75 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 76 | --- |
| 77 | apiVersion: v1 |
| 78 | kind: ConfigMap |
| 79 | metadata: |
| 80 | name: aai-search-data-service-configmap |
| 81 | namespace: {{ .Values.nsPrefix }}-aai |
| 82 | data: |
| 83 | {{ (.Files.Glob "resources/search-data-service/conf/logback.xml").AsConfig | indent 2 }} |
yuryn | 5d0587b | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 84 | #{{ end }} |