yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAaiSearchDataService }} |
Mandeep Khinda | 4b88197 | 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 | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 29 | - mountPath: /etc/localtime |
| 30 | name: localtime |
| 31 | readOnly: true |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 32 | - mountPath: /opt/app/search-data-service/config/filter-config.json |
| 33 | subPath: filter-config.json |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 34 | name: aai-search-data-service-config |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 35 | - mountPath: /opt/app/search-data-service/config/elastic-search.properties |
| 36 | subPath: elastic-search.properties |
| 37 | name: aai-search-data-service-config |
| 38 | - mountPath: /opt/app/search-data-service/config/analysis-config.json |
| 39 | subPath: filter-config.json |
| 40 | name: aai-search-data-service-config |
| 41 | - mountPath: /opt/app/search-data-service/config/auth/tomcat_keystore |
| 42 | subPath: tomcat_keystore |
| 43 | name: aai-search-data-service-auth-config |
| 44 | - mountPath: /opt/app/search-data-service/config/auth/search_policy.json |
| 45 | subPath: search_policy.json |
| 46 | name: aai-search-data-search-policy-config |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 47 | - mountPath: /var/log/onap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 48 | name: aai-search-data-service-logs |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 49 | - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml |
| 50 | name: aai-search-data-service-log-conf |
| 51 | subPath: logback.xml |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 52 | ports: |
| 53 | - containerPort: 9509 |
| 54 | readinessProbe: |
| 55 | tcpSocket: |
| 56 | port: 9509 |
| 57 | initialDelaySeconds: 5 |
| 58 | periodSeconds: 10 |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 59 | - name: filebeat-onap-aai-search |
| 60 | image: {{ .Values.image.filebeat }} |
| 61 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 62 | volumeMounts: |
| 63 | - mountPath: /usr/share/filebeat/filebeat.yml |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 64 | subPath: filebeat.yml |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 65 | name: filebeat-conf |
| 66 | - mountPath: /var/log/onap |
| 67 | name: aai-search-data-service-logs |
| 68 | - mountPath: /usr/share/filebeat/data |
| 69 | name: aai-search-data-service-filebeat |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 70 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 71 | - name: localtime |
| 72 | hostPath: |
| 73 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 74 | - name: aai-search-data-service-config |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 75 | configMap: |
| 76 | name: search-data-configmap |
| 77 | - name: aai-search-data-service-auth-config |
| 78 | secret: |
| 79 | secretName: search-data-keystone-secret |
| 80 | - name: aai-search-data-search-policy-config |
| 81 | configMap: |
| 82 | name: aai-search-policy-configmap |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 83 | - name: filebeat-conf |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 84 | configMap: |
| 85 | name: aai-filebeat-configmap |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 86 | - name: aai-search-data-service-logs |
| 87 | emptyDir: {} |
| 88 | - name: aai-search-data-service-filebeat |
| 89 | emptyDir: {} |
| 90 | - name: aai-search-data-service-log-conf |
| 91 | configMap: |
| 92 | name: aai-search-data-service-configmap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 93 | restartPolicy: Always |
| 94 | imagePullSecrets: |
| 95 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 96 | --- |
| 97 | apiVersion: v1 |
| 98 | kind: ConfigMap |
| 99 | metadata: |
| 100 | name: aai-search-data-service-configmap |
| 101 | namespace: {{ .Values.nsPrefix }}-aai |
| 102 | data: |
| 103 | {{ (.Files.Glob "resources/search-data-service/conf/logback.xml").AsConfig | indent 2 }} |
BorislavG | 4a022bd | 2017-12-17 16:33:34 +0200 | [diff] [blame] | 104 | #{{ end }} |