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