blob: 7c2fddb7cf4046cd83fc29c997921a5e17447dc5 [file] [log] [blame]
yuryn5d0587b2017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiModelLoaderService }}
Mandeep Khinda71439a72017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: model-loader-service
Mandeep Khindaa71542f2017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-aai"
Mandeep Khinda71439a72017-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 Khinda71439a72017-06-24 11:49:37 -040016 spec:
17 containers:
BorislavGc4bafe12017-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 Khindafc068432017-08-30 14:24:02 +000022 - name: CONFIG_HOME
23 value: /opt/app/model-loader/config/
24 volumeMounts:
yurync400bf52017-09-13 19:21:03 +030025 - mountPath: /etc/localtime
26 name: localtime
27 readOnly: true
Mandeep Khindafc068432017-08-30 14:24:02 +000028 - mountPath: /opt/app/model-loader/config/
29 name: aai-model-loader-config
BorislavGc4bafe12017-10-03 15:40:55 +030030 - mountPath: /var/log/onap
Mandeep Khindafc068432017-08-30 14:24:02 +000031 name: aai-model-loader-logs
BorislavGc4bafe12017-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 Khinda71439a72017-06-24 11:49:37 -040035 ports:
36 - containerPort: 8080
37 - containerPort: 8443
BorislavGc4bafe12017-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 Khindafc068432017-08-30 14:24:02 +000048 volumes:
yurync400bf52017-09-13 19:21:03 +030049 - name: localtime
50 hostPath:
51 path: /etc/localtime
Mandeep Khindafc068432017-08-30 14:24:02 +000052 - name: aai-model-loader-config
53 hostPath:
54 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/appconfig/"
BorislavGc4bafe12017-10-03 15:40:55 +030055 - name: filebeat-conf
Mandeep Khindafc068432017-08-30 14:24:02 +000056 hostPath:
shanedaniel89f67c12017-10-19 19:10:33 +000057 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
BorislavGc4bafe12017-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 Khinda71439a72017-06-24 11:49:37 -040065 restartPolicy: Always
Borislav Glozmanfe6dd562017-07-24 10:45:28 +030066 imagePullSecrets:
Alexis de Talhouƫt42bd6cf2017-09-26 10:29:32 -040067 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGc4bafe12017-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 }}
yuryn5d0587b2017-10-26 17:10:50 +030076#{{ end }}