vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disableAaiSearchDataService }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 19 | name: aai-search-data-service |
| 20 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 21 | spec: |
vaibhav_16dec | a97d3fd | 2018-02-14 05:32:10 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.searchDataServiceReplicas }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
| 25 | app: search-data-service |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: search-data-service |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 30 | name: aai-search-data-service |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 31 | spec: |
| 32 | containers: |
| 33 | - name: search-data-service |
| 34 | image: "{{ .Values.image.searchDataImage }}:{{ .Values.image.searchDataVersion }}" |
| 35 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 36 | env: |
| 37 | - name: CONFIG_HOME |
| 38 | value: /opt/app/search-data-service/config/ |
| 39 | - name: KEY_STORE_PASSWORD |
| 40 | value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 |
| 41 | - name: KEY_MANAGER_PASSWORD |
| 42 | value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 |
| 43 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 44 | - mountPath: /etc/localtime |
| 45 | name: localtime |
| 46 | readOnly: true |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 47 | - mountPath: /opt/app/search-data-service/config/filter-config.json |
| 48 | subPath: filter-config.json |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 49 | name: aai-search-data-service-config |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 50 | - mountPath: /opt/app/search-data-service/config/elastic-search.properties |
| 51 | subPath: elastic-search.properties |
| 52 | name: aai-search-data-service-config |
| 53 | - mountPath: /opt/app/search-data-service/config/analysis-config.json |
| 54 | subPath: filter-config.json |
| 55 | name: aai-search-data-service-config |
| 56 | - mountPath: /opt/app/search-data-service/config/auth/tomcat_keystore |
| 57 | subPath: tomcat_keystore |
| 58 | name: aai-search-data-service-auth-config |
| 59 | - mountPath: /opt/app/search-data-service/config/auth/search_policy.json |
| 60 | subPath: search_policy.json |
| 61 | name: aai-search-data-search-policy-config |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 62 | - mountPath: /var/log/onap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 63 | name: aai-search-data-service-logs |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 64 | - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml |
| 65 | name: aai-search-data-service-log-conf |
| 66 | subPath: logback.xml |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 67 | ports: |
| 68 | - containerPort: 9509 |
| 69 | readinessProbe: |
| 70 | tcpSocket: |
| 71 | port: 9509 |
| 72 | initialDelaySeconds: 5 |
| 73 | periodSeconds: 10 |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 74 | - name: filebeat-onap-aai-search |
| 75 | image: {{ .Values.image.filebeat }} |
| 76 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 77 | volumeMounts: |
| 78 | - mountPath: /usr/share/filebeat/filebeat.yml |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 79 | subPath: filebeat.yml |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 80 | name: filebeat-conf |
| 81 | - mountPath: /var/log/onap |
| 82 | name: aai-search-data-service-logs |
| 83 | - mountPath: /usr/share/filebeat/data |
| 84 | name: aai-search-data-service-filebeat |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 85 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 86 | - name: localtime |
| 87 | hostPath: |
| 88 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 89 | - name: aai-search-data-service-config |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 90 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 91 | name: aai-search-data-configmap |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 92 | - name: aai-search-data-service-auth-config |
| 93 | secret: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 94 | secretName: aai-search-data-keystone-secret |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 95 | - name: aai-search-data-search-policy-config |
| 96 | configMap: |
| 97 | name: aai-search-policy-configmap |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 98 | - name: filebeat-conf |
mayankg2703 | 28d3291 | 2018-02-06 10:24:30 +0000 | [diff] [blame] | 99 | configMap: |
| 100 | name: aai-filebeat-configmap |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 101 | - name: aai-search-data-service-logs |
| 102 | emptyDir: {} |
| 103 | - name: aai-search-data-service-filebeat |
| 104 | emptyDir: {} |
| 105 | - name: aai-search-data-service-log-conf |
| 106 | configMap: |
mayankg2703 | 4879820 | 2018-02-07 06:02:17 +0000 | [diff] [blame] | 107 | name: aai-search-data-service-log-configmap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 108 | restartPolicy: Always |
| 109 | imagePullSecrets: |
| 110 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | 4a022bd | 2017-12-17 16:33:34 +0200 | [diff] [blame] | 111 | #{{ end }} |