Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: data-router |
| 5 | namespace: "{{ .Values.nsPrefix }}-aai" |
| 6 | spec: |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: data-router |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: data-router |
| 14 | name: data-router |
| 15 | spec: |
| 16 | containers: |
| 17 | - name: data-router |
| 18 | image: "{{ .Values.image.dataRouterImage }}:{{ .Values.image.dataRouterVersion }}" |
| 19 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 20 | env: |
| 21 | - name: SERVICE_BEANS |
| 22 | value: /opt/app/data-router/dynamic/conf |
| 23 | - name: CONFIG_HOME |
| 24 | value: /opt/app/data-router/config/ |
| 25 | - name: KEY_STORE_PASSWORD |
| 26 | value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 |
| 27 | - name: DYNAMIC_ROUTES |
| 28 | value: /opt/app/data-router/dynamic/routes |
| 29 | - name: KEY_MANAGER_PASSWORD |
| 30 | value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 |
| 31 | - name: PATH |
| 32 | value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| 33 | - name: JAVA_HOME |
| 34 | value: usr/lib/jvm/java-8-openjdk-amd64 |
| 35 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 36 | - mountPath: /etc/localtime |
| 37 | name: localtime |
| 38 | readOnly: true |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 39 | - mountPath: /opt/app/data-router/config/ |
| 40 | name: data-router-config |
| 41 | - mountPath: /opt/app/data-router/dynamic/ |
| 42 | name: data-router-dynamic |
| 43 | - mountPath: /logs/ |
| 44 | name: data-router-logs |
| 45 | ports: |
| 46 | - containerPort: 9502 |
| 47 | readinessProbe: |
| 48 | tcpSocket: |
| 49 | port: 9502 |
| 50 | initialDelaySeconds: 5 |
| 51 | periodSeconds: 10 |
| 52 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 53 | - name: localtime |
| 54 | hostPath: |
| 55 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 56 | - name: data-router-config |
| 57 | hostPath: |
| 58 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/appconfig/" |
| 59 | - name: data-router-dynamic |
| 60 | hostPath: |
| 61 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/dynamic/" |
| 62 | - name: data-router-logs |
| 63 | hostPath: |
| 64 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/logs/" |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 65 | restartPolicy: Always |
| 66 | imagePullSecrets: |
| 67 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |