1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 apiVersion: extensions/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
34 app: {{ include "common.name" . }}
35 release: {{ .Release.Name }}
36 name: {{ include "common.name" . }}
43 mkdir -p /logroot/data-router/logs
44 chmod -R 777 /logroot/data-router/logs
45 chown -R root:root /logroot
51 fieldPath: metadata.namespace
54 image: {{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }}
55 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
58 - name: {{ include "common.fullname" . }}-logs
61 - name: {{ include "common.name" . }}
62 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 value: /opt/app/data-router/dynamic/conf
68 value: /opt/app/data-router/config/
69 - name: KEY_STORE_PASSWORD
70 value: {{ .Values.config.keyStorePassword }}
71 - name: DYNAMIC_ROUTES
72 value: /opt/app/data-router/dynamic/routes
73 - name: KEY_MANAGER_PASSWORD
74 value: {{ .Values.config.keyManagerPassword }}
76 value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
78 value: usr/lib/jvm/java-8-openjdk-amd64
80 - mountPath: /etc/localtime
83 - mountPath: /opt/app/data-router/config/auth
84 name: {{ include "common.fullname" . }}-auth
85 - mountPath: /opt/app/data-router/config/data-router.properties
86 subPath: data-router.properties
87 name: {{ include "common.fullname" . }}-properties
88 - mountPath: /opt/app/data-router/config/schemaIngest.properties
89 subPath: schemaIngest.properties
90 name: {{ include "common.fullname" . }}-properties
91 - mountPath: /opt/app/data-router/dynamic/routes/entity-event.route
92 subPath: entity-event.route
93 name: {{ include "common.fullname" . }}-dynamic-route
94 - mountPath: /opt/app/data-router/dynamic/conf/entity-event-policy.xml
95 subPath: entity-event-policy.xml
96 name: {{ include "common.fullname" . }}-dynamic-policy
97 - mountPath: /opt/app/data-router/dynamic/conf/data-router-oxm.xml
98 subPath: data-router-oxm.xml
99 name: {{ include "common.fullname" . }}-dynamic-oxm
100 - mountPath: /opt/app/data-router/bundleconfig/etc/logback.xml
101 name: {{ include "common.fullname" . }}-logback-config
103 - mountPath: /var/log/onap
104 name: {{ include "common.fullname" . }}-logs
106 name: {{ include "common.fullname" . }}-logs
109 - containerPort: {{ .Values.service.internalPort }}
110 {{- if eq .Values.liveness.enabled true }}
113 port: {{ .Values.service.internalPort }}
114 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
115 periodSeconds: {{ .Values.liveness.periodSeconds }}
119 port: {{ .Values.service.internalPort }}
120 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
121 periodSeconds: {{ .Values.readiness.periodSeconds }}
123 {{ include "common.resources" . | indent 12 }}
125 # side car containers
126 - name: filebeat-onap
127 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
128 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
130 - mountPath: /usr/share/filebeat/filebeat.yml
131 subPath: filebeat.yml
133 - mountPath: /var/log/onap
134 name: {{ include "common.fullname" . }}-logs
136 name: {{ include "common.fullname" . }}-logs
137 - mountPath: /usr/share/filebeat/data
143 - name: filebeat-conf
148 - name: {{ include "common.fullname" . }}-auth
150 secretName: {{ include "common.fullname" . }}
151 - name: {{ include "common.fullname" . }}-properties
153 name: {{ include "common.fullname" . }}-prop
155 - key: data-router.properties
156 path: data-router.properties
157 - key: schemaIngest.properties
158 path: schemaIngest.properties
159 - name: {{ include "common.fullname" . }}-dynamic-route
161 name: {{ include "common.fullname" . }}-dynamic
162 - name: {{ include "common.fullname" . }}-dynamic-policy
164 name: {{ include "common.fullname" . }}-dynamic
165 - name: {{ include "common.fullname" . }}-dynamic-oxm
167 name: {{ include "common.fullname" . }}-dynamic
168 - name: {{ include "common.fullname" . }}-logs
170 - name: {{ include "common.fullname" . }}-logback-config
172 name: {{ include "common.fullname" . }}-log-configmap
176 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
178 - name: "{{ include "common.namespace" . }}-docker-registry-key"