1 # Copyright © 2017 Amdocs, Bell Canada
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
29 app: {{ include "common.name" . }}
33 app: {{ include "common.name" . }}
34 release: {{ .Release.Name }}
35 name: {{ include "common.name" . }}
42 mkdir -p /logroot/data-router/logs
43 chmod -R 777 /logroot/data-router/logs
44 chown -R root:root /logroot
50 fieldPath: metadata.namespace
53 image: {{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }}
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 - name: {{ include "common.fullname" . }}-logs
59 - name: {{ include "common.name" . }}-inject-models
64 git clone -b {{ .Values.config.gerritBranch }} --single-branch {{ .Values.config.gerritProject }} /tmp/gerrit
65 cp -rp /tmp/gerrit/data-router/appconfig/model/* /model-dir
66 image: "{{ .Values.global.repository | default .Values.dockerHubRepository }}/{{ .Values.ubuntuInitImage }}"
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
70 mountPath: "/model-dir"
72 - name: {{ include "common.name" . }}
73 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
74 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
77 value: /opt/app/data-router/dynamic/conf
79 value: /opt/app/data-router/config/
80 - name: KEY_STORE_PASSWORD
81 value: {{ .Values.config.keyStorePassword }}
82 - name: DYNAMIC_ROUTES
83 value: /opt/app/data-router/dynamic/routes
84 - name: KEY_MANAGER_PASSWORD
85 value: {{ .Values.config.keyManagerPassword }}
87 value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
89 value: usr/lib/jvm/java-8-openjdk-amd64
91 - mountPath: /etc/localtime
94 - mountPath: /opt/app/data-router/config/auth
95 name: {{ include "common.fullname" . }}-auth
96 - mountPath: /opt/app/data-router/config/data-router.properties
97 name: {{ include "common.fullname" . }}-properties
98 subPath: data-router.properties
99 - mountPath: /opt/app/data-router/dynamic/routes/entity-event.route
100 subPath: entity-event.route
101 name: {{ include "common.fullname" . }}-dynamic-route
102 - mountPath: /opt/app/data-router/dynamic/conf/entity-event-policy.xml
103 subPath: entity-event-policy.xml
104 name: {{ include "common.fullname" . }}-dynamic-policy
106 name: {{ include "common.fullname" . }}-logs
108 mountPath: /opt/app/data-router/config/model
110 - containerPort: {{ .Values.service.internalPort }}
111 {{- if eq .Values.liveness.enabled true }}
114 port: {{ .Values.service.internalPort }}
115 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
116 periodSeconds: {{ .Values.liveness.periodSeconds }}
120 port: {{ .Values.service.internalPort }}
121 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
122 periodSeconds: {{ .Values.readiness.periodSeconds }}
127 - name: {{ include "common.fullname" . }}-auth
129 secretName: {{ include "common.fullname" . }}
130 - name: {{ include "common.fullname" . }}-properties
132 name: {{ include "common.fullname" . }}-prop
133 - name: {{ include "common.fullname" . }}-dynamic-route
135 name: {{ include "common.fullname" . }}-dynamic
136 - name: {{ include "common.fullname" . }}-dynamic-policy
138 name: {{ include "common.fullname" . }}-dynamic
139 - name: {{ include "common.fullname" . }}-logs
141 path: {{ .Values.persistence.mountPath }}/{{ include "common.namespace" . }}/{{ .Values.persistence.mountSubPath }}
144 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
146 - name: "{{ include "common.namespace" . }}-docker-registry-key"