Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: model-loader-service |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-aai" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 15 | spec: |
| 16 | containers: |
| 17 | - env: |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 18 | - name: CONFIG_HOME |
| 19 | value: /opt/app/model-loader/config/ |
| 20 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame^] | 21 | - mountPath: /etc/localtime |
| 22 | name: localtime |
| 23 | readOnly: true |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 24 | - 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 }}" |
kerenj | fdc1762 | 2017-08-24 11:32:22 +0000 | [diff] [blame] | 29 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 30 | name: model-loader-service |
| 31 | ports: |
| 32 | - containerPort: 8080 |
| 33 | - containerPort: 8443 |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 34 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame^] | 35 | - name: localtime |
| 36 | hostPath: |
| 37 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 38 | - 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 44 | restartPolicy: Always |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 45 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 46 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |