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" . }}
38 - name: {{ include "common.name" . }}
39 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
43 value: /opt/app/sparky/config/
44 - name: KEY_MANAGER_PASSWORD
45 value: {{ .Values.config.keyManagerPassword }}
46 - name: KEY_STORE_PASSWORD
47 value: {{ .Values.config.keyStorePassword }}
49 - mountPath: /etc/localtime
52 - mountPath: /opt/app/sparky/config/auth/
53 name: {{ include "common.fullname" . }}-auth-config
54 - mountPath: /opt/app/sparky/config/synchronizer.properties
55 subPath: synchronizer.properties
56 name: {{ include "common.fullname" . }}-config
57 - mountPath: /opt/app/sparky/config/suggestive-search.properties
58 subPath: suggestive-search.properties
59 name: {{ include "common.fullname" . }}-config
60 - mountPath: /opt/app/sparky/config/search-service.properties
61 subPath: search-service.properties
62 name: {{ include "common.fullname" . }}-config
63 - mountPath: /opt/app/sparky/config/roles.config
65 name: {{ include "common.fullname" . }}-config
66 - mountPath: /opt/app/sparky/config/elasticsearch.properties
67 subPath: elasticsearch.properties
68 name: {{ include "common.fullname" . }}-config
69 - mountPath: /opt/app/sparky/config/aai.properties
70 subPath: aai.properties
71 name: {{ include "common.fullname" . }}-config
72 - mountPath: /opt/app/sparky/config/model/
73 name: {{ include "common.fullname" . }}-model-config
74 - mountPath: /opt/app/sparky/config/portal/
75 name: {{ include "common.fullname" . }}-portal-config
76 - mountPath: /var/log/onap
77 name: {{ include "common.fullname" . }}-logs
78 - mountPath: /opt/app/sparky/bundleconfig/etc/logback.xml
79 name: {{ include "common.fullname" . }}-log-conf
82 - containerPort: {{ .Values.service.internalPort }}
83 # disable liveness probe when breakpoints set in debugger
84 # so K8s doesn't restart unresponsive container
85 {{- if eq .Values.liveness.enabled true }}
88 port: {{ .Values.service.internalPort }}
89 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
90 periodSeconds: {{ .Values.liveness.periodSeconds }}
94 port: {{ .Values.service.internalPort }}
95 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
96 periodSeconds: {{ .Values.readiness.periodSeconds }}
98 {{ toYaml .Values.resources | indent 10 }}
99 {{- if .Values.nodeSelector }}
101 {{ toYaml .Values.nodeSelector | indent 8 }}
103 {{- if .Values.affinity }}
105 {{ toYaml .Values.affinity | indent 8 }}
108 # side car containers
109 - name: filebeat-onap
110 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
111 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
113 - mountPath: /usr/share/filebeat/filebeat.yml
114 subPath: filebeat.yml
116 - mountPath: /var/log/onap
117 name: {{ include "common.fullname" . }}-logs
118 - mountPath: /usr/share/filebeat/data
119 name: aai-sparky-filebeat
125 - name: {{ include "common.fullname" . }}-config
127 name: {{ include "common.fullname" . }}
128 - name: {{ include "common.fullname" . }}-model-config
130 name: {{ include "common.fullname" . }}-model
131 - name: {{ include "common.fullname" . }}-portal-config
133 name: {{ include "common.fullname" . }}-portal
134 - name: {{ include "common.fullname" . }}-auth-config
136 secretName: {{ include "common.fullname" . }}
137 - name: filebeat-conf
140 - name: {{ include "common.fullname" . }}-logs
142 - name: aai-sparky-filebeat
144 - name: {{ include "common.fullname" . }}-log-conf
146 name: {{ include "common.fullname" . }}-log
147 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
149 - name: "{{ include "common.namespace" . }}-docker-registry-key"