blob: 33458c772a719e996befb53deda2bb09517f0146 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableAaiModelLoaderService }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: aai-model-loader-service
20 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +000022 replicas: {{ .Values.modelLoaderReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 selector:
24 matchLabels:
25 app: model-loader-service
26 template:
27 metadata:
28 labels:
29 app: model-loader-service
BorislavG8bfc6cf2018-02-27 15:04:26 +000030 name: aai-model-loader-service
Mandeep Khindad6ea9872017-06-24 11:49:37 -040031 spec:
32 containers:
BorislavGb2b99182017-10-03 15:40:55 +030033 - name: model-loader-service
34 image: "{{ .Values.image.modelLoaderImage }}:{{ .Values.image.modelLoaderVersion }}"
35 imagePullPolicy: {{ .Values.pullPolicy }}
36 env:
Mandeep Khinda4b881972017-08-30 14:24:02 +000037 - name: CONFIG_HOME
38 value: /opt/app/model-loader/config/
39 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030040 - mountPath: /etc/localtime
41 name: localtime
42 readOnly: true
mayankg2703135d8912018-02-06 10:28:00 +000043 - mountPath: /opt/app/model-loader/config/model-loader.properties
44 subPath: model-loader.properties
45 name: aai-model-loader-prop-config
46 - mountPath: /opt/app/model-loader/config/auth/
47 name: aai-model-loader-auth-config
BorislavGb2b99182017-10-03 15:40:55 +030048 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000049 name: aai-model-loader-logs
BorislavGb2b99182017-10-03 15:40:55 +030050 - mountPath: /opt/app/model-loader/bundleconfig/etc/logback.xml
51 name: aai-model-loader-log-conf
52 subPath: logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -040053 ports:
54 - containerPort: 8080
55 - containerPort: 8443
BorislavGb2b99182017-10-03 15:40:55 +030056 - name: filebeat-onap-aai-model-loader
57 image: {{ .Values.image.filebeat }}
58 imagePullPolicy: {{ .Values.pullPolicy }}
59 volumeMounts:
60 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg2703135d8912018-02-06 10:28:00 +000061 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030062 name: filebeat-conf
63 - mountPath: /var/log/onap
64 name: aai-model-loader-logs
65 - mountPath: /usr/share/filebeat/data
66 name: aai-model-loader-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000067 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030068 - name: localtime
69 hostPath:
70 path: /etc/localtime
mayankg2703135d8912018-02-06 10:28:00 +000071 - name: aai-model-loader-prop-config
72 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +000073 name: aai-model-loader-prop-configmap
mayankg2703135d8912018-02-06 10:28:00 +000074 - name: aai-model-loader-auth-config
75 secret:
BorislavG8bfc6cf2018-02-27 15:04:26 +000076 secretName: aai-model-loader-secret
BorislavGb2b99182017-10-03 15:40:55 +030077 - name: filebeat-conf
mayankg2703135d8912018-02-06 10:28:00 +000078 configMap:
79 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +030080 - name: aai-model-loader-logs
81 emptyDir: {}
82 - name: aai-model-loader-filebeat
83 emptyDir: {}
84 - name: aai-model-loader-log-conf
85 configMap:
mayankg270333e3cc02018-02-07 05:56:34 +000086 name: aai-model-loader-log-configmap
Mandeep Khindad6ea9872017-06-24 11:49:37 -040087 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030088 imagePullSecrets:
Alexis de Talhouët91c77102017-09-26 10:29:32 -040089 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg2703135d8912018-02-06 10:28:00 +000090#{{ end }}