blob: 5a7f9e927fc2f22c28ab5020129c82059c0faf96 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiDataRouter }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: data-router
6 namespace: "{{ .Values.nsPrefix }}-aai"
7spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +00008 replicas: {{ .Values.dataRouterReplicas }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00009 selector:
10 matchLabels:
11 app: data-router
12 template:
13 metadata:
14 labels:
15 app: data-router
16 name: data-router
17 spec:
mayankg2703955077e2018-02-05 11:00:25 +000018 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:
38 - name: data-router-logs
39 mountPath: /logroot/
Mandeep Khinda4b881972017-08-30 14:24:02 +000040 containers:
41 - name: data-router
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:
yuryn8b3bc5a2017-09-13 19:21:03 +030060 - mountPath: /etc/localtime
61 name: localtime
62 readOnly: true
mayankg2703955077e2018-02-05 11:00:25 +000063 - mountPath: /opt/app/data-router/config/model/aai_oxm_v8.xml
64 subPath: aai_oxm_v8.xml
65 name: data-router-model-v8
66 - mountPath: /opt/app/data-router/config/model/aai_oxm_v9.xml
67 subPath: aai_oxm_v9.xml
68 name: data-router-model-v9
69 - mountPath: /opt/app/data-router/config/model/aai_oxm_v10.xml
70 subPath: aai_oxm_v10.xml
71 name: data-router-model-v10
72 - mountPath: /opt/app/data-router/config/model/aai_oxm_v11.xml
73 subPath: aai_oxm_v11.xml
74 name: data-router-model-v11
75 - mountPath: /opt/app/data-router/config/auth
76 name: data-router-auth
77 - mountPath: /opt/app/data-router/config/data-router.properties
78 name: data-router-properties
79 subPath: data-router.properties
80 - mountPath: /opt/app/data-router/dynamic/routes/entity-event.route
81 subPath: entity-event.route
82 name: data-router-dynamic-route
83 - mountPath: /opt/app/data-router/dynamic/conf/entity-event-policy.xml
84 subPath: entity-event-policy.xml
85 name: data-router-dynamic-policy
Mandeep Khinda4b881972017-08-30 14:24:02 +000086 - mountPath: /logs/
87 name: data-router-logs
88 ports:
89 - containerPort: 9502
90 readinessProbe:
91 tcpSocket:
92 port: 9502
93 initialDelaySeconds: 5
94 periodSeconds: 10
95 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030096 - name: localtime
97 hostPath:
98 path: /etc/localtime
mayankg2703955077e2018-02-05 11:00:25 +000099 - name: data-router-model-v8
100 configMap:
101 name: data-router-model-v8-configmap
102 - name: data-router-model-v9
103 configMap:
104 name: data-router-model-v9-configmap
105 - name: data-router-model-v10
106 configMap:
107 name: data-router-model-v10-configmap
108 - name: data-router-model-v11
109 configMap:
110 name: data-router-model-v11-configmap
111 - name: data-router-auth
112 secret:
113 secretName: data-router-secret
114 - name: data-router-properties
115 configMap:
116 name: data-router-prop-configmap
117 - name: data-router-dynamic-route
118 configMap:
119 name: data-router-dynamic-configmap
120 - name: data-router-dynamic-policy
121 configMap:
122 name: data-router-dynamic-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +0000123 - name: data-router-logs
124 hostPath:
mayankg2703955077e2018-02-05 11:00:25 +0000125 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/"
Mandeep Khinda4b881972017-08-30 14:24:02 +0000126 restartPolicy: Always
127 imagePullSecrets:
128 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg2703955077e2018-02-05 11:00:25 +0000129#{{ end }}