yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAaiDataRouter }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 5 | name: aai-data-router |
| 6 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | a97d3fd | 2018-02-14 05:32:10 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.dataRouterReplicas }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 11 | app: aai-data-router |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 12 | template: |
| 13 | metadata: |
| 14 | labels: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 15 | app: aai-data-router |
| 16 | name: aai-data-router |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 17 | spec: |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 18 | initContainers: |
| 19 | - command: |
| 20 | - /bin/sh |
| 21 | - -c |
| 22 | - | |
| 23 | mkdir -p /logroot/data-router/logs |
| 24 | chmod -R 777 /logroot/data-router/logs |
| 25 | chown -R root:root /logroot |
| 26 | env: |
| 27 | - name: NAMESPACE |
| 28 | valueFrom: |
| 29 | fieldRef: |
| 30 | apiVersion: v1 |
| 31 | fieldPath: metadata.namespace |
| 32 | securityContext: |
| 33 | privileged: true |
| 34 | image: {{ .Values.image.es_bb }} |
| 35 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 36 | name: init-sysctl |
| 37 | volumeMounts: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 38 | - name: aai-data-router-logs |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 39 | mountPath: /logroot/ |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 40 | containers: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 41 | - name: aai-data-router |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 42 | image: "{{ .Values.image.dataRouterImage }}:{{ .Values.image.dataRouterVersion }}" |
| 43 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 44 | env: |
| 45 | - name: SERVICE_BEANS |
| 46 | value: /opt/app/data-router/dynamic/conf |
| 47 | - name: CONFIG_HOME |
| 48 | value: /opt/app/data-router/config/ |
| 49 | - name: KEY_STORE_PASSWORD |
| 50 | value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 |
| 51 | - name: DYNAMIC_ROUTES |
| 52 | value: /opt/app/data-router/dynamic/routes |
| 53 | - name: KEY_MANAGER_PASSWORD |
| 54 | value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 |
| 55 | - name: PATH |
| 56 | value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| 57 | - name: JAVA_HOME |
| 58 | value: usr/lib/jvm/java-8-openjdk-amd64 |
| 59 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 60 | - mountPath: /etc/localtime |
| 61 | name: localtime |
| 62 | readOnly: true |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 63 | - mountPath: /opt/app/data-router/config/model/aai_oxm_v8.xml |
| 64 | subPath: aai_oxm_v8.xml |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 65 | name: aai-data-router-model-v8 |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 66 | - mountPath: /opt/app/data-router/config/model/aai_oxm_v9.xml |
| 67 | subPath: aai_oxm_v9.xml |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 68 | name: aai-data-router-model-v9 |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 69 | - mountPath: /opt/app/data-router/config/model/aai_oxm_v10.xml |
| 70 | subPath: aai_oxm_v10.xml |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 71 | name: aai-data-router-model-v10 |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 72 | - mountPath: /opt/app/data-router/config/model/aai_oxm_v11.xml |
| 73 | subPath: aai_oxm_v11.xml |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 74 | name: aai-data-router-model-v11 |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 75 | - mountPath: /opt/app/data-router/config/auth |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 76 | name: aai-data-router-auth |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 77 | - mountPath: /opt/app/data-router/config/data-router.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 78 | name: aai-data-router-properties |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 79 | subPath: data-router.properties |
| 80 | - mountPath: /opt/app/data-router/dynamic/routes/entity-event.route |
| 81 | subPath: entity-event.route |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 82 | name: aai-data-router-dynamic-route |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 83 | - mountPath: /opt/app/data-router/dynamic/conf/entity-event-policy.xml |
| 84 | subPath: entity-event-policy.xml |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 85 | name: aai-data-router-dynamic-policy |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 86 | - mountPath: /logs/ |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 87 | name: aai-data-router-logs |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 88 | ports: |
| 89 | - containerPort: 9502 |
| 90 | readinessProbe: |
| 91 | tcpSocket: |
| 92 | port: 9502 |
| 93 | initialDelaySeconds: 5 |
| 94 | periodSeconds: 10 |
| 95 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 96 | - name: localtime |
| 97 | hostPath: |
| 98 | path: /etc/localtime |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 99 | - name: aai-data-router-model-v8 |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 100 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 101 | name: aai-data-router-model-v8-configmap |
| 102 | - name: aai-data-router-model-v9 |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 103 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 104 | name: aai-data-router-model-v9-configmap |
| 105 | - name: aai-data-router-model-v10 |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 106 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 107 | name: aai-data-router-model-v10-configmap |
| 108 | - name: aai-data-router-model-v11 |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 109 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 110 | name: aai-data-router-model-v11-configmap |
| 111 | - name: aai-data-router-auth |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 112 | secret: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 113 | secretName: aai-data-router-secret |
| 114 | - name: aai-data-router-properties |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 115 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 116 | name: aai-data-router-prop-configmap |
| 117 | - name: aai-data-router-dynamic-route |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 118 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 119 | name: aai-data-router-dynamic-configmap |
| 120 | - name: aai-data-router-dynamic-policy |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 121 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 122 | name: aai-data-router-dynamic-configmap |
| 123 | - name: aai-data-router-logs |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 124 | hostPath: |
kerenj | b19df80 | 2018-02-25 11:19:53 +0000 | [diff] [blame] | 125 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/logs" |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 126 | restartPolicy: Always |
| 127 | imagePullSecrets: |
| 128 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
mayankg2703 | 955077e | 2018-02-05 11:00:25 +0000 | [diff] [blame] | 129 | #{{ end }} |