blob: 7c2fddb7cf4046cd83fc29c997921a5e17447dc5 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiModelLoaderService }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: model-loader-service
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-aai"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: model-loader-service
11 template:
12 metadata:
13 labels:
14 app: model-loader-service
15 name: model-loader-service
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016 spec:
17 containers:
BorislavGb2b99182017-10-03 15:40:55 +030018 - name: model-loader-service
19 image: "{{ .Values.image.modelLoaderImage }}:{{ .Values.image.modelLoaderVersion }}"
20 imagePullPolicy: {{ .Values.pullPolicy }}
21 env:
Mandeep Khinda4b881972017-08-30 14:24:02 +000022 - name: CONFIG_HOME
23 value: /opt/app/model-loader/config/
24 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030025 - mountPath: /etc/localtime
26 name: localtime
27 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000028 - mountPath: /opt/app/model-loader/config/
29 name: aai-model-loader-config
BorislavGb2b99182017-10-03 15:40:55 +030030 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000031 name: aai-model-loader-logs
BorislavGb2b99182017-10-03 15:40:55 +030032 - mountPath: /opt/app/model-loader/bundleconfig/etc/logback.xml
33 name: aai-model-loader-log-conf
34 subPath: logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 ports:
36 - containerPort: 8080
37 - containerPort: 8443
BorislavGb2b99182017-10-03 15:40:55 +030038 - name: filebeat-onap-aai-model-loader
39 image: {{ .Values.image.filebeat }}
40 imagePullPolicy: {{ .Values.pullPolicy }}
41 volumeMounts:
42 - mountPath: /usr/share/filebeat/filebeat.yml
43 name: filebeat-conf
44 - mountPath: /var/log/onap
45 name: aai-model-loader-logs
46 - mountPath: /usr/share/filebeat/data
47 name: aai-model-loader-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000048 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030049 - name: localtime
50 hostPath:
51 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000052 - name: aai-model-loader-config
53 hostPath:
54 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/appconfig/"
BorislavGb2b99182017-10-03 15:40:55 +030055 - name: filebeat-conf
Mandeep Khinda4b881972017-08-30 14:24:02 +000056 hostPath:
shanedanielaf561c12017-10-19 19:10:33 +000057 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030058 - name: aai-model-loader-logs
59 emptyDir: {}
60 - name: aai-model-loader-filebeat
61 emptyDir: {}
62 - name: aai-model-loader-log-conf
63 configMap:
64 name: aai-model-loader-configmap
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030066 imagePullSecrets:
Alexis de Talhouƫt91c77102017-09-26 10:29:32 -040067 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGb2b99182017-10-03 15:40:55 +030068---
69apiVersion: v1
70kind: ConfigMap
71metadata:
72 name: aai-model-loader-configmap
73 namespace: {{ .Values.nsPrefix }}-aai
74data:
75{{ (.Files.Glob "resources/model-loader/conf/logback.xml").AsConfig | indent 2 }}
yurynfcef9942017-10-26 17:10:50 +030076#{{ end }}