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-cloudInfrastructure",
41 "url": "/aai/v11/cloud-infrastructure",
45 "lb_policy":"ip_hash",
47 "path": "/aai/v11/cloud-infrastructure"
50 "serviceName": "_aai-cloudInfrastructure",
52 "url": "/aai/v12/cloud-infrastructure",
56 "lb_policy":"ip_hash",
58 "path": "/aai/v12/cloud-infrastructure"
61 "serviceName": "_aai-cloudInfrastructure",
63 "url": "/aai/v13/cloud-infrastructure",
67 "lb_policy":"ip_hash",
69 "path": "/aai/v13/cloud-infrastructure"
72 "serviceName": "_aai-business",
74 "url": "/aai/v11/business",
78 "lb_policy":"ip_hash",
80 "path": "/aai/v11/business"
83 "serviceName": "_aai-business",
85 "url": "/aai/v12/business",
89 "lb_policy":"ip_hash",
91 "path": "/aai/v12/business"
94 "serviceName": "_aai-business",
96 "url": "/aai/v13/business",
100 "lb_policy":"ip_hash",
102 "path": "/aai/v13/business"
105 "serviceName": "_aai-actions",
107 "url": "/aai/v11/actions",
111 "lb_policy":"ip_hash",
113 "path": "/aai/v11/actions"
116 "serviceName": "_aai-actions",
118 "url": "/aai/v12/actions",
122 "lb_policy":"ip_hash",
124 "path": "/aai/v12/actions"
127 "serviceName": "_aai-actions",
129 "url": "/aai/v13/actions",
133 "lb_policy":"ip_hash",
135 "path": "/aai/v13/actions"
138 "serviceName": "_aai-service-design-and-creation",
140 "url": "/aai/v11/service-design-and-creation",
144 "lb_policy":"ip_hash",
146 "path": "/aai/v11/service-design-and-creation"
149 "serviceName": "_aai-service-design-and-creation",
151 "url": "/aai/v12/service-design-and-creation",
155 "lb_policy":"ip_hash",
157 "path": "/aai/v12/service-design-and-creation"
160 "serviceName": "_aai-service-design-and-creation",
162 "url": "/aai/v13/service-design-and-creation",
166 "lb_policy":"ip_hash",
168 "path": "/aai/v13/service-design-and-creation"
171 "serviceName": "_aai-network",
173 "url": "/aai/v11/network",
177 "lb_policy":"ip_hash",
179 "path": "/aai/v11/network"
182 "serviceName": "_aai-network",
184 "url": "/aai/v12/network",
188 "lb_policy":"ip_hash",
190 "path": "/aai/v12/network"
193 "serviceName": "_aai-network",
195 "url": "/aai/v13/network",
199 "lb_policy":"ip_hash",
201 "path": "/aai/v13/network"
204 "serviceName": "_aai-externalSystem",
206 "url": "/aai/v11/external-system",
210 "lb_policy":"ip_hash",
212 "path": "/aai/v11/external-system"
215 "serviceName": "_aai-externalSystem",
217 "url": "/aai/v12/external-system",
221 "lb_policy":"ip_hash",
223 "path": "/aai/v12/external-system"
226 "serviceName": "_aai-externalSystem",
228 "url": "/aai/v13/external-system",
232 "lb_policy":"ip_hash",
234 "path": "/aai/v13/external-system"
237 "serviceName": "aai-cloudInfrastructure",
239 "url": "/aai/v11/cloud-infrastructure",
243 "lb_policy":"ip_hash",
247 "serviceName": "aai-cloudInfrastructure",
249 "url": "/aai/v12/cloud-infrastructure",
253 "lb_policy":"ip_hash",
257 "serviceName": "aai-cloudInfrastructure",
259 "url": "/aai/v13/cloud-infrastructure",
263 "lb_policy":"ip_hash",
267 "serviceName": "aai-business",
269 "url": "/aai/v11/business",
273 "lb_policy":"ip_hash",
277 "serviceName": "aai-business",
279 "url": "/aai/v12/business",
283 "lb_policy":"ip_hash",
287 "serviceName": "aai-business",
289 "url": "/aai/v13/business",
293 "lb_policy":"ip_hash",
297 "serviceName": "aai-actions",
299 "url": "/aai/v11/actions",
303 "lb_policy":"ip_hash",
307 "serviceName": "aai-actions",
309 "url": "/aai/v12/actions",
313 "lb_policy":"ip_hash",
317 "serviceName": "aai-actions",
319 "url": "/aai/v13/actions",
323 "lb_policy":"ip_hash",
327 "serviceName": "aai-service-design-and-creation",
329 "url": "/aai/v11/service-design-and-creation",
333 "lb_policy":"ip_hash",
337 "serviceName": "aai-service-design-and-creation",
339 "url": "/aai/v12/service-design-and-creation",
343 "lb_policy":"ip_hash",
347 "serviceName": "aai-service-design-and-creation",
349 "url": "/aai/v13/service-design-and-creation",
353 "lb_policy":"ip_hash",
357 "serviceName": "aai-network",
359 "url": "/aai/v11/network",
363 "lb_policy":"ip_hash",
367 "serviceName": "aai-network",
369 "url": "/aai/v12/network",
373 "lb_policy":"ip_hash",
377 "serviceName": "aai-network",
379 "url": "/aai/v13/network",
383 "lb_policy":"ip_hash",
387 "serviceName": "aai-externalSystem",
389 "url": "/aai/v11/external-system",
393 "lb_policy":"ip_hash",
397 "serviceName": "aai-externalSystem",
399 "url": "/aai/v12/external-system",
403 "lb_policy":"ip_hash",
407 "serviceName": "aai-externalSystem",
409 "url": "/aai/v13/external-system",
413 "lb_policy":"ip_hash",
429 fieldPath: metadata.namespace
430 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
431 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
432 name: {{ include "common.name" . }}-readiness
434 - name: {{ include "common.name" . }}
435 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
436 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
442 - name: AAI_CORE_VERSION
443 value: {{ .Values.config.aaicoreversion }}
445 value: /var/chef/aai-data/environments
447 value: http://gerrit.onap.org/r/aai
448 - name: HBASE_STARTUP_ARTIFICIAL_DELAY
451 - mountPath: /etc/localtime
454 - mountPath: /var/chef/aai-data/chef-config/dev/.knife/solo.rb
456 name: aai-chef-config
457 - mountPath: /var/chef/aai-data/environments/
459 - mountPath: /var/log/onap
460 name: aai-resources-logs
461 - mountPath: /opt/app/aai-resources/bundleconfig/etc/logback.xml
462 name: aai-resources-log-conf
465 - containerPort: {{ .Values.service.internalPort }}
466 - containerPort: {{ .Values.service.internalPort2 }}
467 # disable liveness probe when breakpoints set in debugger
468 # so K8s doesn't restart unresponsive container
469 {{ if .Values.liveness.enabled }}
472 port: {{ .Values.service.internalPort }}
473 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
474 periodSeconds: {{ .Values.liveness.periodSeconds }}
478 port: {{ .Values.service.internalPort }}
479 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
480 periodSeconds: {{ .Values.readiness.periodSeconds }}
482 {{ toYaml .Values.resources | indent 10 }}
483 {{- if .Values.nodeSelector }}
485 {{ toYaml .Values.nodeSelector | indent 8 }}
487 {{- if .Values.affinity }}
489 {{ toYaml .Values.affinity | indent 8 }}
492 # side car containers
493 - name: filebeat-onap
494 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
495 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
497 - mountPath: /usr/share/filebeat/filebeat.yml
498 subPath: filebeat.yml
500 - mountPath: /var/log/onap
501 name: aai-resources-logs
502 - mountPath: /usr/share/filebeat/data
503 name: aai-resources-filebeat
509 - name: aai-chef-config
511 name: aai-chef-config
514 name: aai-resources-environments
515 - name: filebeat-conf
518 - name: aai-resources-logs
520 - name: aai-resources-filebeat
522 - name: aai-resources-log-conf
524 name: {{ include "common.fullname" . }}
525 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
527 - name: "{{ include "common.namespace" . }}-docker-registry-key"