blob: 5391273d9d721f6a038e6beb76505cb59715358a [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:
21 - mountPath: /opt/app/model-loader/config/
22 name: aai-model-loader-config
23 - mountPath: /logs/
24 name: aai-model-loader-logs
25 image: "{{ .Values.image.modelLoaderImage }}:{{ .Values.image.modelLoaderVersion }}"
kerenjfdc17622017-08-24 11:32:22 +000026 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040027 name: model-loader-service
28 ports:
29 - containerPort: 8080
30 - containerPort: 8443
Mandeep Khinda4b881972017-08-30 14:24:02 +000031 volumes:
32 - name: aai-model-loader-config
33 hostPath:
34 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/appconfig/"
35 - name: aai-model-loader-logs
36 hostPath:
37 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/logs/"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030039 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000040 - name: "{{ .Values.nsPrefix }}-docker-registry-key"