blob: c5a788c28747b5341fe326d8f47265849614ff53 [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:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +00008 replicas: {{ .Values.modelLoaderReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: model-loader-service
12 template:
13 metadata:
14 labels:
15 app: model-loader-service
16 name: model-loader-service
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
18 containers:
BorislavGb2b99182017-10-03 15:40:55 +030019 - name: model-loader-service
20 image: "{{ .Values.image.modelLoaderImage }}:{{ .Values.image.modelLoaderVersion }}"
21 imagePullPolicy: {{ .Values.pullPolicy }}
22 env:
Mandeep Khinda4b881972017-08-30 14:24:02 +000023 - name: CONFIG_HOME
24 value: /opt/app/model-loader/config/
25 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030026 - mountPath: /etc/localtime
27 name: localtime
28 readOnly: true
mayankg2703135d8912018-02-06 10:28:00 +000029 - mountPath: /opt/app/model-loader/config/model-loader.properties
30 subPath: model-loader.properties
31 name: aai-model-loader-prop-config
32 - mountPath: /opt/app/model-loader/config/auth/
33 name: aai-model-loader-auth-config
BorislavGb2b99182017-10-03 15:40:55 +030034 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000035 name: aai-model-loader-logs
BorislavGb2b99182017-10-03 15:40:55 +030036 - mountPath: /opt/app/model-loader/bundleconfig/etc/logback.xml
37 name: aai-model-loader-log-conf
38 subPath: logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 ports:
40 - containerPort: 8080
41 - containerPort: 8443
BorislavGb2b99182017-10-03 15:40:55 +030042 - name: filebeat-onap-aai-model-loader
43 image: {{ .Values.image.filebeat }}
44 imagePullPolicy: {{ .Values.pullPolicy }}
45 volumeMounts:
46 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg2703135d8912018-02-06 10:28:00 +000047 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030048 name: filebeat-conf
49 - mountPath: /var/log/onap
50 name: aai-model-loader-logs
51 - mountPath: /usr/share/filebeat/data
52 name: aai-model-loader-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000053 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030054 - name: localtime
55 hostPath:
56 path: /etc/localtime
mayankg2703135d8912018-02-06 10:28:00 +000057 - name: aai-model-loader-prop-config
58 configMap:
59 name: model-loader-prop-configmap
60 - name: aai-model-loader-auth-config
61 secret:
62 secretName: model-loader-secret
BorislavGb2b99182017-10-03 15:40:55 +030063 - name: filebeat-conf
mayankg2703135d8912018-02-06 10:28:00 +000064 configMap:
65 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +030066 - name: aai-model-loader-logs
67 emptyDir: {}
68 - name: aai-model-loader-filebeat
69 emptyDir: {}
70 - name: aai-model-loader-log-conf
71 configMap:
mayankg270333e3cc02018-02-07 05:56:34 +000072 name: aai-model-loader-log-configmap
Mandeep Khindad6ea9872017-06-24 11:49:37 -040073 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030074 imagePullSecrets:
Alexis de Talhouƫt91c77102017-09-26 10:29:32 -040075 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg2703135d8912018-02-06 10:28:00 +000076#{{ end }}