blob: 85102a0b7d1bb9189440f66c9e23bc364830bc89 [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:
17 - env:
Mandeep Khinda4b881972017-08-30 14:24:02 +000018 - name: CONFIG_HOME
19 value: /opt/app/model-loader/config/
20 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030021 - mountPath: /etc/localtime
22 name: localtime
23 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000024 - mountPath: /opt/app/model-loader/config/
25 name: aai-model-loader-config
26 - mountPath: /logs/
27 name: aai-model-loader-logs
28 image: "{{ .Values.image.modelLoaderImage }}:{{ .Values.image.modelLoaderVersion }}"
kerenjfdc17622017-08-24 11:32:22 +000029 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040030 name: model-loader-service
31 ports:
32 - containerPort: 8080
33 - containerPort: 8443
Mandeep Khinda4b881972017-08-30 14:24:02 +000034 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030035 - name: localtime
36 hostPath:
37 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000038 - name: aai-model-loader-config
39 hostPath:
40 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/appconfig/"
41 - name: aai-model-loader-logs
42 hostPath:
43 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/logs/"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040044 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030045 imagePullSecrets:
Itay Hassid4ca69ea2017-08-31 14:40:18 +000046 - name: "{{ .Values.nsPrefix }}-docker-registry-key"