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: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 5 | name: aai-search-data-service |
| 6 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | a97d3fd | 2018-02-14 05:32:10 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.searchDataServiceReplicas }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: search-data-service |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: search-data-service |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 16 | name: aai-search-data-service |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 17 | spec: |
| 18 | containers: |
| 19 | - name: search-data-service |
| 20 | image: "{{ .Values.image.searchDataImage }}:{{ .Values.image.searchDataVersion }}" |
| 21 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 22 | env: |
| 23 | - name: CONFIG_HOME |
| 24 | value: /opt/app/search-data-service/config/ |
| 25 | - name: KEY_STORE_PASSWORD |
| 26 | value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 |
| 27 | - name: KEY_MANAGER_PASSWORD |
| 28 | value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 |
| 29 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 30 | - mountPath: /etc/localtime |
| 31 | name: localtime |
| 32 | readOnly: true |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 33 | - mountPath: /opt/app/search-data-service/config/filter-config.json |
| 34 | subPath: filter-config.json |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 35 | name: aai-search-data-service-config |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 36 | - mountPath: /opt/app/search-data-service/config/elastic-search.properties |
| 37 | subPath: elastic-search.properties |
| 38 | name: aai-search-data-service-config |
| 39 | - mountPath: /opt/app/search-data-service/config/analysis-config.json |
| 40 | subPath: filter-config.json |
| 41 | name: aai-search-data-service-config |
| 42 | - mountPath: /opt/app/search-data-service/config/auth/tomcat_keystore |
| 43 | subPath: tomcat_keystore |
| 44 | name: aai-search-data-service-auth-config |
| 45 | - mountPath: /opt/app/search-data-service/config/auth/search_policy.json |
| 46 | subPath: search_policy.json |
| 47 | name: aai-search-data-search-policy-config |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 48 | - mountPath: /var/log/onap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 49 | name: aai-search-data-service-logs |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 50 | - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml |
| 51 | name: aai-search-data-service-log-conf |
| 52 | subPath: logback.xml |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 53 | ports: |
| 54 | - containerPort: 9509 |
| 55 | readinessProbe: |
| 56 | tcpSocket: |
| 57 | port: 9509 |
| 58 | initialDelaySeconds: 5 |
| 59 | periodSeconds: 10 |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 60 | - name: filebeat-onap-aai-search |
| 61 | image: {{ .Values.image.filebeat }} |
| 62 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 63 | volumeMounts: |
| 64 | - mountPath: /usr/share/filebeat/filebeat.yml |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 65 | subPath: filebeat.yml |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 66 | name: filebeat-conf |
| 67 | - mountPath: /var/log/onap |
| 68 | name: aai-search-data-service-logs |
| 69 | - mountPath: /usr/share/filebeat/data |
| 70 | name: aai-search-data-service-filebeat |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 71 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 72 | - name: localtime |
| 73 | hostPath: |
| 74 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 75 | - name: aai-search-data-service-config |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 76 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 77 | name: aai-search-data-configmap |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 78 | - name: aai-search-data-service-auth-config |
| 79 | secret: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 80 | secretName: aai-search-data-keystone-secret |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 81 | - name: aai-search-data-search-policy-config |
| 82 | configMap: |
| 83 | name: aai-search-policy-configmap |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 84 | - name: filebeat-conf |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 85 | configMap: |
| 86 | name: aai-filebeat-configmap |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 87 | - name: aai-search-data-service-logs |
| 88 | emptyDir: {} |
| 89 | - name: aai-search-data-service-filebeat |
| 90 | emptyDir: {} |
| 91 | - name: aai-search-data-service-log-conf |
| 92 | configMap: |
mayankg2703 | 4879820 | 2018-02-07 06:02:17 +0000 | [diff] [blame] | 93 | name: aai-search-data-service-log-configmap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 94 | restartPolicy: Always |
| 95 | imagePullSecrets: |
| 96 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | 4a022bd | 2017-12-17 16:33:34 +0200 | [diff] [blame] | 97 | #{{ end }} |