1 # Copyright © 2018 Amdocs, AT&T
2 # Modifications Copyright © 2018 Bell Canada
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 }}
31 app: {{ include "common.name" . }}
32 release: {{ .Release.Name }}
34 {{ if .Values.global.installSidecarSecurity }}
36 - ip: {{ .Values.global.aaf.serverIp }}
38 - {{ .Values.global.aaf.serverHostname }}
41 - name: {{ .Values.global.tproxyConfig.name }}
42 image: "{{ include "common.repository" . }}/{{ .Values.global.tproxyConfig.image }}"
43 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 - name: {{ .Chart.Name }}
49 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 - containerPort: {{ .Values.service.internalPort }}
53 # disable liveness probe when breakpoints set in debugger
54 # so K8s doesn't restart unresponsive container
55 {{ if .Values.liveness.enabled }}
58 port: {{ .Values.service.internalPort }}
59 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
60 periodSeconds: {{ .Values.liveness.periodSeconds }}
64 port: {{ .Values.service.internalPort }}
65 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
66 periodSeconds: {{ .Values.readiness.periodSeconds }}
69 value: /opt/app/crud-service/config/
70 - name: KEY_STORE_PASSWORD
73 name: {{ template "common.fullname" . }}-pass
74 key: KEY_STORE_PASSWORD
75 - name: KEY_MANAGER_PASSWORD
78 name: {{ template "common.fullname" . }}-pass
79 key: KEY_MANAGER_PASSWORD
81 value: /opt/app/crud-service/dynamic/conf
83 - mountPath: /etc/localtime
86 - mountPath: /opt/app/crud-service/config/crud-api.properties
87 subPath: crud-api.properties
88 name: {{ include "common.fullname" . }}-config
89 - mountPath: /opt/app/crud-service/config/schema-ingest.properties
90 subPath: schema-ingest.properties
91 name: {{ include "common.fullname" . }}-config
92 - mountPath: /opt/app/crud-service/config/edgeprops-ingest.properties
93 subPath: edgeprops-ingest.properties
94 name: {{ include "common.fullname" . }}-config
95 - mountPath: /opt/app/crud-service/config/model/
96 name: {{ include "common.fullname" . }}-model-config
97 - mountPath: /opt/app/crud-service/config/auth
98 name: {{ include "common.fullname" . }}-auth-secret
99 - mountPath: /opt/app/crud-service/dynamic/conf/crud-beans.xml
100 name: {{ include "common.fullname" . }}-config
101 subPath: crud-beans.xml
102 - mountPath: /var/log/onap
103 name: {{ include "common.fullname" . }}-logs
104 - mountPath: /opt/app/crud-api/bundleconfig/etc/logback.xml
105 name: {{ include "common.fullname" . }}-logback-config
108 {{ include "common.resources" . | indent 12 }}
109 {{- if .Values.nodeSelector }}
111 {{ toYaml .Values.nodeSelector | indent 10 }}
113 {{- if .Values.affinity }}
115 {{ toYaml .Values.affinity | indent 10 }}
118 - name: filebeat-onap
119 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
120 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
122 - mountPath: /usr/share/filebeat/filebeat.yml
124 subPath: filebeat.yml
125 - mountPath: /var/log/onap
126 name: {{ include "common.fullname" . }}-logs
127 - mountPath: /usr/share/filebeat/data
128 name: {{ include "common.fullname" . }}-data-filebeat
130 {{ if .Values.global.installSidecarSecurity }}
131 - name: {{ .Values.global.rproxy.name }}
132 image: "{{ include "common.repository" . }}/{{ .Values.global.rproxy.image }}"
133 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
136 value: "/opt/app/rproxy/config"
137 - name: KEY_STORE_PASSWORD
138 value: {{ .Values.config.keyStorePassword }}
139 - name: spring_profiles_active
140 value: {{ .Values.global.rproxy.activeSpringProfiles }}
142 - name: {{ include "common.fullname" . }}-rproxy-config
143 mountPath: /opt/app/rproxy/config/forward-proxy.properties
144 subPath: forward-proxy.properties
145 - name: {{ include "common.fullname" . }}-rproxy-config
146 mountPath: /opt/app/rproxy/config/primary-service.properties
147 subPath: primary-service.properties
148 - name: {{ include "common.fullname" . }}-rproxy-config
149 mountPath: /opt/app/rproxy/config/reverse-proxy.properties
150 subPath: reverse-proxy.properties
151 - name: {{ include "common.fullname" . }}-rproxy-config
152 mountPath: /opt/app/rproxy/config/cadi.properties
153 subPath: cadi.properties
154 - name: {{ include "common.fullname" . }}-rproxy-log-config
155 mountPath: /opt/app/rproxy/config/logback-spring.xml
156 subPath: logback-spring.xml
157 - name: {{ include "common.fullname" . }}-rproxy-auth-config
158 mountPath: /opt/app/rproxy/config/auth/tomcat_keystore
159 subPath: tomcat_keystore
160 - name: {{ include "common.fullname" . }}-rproxy-auth-config
161 mountPath: /opt/app/rproxy/config/auth/client-cert.p12
162 subPath: client-cert.p12
163 - name: {{ include "common.fullname" . }}-rproxy-auth-config
164 mountPath: /opt/app/rproxy/config/auth/uri-authorization.json
165 subPath: uri-authorization.json
166 - name: {{ include "common.fullname" . }}-rproxy-auth-config
167 mountPath: /opt/app/rproxy/config/auth/aaf_truststore.jks
168 subPath: aaf_truststore.jks
169 - name: {{ include "common.fullname" . }}-rproxy-security-config
170 mountPath: /opt/app/rproxy/config/security/keyfile
174 - containerPort: {{ .Values.global.rproxy.port }}
176 - name: {{ .Values.global.fproxy.name }}
177 image: "{{ include "common.repository" . }}/{{ .Values.global.fproxy.image }}"
178 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
181 value: "/opt/app/fproxy/config"
182 - name: KEY_STORE_PASSWORD
183 value: {{ .Values.config.keyStorePassword }}
184 - name: spring_profiles_active
185 value: {{ .Values.global.fproxy.activeSpringProfiles }}
187 - name: {{ include "common.fullname" . }}-fproxy-config
188 mountPath: /opt/app/fproxy/config/fproxy.properties
189 subPath: fproxy.properties
190 - name: {{ include "common.fullname" . }}-fproxy-log-config
191 mountPath: /opt/app/fproxy/config/logback-spring.xml
192 subPath: logback-spring.xml
193 - name: {{ include "common.fullname" . }}-fproxy-auth-config
194 mountPath: /opt/app/fproxy/config/auth/tomcat_keystore
195 subPath: tomcat_keystore
196 - name: {{ include "common.fullname" . }}-fproxy-auth-config
197 mountPath: /opt/app/fproxy/config/auth/client-cert.p12
198 subPath: client-cert.p12
200 - containerPort: {{ .Values.global.fproxy.port }}
207 - name: {{ include "common.fullname" . }}-data-filebeat
209 - name: filebeat-conf
211 name: {{ include "common.fullname" . }}-filebeat-configmap
212 - name: {{ include "common.fullname" . }}-logs
214 - name: {{ include "common.fullname" . }}-auth-secret
216 secretName: {{ include "common.fullname" . }}-auth
217 - name: {{ include "common.fullname" . }}-config
219 name: {{ include "common.fullname" . }}-configmap
221 - key: crud-api.properties
222 path: crud-api.properties
223 - key: schema-ingest.properties
224 path: schema-ingest.properties
225 - key: edgeprops-ingest.properties
226 path: edgeprops-ingest.properties
227 - key: crud-beans.xml
229 - name: {{ include "common.fullname" . }}-logback-config
231 name: {{ include "common.fullname" . }}-log-configmap
235 - name: {{ include "common.fullname" . }}-model-config
237 name: {{ include "common.fullname" . }}-model-configmap
238 {{ if .Values.global.installSidecarSecurity }}
239 - name: {{ include "common.fullname" . }}-rproxy-config
241 name: {{ include "common.fullname" . }}-rproxy-config
242 - name: {{ include "common.fullname" . }}-rproxy-log-config
244 name: {{ include "common.fullname" . }}-rproxy-log-config
245 - name: {{ include "common.fullname" . }}-rproxy-auth-config
247 secretName: {{ include "common.fullname" . }}-rproxy-auth-config
248 - name: {{ include "common.fullname" . }}-rproxy-security-config
250 secretName: {{ include "common.fullname" . }}-rproxy-security-config
251 - name: {{ include "common.fullname" . }}-fproxy-config
253 name: {{ include "common.fullname" . }}-fproxy-config
254 - name: {{ include "common.fullname" . }}-fproxy-log-config
256 name: {{ include "common.fullname" . }}-fproxy-log-config
257 - name: {{ include "common.fullname" . }}-fproxy-auth-config
259 secretName: {{ include "common.fullname" . }}-fproxy-auth-config
263 - name: "{{ include "common.namespace" . }}-docker-registry-key"