blob: 2508446334b8b1b123fbd13e84da6178832a5e46 [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
mayankg2703135d8912018-02-06 10:28:00 +000028 - mountPath: /opt/app/model-loader/config/model-loader.properties
29 subPath: model-loader.properties
30 name: aai-model-loader-prop-config
31 - mountPath: /opt/app/model-loader/config/auth/
32 name: aai-model-loader-auth-config
BorislavGb2b99182017-10-03 15:40:55 +030033 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000034 name: aai-model-loader-logs
BorislavGb2b99182017-10-03 15:40:55 +030035 - mountPath: /opt/app/model-loader/bundleconfig/etc/logback.xml
36 name: aai-model-loader-log-conf
37 subPath: logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 ports:
39 - containerPort: 8080
40 - containerPort: 8443
BorislavGb2b99182017-10-03 15:40:55 +030041 - name: filebeat-onap-aai-model-loader
42 image: {{ .Values.image.filebeat }}
43 imagePullPolicy: {{ .Values.pullPolicy }}
44 volumeMounts:
45 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg2703135d8912018-02-06 10:28:00 +000046 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030047 name: filebeat-conf
48 - mountPath: /var/log/onap
49 name: aai-model-loader-logs
50 - mountPath: /usr/share/filebeat/data
51 name: aai-model-loader-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000052 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030053 - name: localtime
54 hostPath:
55 path: /etc/localtime
mayankg2703135d8912018-02-06 10:28:00 +000056 - name: aai-model-loader-prop-config
57 configMap:
58 name: model-loader-prop-configmap
59 - name: aai-model-loader-auth-config
60 secret:
61 secretName: model-loader-secret
BorislavGb2b99182017-10-03 15:40:55 +030062 - name: filebeat-conf
mayankg2703135d8912018-02-06 10:28:00 +000063 configMap:
64 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +030065 - name: aai-model-loader-logs
66 emptyDir: {}
67 - name: aai-model-loader-filebeat
68 emptyDir: {}
69 - name: aai-model-loader-log-conf
70 configMap:
mayankg270333e3cc02018-02-07 05:56:34 +000071 name: aai-model-loader-log-configmap
Mandeep Khindad6ea9872017-06-24 11:49:37 -040072 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030073 imagePullSecrets:
Alexis de Talhouƫt91c77102017-09-26 10:29:32 -040074 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg2703135d8912018-02-06 10:28:00 +000075#{{ end }}