2 # Copyright (c) 2017 Amdocs, Bell Canada
3 # Modifications Copyright (c) 2018 AT&T
4 # Modifications Copyright (c) 2020 Nokia
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
22 name: {{ include "common.fullname" . }}
23 namespace: {{ include "common.namespace" . }}
25 app: {{ include "common.name" . }}
26 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
27 release: {{ include "common.release" . }}
28 heritage: {{ .Release.Service }}
30 replicas: {{ .Values.replicaCount }}
33 app: {{ include "common.name" . }}
37 app: {{ include "common.name" . }}
38 release: {{ include "common.release" . }}
39 name: {{ include "common.name" . }}
56 fieldPath: metadata.namespace
57 image: {{ include "repositoryGenerator.image.readiness" . }}
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 name: {{ include "common.name" . }}-readiness
61 - name: {{ include "common.name" . }}
62 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 - mountPath: /etc/localtime
69 - mountPath: /opt/app/sparky/config/auth/client-cert-onap.p12
70 name: {{ include "common.fullname" . }}-auth-config
71 subPath: client-cert-onap.p12
73 - mountPath: /opt/app/sparky/config/auth/csp-cookie-filter.properties
74 name: {{ include "common.fullname" . }}-auth-config
75 subPath: csp-cookie-filter.properties
77 - mountPath: /opt/app/sparky/config/auth/org.onap.aai.p12
78 name: {{ include "common.fullname" . }}-auth-config
79 subPath: org.onap.aai.p12
81 - mountPath: /opt/app/sparky/config/auth/truststoreONAPall.jks
82 name: aai-common-aai-auth-mount
83 subPath: truststoreONAPall.jks
85 - mountPath: /opt/app/sparky/config/portal/
86 name: {{ include "common.fullname" . }}-portal-config
88 - mountPath: /opt/app/sparky/config/portal/BOOT-INF/classes/
89 name: {{ include "common.fullname" . }}-portal-config-props
91 - mountPath: /var/log/onap
92 name: {{ include "common.fullname" . }}-logs
94 - mountPath: /opt/app/sparky/config/application.properties
95 name: {{ include "common.fullname" . }}-properties
96 subPath: application.properties
98 - mountPath: /opt/app/sparky/config/application-resources.properties
99 name: {{ include "common.fullname" . }}-properties
100 subPath: application-resources.properties
102 - mountPath: /opt/app/sparky/config/application-ssl.properties
103 name: {{ include "common.fullname" . }}-properties
104 subPath: application-ssl.properties
106 - mountPath: /opt/app/sparky/config/application-oxm-default.properties
107 name: {{ include "common.fullname" . }}-properties
108 subPath: application-oxm-default.properties
110 - mountPath: /opt/app/sparky/config/application-oxm-override.properties
111 name: {{ include "common.fullname" . }}-properties
112 subPath: application-oxm-override.properties
114 - mountPath: /opt/app/sparky/config/application-oxm-schema-prod.properties
115 name: {{ include "common.fullname" . }}-properties
116 subPath: application-oxm-schema-prod.properties
118 - mountPath: /opt/app/sparky/config/roles.config
119 name: {{ include "common.fullname" . }}-properties
120 subPath: roles.config
122 - mountPath: /opt/app/sparky/config/users.config
123 name: {{ include "common.fullname" . }}-properties
124 subPath: users.config
127 - containerPort: {{ .Values.service.internalPort }}
128 # disable liveness probe when breakpoints set in debugger
129 # so K8s doesn't restart unresponsive container
130 {{- if eq .Values.liveness.enabled true }}
133 port: {{ .Values.service.internalPort }}
134 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
135 periodSeconds: {{ .Values.liveness.periodSeconds }}
139 port: {{ .Values.service.internalPort }}
140 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
141 periodSeconds: {{ .Values.readiness.periodSeconds }}
143 {{ include "common.resources" . }}
144 {{- if .Values.nodeSelector }}
146 {{ toYaml .Values.nodeSelector | indent 8 }}
148 {{- if .Values.affinity }}
150 {{ toYaml .Values.affinity | indent 8 }}
153 # side car containers
154 - name: filebeat-onap
155 image: {{ include "repositoryGenerator.image.logging" . }}
156 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
158 - mountPath: /usr/share/filebeat/filebeat.yml
159 subPath: filebeat.yml
161 - mountPath: /var/log/onap
162 name: {{ include "common.fullname" . }}-logs
163 - mountPath: /usr/share/filebeat/data
164 name: aai-sparky-filebeat
166 {{ include "common.resources" . }}
173 - name: {{ include "common.fullname" . }}-properties
175 name: {{ include "common.fullname" . }}-prop
177 - name: {{ include "common.fullname" . }}-config
179 name: {{ include "common.fullname" . }}
181 - name: {{ include "common.fullname" . }}-portal-config
183 name: {{ include "common.fullname" . }}-portal
185 - name: {{ include "common.fullname" . }}-portal-config-props
187 name: {{ include "common.fullname" . }}-portal-props
189 - name: {{ include "common.fullname" . }}-auth-config
191 secretName: {{ include "common.fullname" . }}
193 - name: aai-common-aai-auth-mount
195 secretName: aai-common-aai-auth
197 - name: filebeat-conf
200 - name: {{ include "common.fullname" . }}-logs
202 - name: aai-sparky-filebeat
206 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
208 - name: "{{ include "common.namespace" . }}-docker-registry-key"