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: |
| 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 }}" |
kerenj | fdc1762 | 2017-08-24 11:32:22 +0000 | [diff] [blame] | 26 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 27 | name: model-loader-service |
| 28 | ports: |
| 29 | - containerPort: 8080 |
| 30 | - containerPort: 8443 |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame^] | 31 | 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | restartPolicy: Always |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 39 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 40 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |