1 # Copyright © 2018 Amdocs
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" . }}
48 fieldPath: metadata.namespace
49 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 name: {{ include "common.name" . }}-readiness
56 mkdir -p /logroot/data-router/logs
57 chmod -R 777 /logroot/data-router/logs
58 chown -R root:root /logroot
64 fieldPath: metadata.namespace
67 image: {{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }}
68 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
71 - name: {{ include "common.fullname" . }}-logs
74 - name: {{ include "common.name" . }}
75 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
76 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
79 value: /opt/app/data-router/dynamic/conf
81 value: /opt/app/data-router/config/
82 - name: KEY_STORE_PASSWORD
83 value: {{ .Values.config.keyStorePassword }}
84 - name: DYNAMIC_ROUTES
85 value: /opt/app/data-router/dynamic/routes
86 - name: KEY_MANAGER_PASSWORD
87 value: {{ .Values.config.keyManagerPassword }}
89 - mountPath: /etc/localtime
92 - mountPath: /opt/app/data-router/config/auth
93 name: {{ include "common.fullname" . }}-auth
94 - mountPath: /opt/app/data-router/config/data-router.properties
95 subPath: data-router.properties
96 name: {{ include "common.fullname" . }}-properties
97 - mountPath: /opt/app/data-router/config/schemaIngest.properties
98 subPath: schemaIngest.properties
99 name: {{ include "common.fullname" . }}-properties
100 - mountPath: /opt/app/data-router/dynamic/routes/audit.route
102 name: {{ include "common.fullname" . }}-dynamic-route
103 - mountPath: /opt/app/data-router/dynamic/routes/poaValidation.route
104 subPath: poaValidation.route
105 name: {{ include "common.fullname" . }}-dynamic-route
106 - mountPath: /opt/app/data-router/dynamic/conf/audit-bean.xml
107 subPath: audit-bean.xml
108 name: {{ include "common.fullname" . }}-dynamic-policy
109 - mountPath: /opt/app/data-router/dynamic/conf/poa-validation-bean.xml
110 subPath: poa-validation-bean.xml
111 name: {{ include "common.fullname" . }}-dynamic-policy
113 name: {{ include "common.fullname" . }}-logs
115 - containerPort: {{ .Values.service.internalPort }}
116 {{- if eq .Values.liveness.enabled true }}
119 port: {{ .Values.service.internalPort }}
120 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
121 periodSeconds: {{ .Values.liveness.periodSeconds }}
125 port: {{ .Values.service.internalPort }}
126 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
127 periodSeconds: {{ .Values.readiness.periodSeconds }}
132 - name: {{ include "common.fullname" . }}-auth
134 secretName: {{ include "common.fullname" . }}
135 - name: {{ include "common.fullname" . }}-properties
137 name: {{ include "common.fullname" . }}-prop
139 - key: data-router.properties
140 path: data-router.properties
141 - key: schemaIngest.properties
142 path: schemaIngest.properties
143 - name: {{ include "common.fullname" . }}-dynamic-route
145 name: {{ include "common.fullname" . }}-dynamic
146 - name: {{ include "common.fullname" . }}-dynamic-policy
148 name: {{ include "common.fullname" . }}-dynamic
149 - name: {{ include "common.fullname" . }}-logs
150 persistentVolumeClaim:
151 claimName: {{ include "common.fullname" . }}
152 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
154 - name: "{{ include "common.namespace" . }}-docker-registry-key"