blob: 3f2bda3d6ca9cda283fba43adaf884dad5a0d3a3 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: model-loader-service
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-aai"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
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 Khindad6ea9872017-06-24 11:49:37 -040015 spec:
16 containers:
BorislavGb2b99182017-10-03 15:40:55 +030017 - name: model-loader-service
18 image: "{{ .Values.image.modelLoaderImage }}:{{ .Values.image.modelLoaderVersion }}"
19 imagePullPolicy: {{ .Values.pullPolicy }}
20 env:
Mandeep Khinda4b881972017-08-30 14:24:02 +000021 - name: CONFIG_HOME
22 value: /opt/app/model-loader/config/
23 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030024 - mountPath: /etc/localtime
25 name: localtime
26 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000027 - mountPath: /opt/app/model-loader/config/
28 name: aai-model-loader-config
BorislavGb2b99182017-10-03 15:40:55 +030029 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000030 name: aai-model-loader-logs
BorislavGb2b99182017-10-03 15:40:55 +030031 - mountPath: /opt/app/model-loader/bundleconfig/etc/logback.xml
32 name: aai-model-loader-log-conf
33 subPath: logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -040034 ports:
35 - containerPort: 8080
36 - containerPort: 8443
BorislavGb2b99182017-10-03 15:40:55 +030037 - 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 Khinda4b881972017-08-30 14:24:02 +000047 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030048 - name: localtime
49 hostPath:
50 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000051 - name: aai-model-loader-config
52 hostPath:
53 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/appconfig/"
BorislavGb2b99182017-10-03 15:40:55 +030054 - name: filebeat-conf
Mandeep Khinda4b881972017-08-30 14:24:02 +000055 hostPath:
BorislavGb2b99182017-10-03 15:40:55 +030056 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 Khindad6ea9872017-06-24 11:49:37 -040064 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030065 imagePullSecrets:
Alexis de Talhouƫt91c77102017-09-26 10:29:32 -040066 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGb2b99182017-10-03 15:40:55 +030067---
68apiVersion: v1
69kind: ConfigMap
70metadata:
71 name: aai-model-loader-configmap
72 namespace: {{ .Values.nsPrefix }}-aai
73data:
74{{ (.Files.Glob "resources/model-loader/conf/logback.xml").AsConfig | indent 2 }}
75