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