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" . }}
38 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
39 msb.onap.org/service-info: '[
41 "serviceName": "_aai-generic-query",
43 "url": "/aai/v11/search/generic-query",
47 "lb_policy":"ip_hash",
49 "path": "/aai/v11/search/generic-query"
52 "serviceName": "_aai-generic-query",
54 "url": "/aai/v12/search/generic-query",
58 "lb_policy":"ip_hash",
60 "path": "/aai/v12/search/generic-query"
63 "serviceName": "_aai-generic-query",
65 "url": "/aai/v13/search/generic-query",
69 "lb_policy":"ip_hash",
71 "path": "/aai/v13/search/generic-query"
74 "serviceName": "_aai-nodes-query",
76 "url": "/aai/v11/search/nodes-query",
80 "lb_policy":"ip_hash",
82 "path": "/aai/v11/search/nodes-query"
85 "serviceName": "_aai-nodes-query",
87 "url": "/aai/v12/search/nodes-query",
91 "lb_policy":"ip_hash",
93 "path": "/aai/v12/search/nodes-query"
96 "serviceName": "_aai-nodes-query",
98 "url": "/aai/v13/search/nodes-query",
102 "lb_policy":"ip_hash",
104 "path": "/aai/v13/search/nodes-query"
107 "serviceName": "_aai-query",
109 "url": "/aai/v11/query",
113 "lb_policy":"ip_hash",
115 "path": "/aai/v11/query"
118 "serviceName": "_aai-query",
120 "url": "/aai/v12/query",
124 "lb_policy":"ip_hash",
126 "path": "/aai/v12/query"
129 "serviceName": "_aai-query",
131 "url": "/aai/v13/query",
135 "lb_policy":"ip_hash",
137 "path": "/aai/v13/query"
140 "serviceName": "_aai-named-query",
141 "url": "/aai/search",
145 "lb_policy":"ip_hash",
147 "path": "/aai/search"
150 "serviceName": "aai-generic-query",
152 "url": "/aai/v11/search/generic-query",
156 "lb_policy":"ip_hash",
160 "serviceName": "aai-generic-query",
162 "url": "/aai/v12/search/generic-query",
166 "lb_policy":"ip_hash",
170 "serviceName": "aai-generic-query",
172 "url": "/aai/v13/search/generic-query",
176 "lb_policy":"ip_hash",
180 "serviceName": "aai-nodes-query",
182 "url": "/aai/v11/search/nodes-query",
186 "lb_policy":"ip_hash",
190 "serviceName": "aai-nodes-query",
192 "url": "/aai/v12/search/nodes-query",
196 "lb_policy":"ip_hash",
200 "serviceName": "aai-nodes-query",
202 "url": "/aai/v13/search/nodes-query",
206 "lb_policy":"ip_hash",
210 "serviceName": "aai-query",
212 "url": "/aai/v11/query",
216 "lb_policy":"ip_hash",
220 "serviceName": "aai-query",
222 "url": "/aai/v12/query",
226 "lb_policy":"ip_hash",
230 "serviceName": "aai-query",
232 "url": "/aai/v13/query",
236 "lb_policy":"ip_hash",
240 "serviceName": "aai-named-query",
241 "url": "/aai/search",
245 "lb_policy":"ip_hash",
250 hostname: aai-traversal
264 fieldPath: metadata.namespace
265 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
266 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
267 name: {{ include "common.name" . }}-readiness
269 - name: {{ include "common.name" . }}
270 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
271 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
273 - name: DISABLE_UPDATE_QUERY
274 value: {{ .Values.config.disableUpdateQuery | quote }}
275 - name: LOCAL_USER_ID
276 value: {{ .Values.config.userId | quote }}
277 - name: LOCAL_GROUP_ID
278 value: {{ .Values.config.groupId | quote }}
280 - mountPath: /etc/localtime
283 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
284 name: {{ include "common.fullname" . }}-db-real-conf
285 subPath: janusgraph-realtime.properties
286 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
287 name: {{ include "common.fullname" . }}-db-cached-conf
288 subPath: janusgraph-cached.properties
289 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties
290 name: {{ include "common.fullname" . }}-aaiconfig-conf
291 subPath: aaiconfig.properties
292 - mountPath: /opt/aai/logroot/AAI-GQ
293 name: {{ include "common.fullname" . }}-logs
294 - mountPath: /opt/app/aai-traversal/resources/logback.xml
295 name: {{ include "common.fullname" . }}-log-conf
297 - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml
298 name: {{ include "common.fullname" . }}-localhost-access-log-conf
299 subPath: localhost-access-logback.xml
300 - mountPath: /opt/app/aai-traversal/resources/application.properties
301 name: {{ include "common.fullname" . }}-springapp-conf
302 subPath: application.properties
303 - mountPath: /opt/app/aai-traversal/resources/etc/auth/aai_keystore
304 name: {{ include "common.fullname" . }}-auth-sec
305 subPath: aai_keystore
307 - containerPort: {{ .Values.service.internalPort }}
308 - containerPort: {{ .Values.service.internalPort2 }}
309 # disable liveness probe when breakpoints set in debugger
310 # so K8s doesn't restart unresponsive container
311 {{ if .Values.liveness.enabled }}
314 port: {{ .Values.service.internalPort }}
315 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
316 periodSeconds: {{ .Values.liveness.periodSeconds }}
320 port: {{ .Values.service.internalPort }}
321 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
322 periodSeconds: {{ .Values.readiness.periodSeconds }}
324 {{ toYaml .Values.resources | indent 10 }}
325 {{- if .Values.nodeSelector }}
327 {{ toYaml .Values.nodeSelector | indent 8 }}
329 {{- if .Values.affinity }}
331 {{ toYaml .Values.affinity | indent 8 }}
334 # side car containers
335 - name: filebeat-onap
336 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
337 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
339 - mountPath: /usr/share/filebeat/filebeat.yml
340 subPath: filebeat.yml
342 - mountPath: /var/log/onap
343 name: {{ include "common.fullname" . }}-logs
344 - mountPath: /usr/share/filebeat/data
345 name: {{ include "common.fullname" . }}-filebeat
350 - name: filebeat-conf
353 - name: {{ include "common.fullname" . }}-logs
355 - name: {{ include "common.fullname" . }}-filebeat
357 - name: {{ include "common.fullname" . }}-log-conf
359 name: {{ include "common.fullname" . }}-log
360 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
362 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
363 - name: {{ include "common.fullname" . }}-db-real-conf
365 name: {{ include "common.fullname" . }}-db-real-configmap
366 - name: {{ include "common.fullname" . }}-db-cached-conf
368 name: {{ include "common.fullname" . }}-db-cached-configmap
369 - name: {{ include "common.fullname" . }}-aaiconfig-conf
371 name: {{ include "common.fullname" . }}-aaiconfig-configmap
372 - name: {{ include "common.fullname" . }}-springapp-conf
374 name: {{ include "common.fullname" . }}-springapp-configmap
375 - name: {{ include "common.fullname" . }}-realm-conf
377 name: {{ include "common.fullname" . }}-realm-configmap
378 - name: {{ include "common.fullname" . }}-auth-sec
380 secretName: aai-auth-secret
381 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
383 - name: "{{ include "common.namespace" . }}-docker-registry-key"