Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: model-loader-service |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-aai" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: model-loader-service |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: model-loader-service |
| 14 | name: model-loader-service |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 15 | spec: |
| 16 | containers: |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 17 | - name: model-loader-service |
| 18 | image: "{{ .Values.image.modelLoaderImage }}:{{ .Values.image.modelLoaderVersion }}" |
| 19 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 20 | env: |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 21 | - name: CONFIG_HOME |
| 22 | value: /opt/app/model-loader/config/ |
| 23 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 24 | - mountPath: /etc/localtime |
| 25 | name: localtime |
| 26 | readOnly: true |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 27 | - mountPath: /opt/app/model-loader/config/ |
| 28 | name: aai-model-loader-config |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 29 | - mountPath: /var/log/onap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 30 | name: aai-model-loader-logs |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 31 | - mountPath: /opt/app/model-loader/bundleconfig/etc/logback.xml |
| 32 | name: aai-model-loader-log-conf |
| 33 | subPath: logback.xml |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 34 | ports: |
| 35 | - containerPort: 8080 |
| 36 | - containerPort: 8443 |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 37 | - name: filebeat-onap-aai-model-loader |
| 38 | image: {{ .Values.image.filebeat }} |
| 39 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 40 | volumeMounts: |
| 41 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 42 | name: filebeat-conf |
| 43 | - mountPath: /var/log/onap |
| 44 | name: aai-model-loader-logs |
| 45 | - mountPath: /usr/share/filebeat/data |
| 46 | name: aai-model-loader-filebeat |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 47 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 48 | - name: localtime |
| 49 | hostPath: |
| 50 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 51 | - name: aai-model-loader-config |
| 52 | hostPath: |
| 53 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/appconfig/" |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 54 | - name: filebeat-conf |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 55 | hostPath: |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 56 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml |
| 57 | - name: aai-model-loader-logs |
| 58 | emptyDir: {} |
| 59 | - name: aai-model-loader-filebeat |
| 60 | emptyDir: {} |
| 61 | - name: aai-model-loader-log-conf |
| 62 | configMap: |
| 63 | name: aai-model-loader-configmap |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 64 | restartPolicy: Always |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 65 | imagePullSecrets: |
Alexis de Talhouƫt | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 66 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 67 | --- |
| 68 | apiVersion: v1 |
| 69 | kind: ConfigMap |
| 70 | metadata: |
| 71 | name: aai-model-loader-configmap |
| 72 | namespace: {{ .Values.nsPrefix }}-aai |
| 73 | data: |
| 74 | {{ (.Files.Glob "resources/model-loader/conf/logback.xml").AsConfig | indent 2 }} |
| 75 | |