blob: 37b9fb411cfba952312a5dfdcdb42d7e3b8a1268 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableAaiDataRouter }}
Mandeep Khinda4b881972017-08-30 14:24:02 +000016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: aai-data-router
20 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khinda4b881972017-08-30 14:24:02 +000021spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +000022 replicas: {{ .Values.dataRouterReplicas }}
Mandeep Khinda4b881972017-08-30 14:24:02 +000023 selector:
24 matchLabels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000025 app: aai-data-router
Mandeep Khinda4b881972017-08-30 14:24:02 +000026 template:
27 metadata:
28 labels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000029 app: aai-data-router
30 name: aai-data-router
Mandeep Khinda4b881972017-08-30 14:24:02 +000031 spec:
mayankg2703955077e2018-02-05 11:00:25 +000032 initContainers:
33 - command:
34 - /bin/sh
35 - -c
36 - |
37 mkdir -p /logroot/data-router/logs
38 chmod -R 777 /logroot/data-router/logs
39 chown -R root:root /logroot
40 env:
41 - name: NAMESPACE
42 valueFrom:
43 fieldRef:
44 apiVersion: v1
45 fieldPath: metadata.namespace
46 securityContext:
47 privileged: true
48 image: {{ .Values.image.es_bb }}
49 imagePullPolicy: {{ .Values.pullPolicy }}
50 name: init-sysctl
51 volumeMounts:
BorislavG8bfc6cf2018-02-27 15:04:26 +000052 - name: aai-data-router-logs
mayankg2703955077e2018-02-05 11:00:25 +000053 mountPath: /logroot/
Mandeep Khinda4b881972017-08-30 14:24:02 +000054 containers:
BorislavG8bfc6cf2018-02-27 15:04:26 +000055 - name: aai-data-router
Mandeep Khinda4b881972017-08-30 14:24:02 +000056 image: "{{ .Values.image.dataRouterImage }}:{{ .Values.image.dataRouterVersion }}"
57 imagePullPolicy: {{ .Values.pullPolicy }}
58 env:
59 - name: SERVICE_BEANS
60 value: /opt/app/data-router/dynamic/conf
61 - name: CONFIG_HOME
62 value: /opt/app/data-router/config/
63 - name: KEY_STORE_PASSWORD
64 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
65 - name: DYNAMIC_ROUTES
66 value: /opt/app/data-router/dynamic/routes
67 - name: KEY_MANAGER_PASSWORD
68 value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
69 - name: PATH
70 value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
71 - name: JAVA_HOME
72 value: usr/lib/jvm/java-8-openjdk-amd64
73 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030074 - mountPath: /etc/localtime
75 name: localtime
76 readOnly: true
mayankg2703955077e2018-02-05 11:00:25 +000077 - mountPath: /opt/app/data-router/config/model/aai_oxm_v8.xml
78 subPath: aai_oxm_v8.xml
BorislavG8bfc6cf2018-02-27 15:04:26 +000079 name: aai-data-router-model-v8
mayankg2703955077e2018-02-05 11:00:25 +000080 - mountPath: /opt/app/data-router/config/model/aai_oxm_v9.xml
81 subPath: aai_oxm_v9.xml
BorislavG8bfc6cf2018-02-27 15:04:26 +000082 name: aai-data-router-model-v9
mayankg2703955077e2018-02-05 11:00:25 +000083 - mountPath: /opt/app/data-router/config/model/aai_oxm_v10.xml
84 subPath: aai_oxm_v10.xml
BorislavG8bfc6cf2018-02-27 15:04:26 +000085 name: aai-data-router-model-v10
mayankg2703955077e2018-02-05 11:00:25 +000086 - mountPath: /opt/app/data-router/config/model/aai_oxm_v11.xml
87 subPath: aai_oxm_v11.xml
BorislavG8bfc6cf2018-02-27 15:04:26 +000088 name: aai-data-router-model-v11
mayankg2703955077e2018-02-05 11:00:25 +000089 - mountPath: /opt/app/data-router/config/auth
BorislavG8bfc6cf2018-02-27 15:04:26 +000090 name: aai-data-router-auth
mayankg2703955077e2018-02-05 11:00:25 +000091 - mountPath: /opt/app/data-router/config/data-router.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +000092 name: aai-data-router-properties
mayankg2703955077e2018-02-05 11:00:25 +000093 subPath: data-router.properties
94 - mountPath: /opt/app/data-router/dynamic/routes/entity-event.route
95 subPath: entity-event.route
BorislavG8bfc6cf2018-02-27 15:04:26 +000096 name: aai-data-router-dynamic-route
mayankg2703955077e2018-02-05 11:00:25 +000097 - mountPath: /opt/app/data-router/dynamic/conf/entity-event-policy.xml
98 subPath: entity-event-policy.xml
BorislavG8bfc6cf2018-02-27 15:04:26 +000099 name: aai-data-router-dynamic-policy
Mandeep Khinda4b881972017-08-30 14:24:02 +0000100 - mountPath: /logs/
BorislavG8bfc6cf2018-02-27 15:04:26 +0000101 name: aai-data-router-logs
Mandeep Khinda4b881972017-08-30 14:24:02 +0000102 ports:
103 - containerPort: 9502
104 readinessProbe:
105 tcpSocket:
106 port: 9502
107 initialDelaySeconds: 5
108 periodSeconds: 10
109 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300110 - name: localtime
111 hostPath:
112 path: /etc/localtime
BorislavG8bfc6cf2018-02-27 15:04:26 +0000113 - name: aai-data-router-model-v8
mayankg2703955077e2018-02-05 11:00:25 +0000114 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000115 name: aai-data-router-model-v8-configmap
116 - name: aai-data-router-model-v9
mayankg2703955077e2018-02-05 11:00:25 +0000117 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000118 name: aai-data-router-model-v9-configmap
119 - name: aai-data-router-model-v10
mayankg2703955077e2018-02-05 11:00:25 +0000120 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000121 name: aai-data-router-model-v10-configmap
122 - name: aai-data-router-model-v11
mayankg2703955077e2018-02-05 11:00:25 +0000123 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000124 name: aai-data-router-model-v11-configmap
125 - name: aai-data-router-auth
mayankg2703955077e2018-02-05 11:00:25 +0000126 secret:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000127 secretName: aai-data-router-secret
128 - name: aai-data-router-properties
mayankg2703955077e2018-02-05 11:00:25 +0000129 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000130 name: aai-data-router-prop-configmap
131 - name: aai-data-router-dynamic-route
mayankg2703955077e2018-02-05 11:00:25 +0000132 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000133 name: aai-data-router-dynamic-configmap
134 - name: aai-data-router-dynamic-policy
mayankg2703955077e2018-02-05 11:00:25 +0000135 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000136 name: aai-data-router-dynamic-configmap
137 - name: aai-data-router-logs
Mandeep Khinda4b881972017-08-30 14:24:02 +0000138 hostPath:
kerenjb19df802018-02-25 11:19:53 +0000139 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/logs"
Mandeep Khinda4b881972017-08-30 14:24:02 +0000140 restartPolicy: Always
141 imagePullSecrets:
142 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg2703955077e2018-02-05 11:00:25 +0000143#{{ end }}