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" . }}
52 fieldPath: metadata.namespace
53 image: {{ include "repositoryGenerator.image.readiness" . }}
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 name: {{ include "common.name" . }}-readiness
57 - name: {{ include "common.name" . }}
58 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 - mountPath: /etc/localtime
65 - mountPath: /opt/app/sparky/config/auth/client-cert-onap.p12
66 name: {{ include "common.fullname" . }}-auth-config
67 subPath: client-cert-onap.p12
69 - mountPath: /opt/app/sparky/config/auth/csp-cookie-filter.properties
70 name: {{ include "common.fullname" . }}-auth-config
71 subPath: csp-cookie-filter.properties
73 - mountPath: /opt/app/sparky/config/auth/org.onap.aai.p12
74 name: {{ include "common.fullname" . }}-auth-config
75 subPath: org.onap.aai.p12
77 - mountPath: /opt/app/sparky/config/auth/truststoreONAPall.jks
78 name: aai-common-aai-auth-mount
79 subPath: truststoreONAPall.jks
81 - mountPath: /opt/app/sparky/config/portal/
82 name: {{ include "common.fullname" . }}-portal-config
84 - mountPath: /opt/app/sparky/config/portal/BOOT-INF/classes/
85 name: {{ include "common.fullname" . }}-portal-config-props
87 - mountPath: /var/log/onap
88 name: {{ include "common.fullname" . }}-logs
90 - mountPath: /opt/app/sparky/config/application.properties
91 name: {{ include "common.fullname" . }}-properties
92 subPath: application.properties
94 - mountPath: /opt/app/sparky/config/application-resources.properties
95 name: {{ include "common.fullname" . }}-properties
96 subPath: application-resources.properties
98 - mountPath: /opt/app/sparky/config/application-ssl.properties
99 name: {{ include "common.fullname" . }}-properties
100 subPath: application-ssl.properties
102 - mountPath: /opt/app/sparky/config/application-oxm-default.properties
103 name: {{ include "common.fullname" . }}-properties
104 subPath: application-oxm-default.properties
106 - mountPath: /opt/app/sparky/config/application-oxm-override.properties
107 name: {{ include "common.fullname" . }}-properties
108 subPath: application-oxm-override.properties
110 - mountPath: /opt/app/sparky/config/application-oxm-schema-prod.properties
111 name: {{ include "common.fullname" . }}-properties
112 subPath: application-oxm-schema-prod.properties
114 - mountPath: /opt/app/sparky/config/roles.config
115 name: {{ include "common.fullname" . }}-properties
116 subPath: roles.config
118 - mountPath: /opt/app/sparky/config/users.config
119 name: {{ include "common.fullname" . }}-properties
120 subPath: users.config
123 - containerPort: {{ .Values.service.internalPort }}
124 # disable liveness probe when breakpoints set in debugger
125 # so K8s doesn't restart unresponsive container
126 {{- if eq .Values.liveness.enabled true }}
129 port: {{ .Values.service.internalPort }}
130 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
131 periodSeconds: {{ .Values.liveness.periodSeconds }}
135 port: {{ .Values.service.internalPort }}
136 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
137 periodSeconds: {{ .Values.readiness.periodSeconds }}
139 {{ include "common.resources" . }}
140 {{- if .Values.nodeSelector }}
142 {{ toYaml .Values.nodeSelector | indent 8 }}
144 {{- if .Values.affinity }}
146 {{ toYaml .Values.affinity | indent 8 }}
149 # side car containers
150 - name: filebeat-onap
151 image: {{ include "repositoryGenerator.image.logging" . }}
152 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
154 - mountPath: /usr/share/filebeat/filebeat.yml
155 subPath: filebeat.yml
157 - mountPath: /var/log/onap
158 name: {{ include "common.fullname" . }}-logs
159 - mountPath: /usr/share/filebeat/data
160 name: aai-sparky-filebeat
162 {{ include "common.resources" . }}
169 - name: {{ include "common.fullname" . }}-properties
171 name: {{ include "common.fullname" . }}-prop
173 - name: {{ include "common.fullname" . }}-config
175 name: {{ include "common.fullname" . }}
177 - name: {{ include "common.fullname" . }}-portal-config
179 name: {{ include "common.fullname" . }}-portal
181 - name: {{ include "common.fullname" . }}-portal-config-props
183 name: {{ include "common.fullname" . }}-portal-props
185 - name: {{ include "common.fullname" . }}-auth-config
187 secretName: {{ include "common.fullname" . }}
189 - name: aai-common-aai-auth-mount
191 secretName: aai-common-aai-auth
193 - name: filebeat-conf
196 - name: {{ include "common.fullname" . }}-logs
198 - name: aai-sparky-filebeat
202 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
204 - name: "{{ include "common.namespace" . }}-docker-registry-key"