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",
259 fieldPath: metadata.namespace
260 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
261 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
262 name: {{ include "common.name" . }}-readiness
264 - name: {{ include "common.name" . }}
265 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
266 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
272 - name: AAI_CORE_VERSION
273 value: {{ .Values.config.aaicoreversion }}
275 value: /var/chef/aai-data/environments
277 value: http://gerrit.onap.org/r/aai
278 - name: RESOURCES_HOSTNAME
279 value: aai-resources.{{ include "common.namespace" . }}
281 - mountPath: /etc/localtime
284 - mountPath: /var/chef/aai-data/chef-config/dev/.knife/solo.rb
286 name: aai-chef-config
287 - mountPath: /var/chef/aai-data/environments/
289 - mountPath: /var/log/onap
290 name: aai-traversal-logs
291 - mountPath: /opt/app/aai-traversal/bundleconfig/etc/logback.xml
292 name: aai-traversal-log-conf
295 - containerPort: {{ .Values.service.internalPort }}
296 - containerPort: {{ .Values.service.internalPort2 }}
297 # disable liveness probe when breakpoints set in debugger
298 # so K8s doesn't restart unresponsive container
299 {{ if .Values.liveness.enabled }}
302 port: {{ .Values.service.internalPort }}
303 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
304 periodSeconds: {{ .Values.liveness.periodSeconds }}
308 port: {{ .Values.service.internalPort }}
309 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
310 periodSeconds: {{ .Values.readiness.periodSeconds }}
312 {{ toYaml .Values.resources | indent 10 }}
313 {{- if .Values.nodeSelector }}
315 {{ toYaml .Values.nodeSelector | indent 8 }}
317 {{- if .Values.affinity }}
319 {{ toYaml .Values.affinity | indent 8 }}
322 # side car containers
323 - name: filebeat-onap
324 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
325 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
327 - mountPath: /usr/share/filebeat/filebeat.yml
328 subPath: filebeat.yml
330 - mountPath: /var/log/onap
331 name: aai-traversal-logs
332 - mountPath: /usr/share/filebeat/data
333 name: aai-traversal-filebeat
339 - name: aai-chef-config
341 name: aai-chef-config
344 name: aai-resources-environments
345 - name: filebeat-conf
348 - name: aai-traversal-logs
350 - name: aai-traversal-filebeat
352 - name: aai-traversal-log-conf
354 name: {{ include "common.fullname" . }}-log
355 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
357 - name: "{{ include "common.namespace" . }}-docker-registry-key"