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.disableAaiModelLoaderService }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [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-model-loader-service |
| 20 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 21 | spec: |
vaibhav_16dec | a97d3fd | 2018-02-14 05:32:10 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.modelLoaderReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
| 25 | app: model-loader-service |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: model-loader-service |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 30 | name: aai-model-loader-service |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 31 | spec: |
| 32 | containers: |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 33 | - name: model-loader-service |
| 34 | image: "{{ .Values.image.modelLoaderImage }}:{{ .Values.image.modelLoaderVersion }}" |
| 35 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 36 | env: |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 37 | - name: CONFIG_HOME |
| 38 | value: /opt/app/model-loader/config/ |
| 39 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 40 | - mountPath: /etc/localtime |
| 41 | name: localtime |
| 42 | readOnly: true |
mayankg2703 | 135d891 | 2018-02-06 10:28:00 +0000 | [diff] [blame] | 43 | - mountPath: /opt/app/model-loader/config/model-loader.properties |
| 44 | subPath: model-loader.properties |
| 45 | name: aai-model-loader-prop-config |
| 46 | - mountPath: /opt/app/model-loader/config/auth/ |
| 47 | name: aai-model-loader-auth-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-model-loader-logs |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 50 | - mountPath: /opt/app/model-loader/bundleconfig/etc/logback.xml |
| 51 | name: aai-model-loader-log-conf |
| 52 | subPath: logback.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 53 | ports: |
| 54 | - containerPort: 8080 |
| 55 | - containerPort: 8443 |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 56 | - name: filebeat-onap-aai-model-loader |
| 57 | image: {{ .Values.image.filebeat }} |
| 58 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 59 | volumeMounts: |
| 60 | - mountPath: /usr/share/filebeat/filebeat.yml |
mayankg2703 | 135d891 | 2018-02-06 10:28:00 +0000 | [diff] [blame] | 61 | subPath: filebeat.yml |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 62 | name: filebeat-conf |
| 63 | - mountPath: /var/log/onap |
| 64 | name: aai-model-loader-logs |
| 65 | - mountPath: /usr/share/filebeat/data |
| 66 | name: aai-model-loader-filebeat |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 67 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 68 | - name: localtime |
| 69 | hostPath: |
| 70 | path: /etc/localtime |
mayankg2703 | 135d891 | 2018-02-06 10:28:00 +0000 | [diff] [blame] | 71 | - name: aai-model-loader-prop-config |
| 72 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 73 | name: aai-model-loader-prop-configmap |
mayankg2703 | 135d891 | 2018-02-06 10:28:00 +0000 | [diff] [blame] | 74 | - name: aai-model-loader-auth-config |
| 75 | secret: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 76 | secretName: aai-model-loader-secret |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 77 | - name: filebeat-conf |
mayankg2703 | 135d891 | 2018-02-06 10:28:00 +0000 | [diff] [blame] | 78 | configMap: |
| 79 | name: aai-filebeat-configmap |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 80 | - name: aai-model-loader-logs |
| 81 | emptyDir: {} |
| 82 | - name: aai-model-loader-filebeat |
| 83 | emptyDir: {} |
| 84 | - name: aai-model-loader-log-conf |
| 85 | configMap: |
mayankg2703 | 33e3cc0 | 2018-02-07 05:56:34 +0000 | [diff] [blame] | 86 | name: aai-model-loader-log-configmap |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 87 | restartPolicy: Always |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 88 | imagePullSecrets: |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 89 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
mayankg2703 | 135d891 | 2018-02-06 10:28:00 +0000 | [diff] [blame] | 90 | #{{ end }} |