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" . }}
37 msb.onap.org/service-info: '[
39 "serviceName": "_aai-generic-query",
41 "url": "/aai/v11/search/generic-query",
45 "lb_policy":"ip_hash",
47 "path": "/aai/v11/search/generic-query"
50 "serviceName": "_aai-generic-query",
52 "url": "/aai/v12/search/generic-query",
56 "lb_policy":"ip_hash",
58 "path": "/aai/v12/search/generic-query"
61 "serviceName": "_aai-generic-query",
63 "url": "/aai/v13/search/generic-query",
67 "lb_policy":"ip_hash",
69 "path": "/aai/v13/search/generic-query"
72 "serviceName": "_aai-nodes-query",
74 "url": "/aai/v11/search/nodes-query",
78 "lb_policy":"ip_hash",
80 "path": "/aai/v11/search/nodes-query"
83 "serviceName": "_aai-nodes-query",
85 "url": "/aai/v12/search/nodes-query",
89 "lb_policy":"ip_hash",
91 "path": "/aai/v12/search/nodes-query"
94 "serviceName": "_aai-nodes-query",
96 "url": "/aai/v13/search/nodes-query",
100 "lb_policy":"ip_hash",
102 "path": "/aai/v13/search/nodes-query"
105 "serviceName": "_aai-query",
107 "url": "/aai/v11/query",
111 "lb_policy":"ip_hash",
113 "path": "/aai/v11/query"
116 "serviceName": "_aai-query",
118 "url": "/aai/v12/query",
122 "lb_policy":"ip_hash",
124 "path": "/aai/v12/query"
127 "serviceName": "_aai-query",
129 "url": "/aai/v13/query",
133 "lb_policy":"ip_hash",
135 "path": "/aai/v13/query"
138 "serviceName": "_aai-named-query",
139 "url": "/aai/search",
143 "lb_policy":"ip_hash",
145 "path": "/aai/search"
148 "serviceName": "aai-generic-query",
150 "url": "/aai/v11/search/generic-query",
154 "lb_policy":"ip_hash",
158 "serviceName": "aai-generic-query",
160 "url": "/aai/v12/search/generic-query",
164 "lb_policy":"ip_hash",
168 "serviceName": "aai-generic-query",
170 "url": "/aai/v13/search/generic-query",
174 "lb_policy":"ip_hash",
178 "serviceName": "aai-nodes-query",
180 "url": "/aai/v11/search/nodes-query",
184 "lb_policy":"ip_hash",
188 "serviceName": "aai-nodes-query",
190 "url": "/aai/v12/search/nodes-query",
194 "lb_policy":"ip_hash",
198 "serviceName": "aai-nodes-query",
200 "url": "/aai/v13/search/nodes-query",
204 "lb_policy":"ip_hash",
208 "serviceName": "aai-query",
210 "url": "/aai/v11/query",
214 "lb_policy":"ip_hash",
218 "serviceName": "aai-query",
220 "url": "/aai/v12/query",
224 "lb_policy":"ip_hash",
228 "serviceName": "aai-query",
230 "url": "/aai/v13/query",
234 "lb_policy":"ip_hash",
238 "serviceName": "aai-named-query",
239 "url": "/aai/search",
243 "lb_policy":"ip_hash",
248 hostname: aai-traversal
262 fieldPath: metadata.namespace
263 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
264 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
265 name: {{ include "common.name" . }}-readiness
267 - name: {{ include "common.name" . }}
268 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
269 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
271 - name: DISABLE_UPDATE_QUERY
272 value: {{ .Values.config.disableUpdateQuery | quote }}
273 - name: LOCAL_USER_ID
274 value: {{ .Values.config.userId | quote }}
275 - name: LOCAL_GROUP_ID
276 value: {{ .Values.config.groupId | quote }}
278 - mountPath: /etc/localtime
281 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
282 name: {{ include "common.fullname" . }}-db-real-conf
283 subPath: janusgraph-realtime.properties
284 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
285 name: {{ include "common.fullname" . }}-db-cached-conf
286 subPath: janusgraph-cached.properties
287 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties
288 name: {{ include "common.fullname" . }}-aaiconfig-conf
289 subPath: aaiconfig.properties
290 - mountPath: /var/log/onap
291 name: {{ include "common.fullname" . }}-logs
292 - mountPath: /opt/app/aai-traversal/resources/logback.xml
293 name: {{ include "common.fullname" . }}-log-conf
295 - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml
296 name: {{ include "common.fullname" . }}-localhost-access-log-conf
297 subPath: localhost-access-logback.xml
298 - mountPath: /opt/app/aai-traversal/resources/application.properties
299 name: {{ include "common.fullname" . }}-springapp-conf
300 subPath: application.properties
301 - mountPath: /opt/app/aai-traversal/resources/etc/auth/aai_keystore
302 name: {{ include "common.fullname" . }}-auth-sec
303 subPath: aai_keystore
305 - containerPort: {{ .Values.service.internalPort }}
306 - containerPort: {{ .Values.service.internalPort2 }}
307 # disable liveness probe when breakpoints set in debugger
308 # so K8s doesn't restart unresponsive container
309 {{ if .Values.liveness.enabled }}
312 port: {{ .Values.service.internalPort }}
313 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
314 periodSeconds: {{ .Values.liveness.periodSeconds }}
318 port: {{ .Values.service.internalPort }}
319 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
320 periodSeconds: {{ .Values.readiness.periodSeconds }}
322 {{ toYaml .Values.resources | indent 10 }}
323 {{- if .Values.nodeSelector }}
325 {{ toYaml .Values.nodeSelector | indent 8 }}
327 {{- if .Values.affinity }}
329 {{ toYaml .Values.affinity | indent 8 }}
332 # side car containers
333 - name: filebeat-onap
334 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
335 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
337 - mountPath: /usr/share/filebeat/filebeat.yml
338 subPath: filebeat.yml
340 - mountPath: /var/log/onap
341 name: {{ include "common.fullname" . }}-logs
342 - mountPath: /usr/share/filebeat/data
343 name: {{ include "common.fullname" . }}-filebeat
348 - name: filebeat-conf
351 - name: {{ include "common.fullname" . }}-logs
353 - name: {{ include "common.fullname" . }}-filebeat
355 - name: {{ include "common.fullname" . }}-log-conf
357 name: {{ include "common.fullname" . }}-log
358 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
360 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
361 - name: {{ include "common.fullname" . }}-db-real-conf
363 name: {{ include "common.fullname" . }}-db-real-configmap
364 - name: {{ include "common.fullname" . }}-db-cached-conf
366 name: {{ include "common.fullname" . }}-db-cached-configmap
367 - name: {{ include "common.fullname" . }}-aaiconfig-conf
369 name: {{ include "common.fullname" . }}-aaiconfig-configmap
370 - name: {{ include "common.fullname" . }}-springapp-conf
372 name: {{ include "common.fullname" . }}-springapp-configmap
373 - name: {{ include "common.fullname" . }}-realm-conf
375 name: {{ include "common.fullname" . }}-realm-configmap
376 - name: {{ include "common.fullname" . }}-auth-sec
378 secretName: {{ include "common.fullname" . }}-auth-secret
379 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
381 - name: "{{ include "common.namespace" . }}-docker-registry-key"