1 # Copyright (c) 2017 Amdocs, Bell Canada
2 # Modifications Copyright (c) 2018 AT&T
3 # Modifications Copyright (c) 2020 Nokia
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
28 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
37 name: {{ include "common.name" . }}
54 fieldPath: metadata.namespace
55 image: {{ include "repositoryGenerator.image.readiness" . }}
56 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 name: {{ include "common.name" . }}-readiness
59 - name: {{ include "common.name" . }}
60 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
61 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
64 - mountPath: /etc/localtime
67 - mountPath: /opt/app/sparky/config/auth/client-cert-onap.p12
68 name: {{ include "common.fullname" . }}-auth-config
69 subPath: client-cert-onap.p12
71 - mountPath: /opt/app/sparky/config/auth/csp-cookie-filter.properties
72 name: {{ include "common.fullname" . }}-auth-config
73 subPath: csp-cookie-filter.properties
75 - mountPath: /opt/app/sparky/config/auth/org.onap.aai.p12
76 name: {{ include "common.fullname" . }}-auth-config
77 subPath: org.onap.aai.p12
79 - mountPath: /opt/app/sparky/config/auth/truststoreONAPall.jks
80 name: aai-common-aai-auth-mount
81 subPath: truststoreONAPall.jks
83 - mountPath: /opt/app/sparky/config/portal/
84 name: {{ include "common.fullname" . }}-portal-config
86 - mountPath: /opt/app/sparky/config/portal/BOOT-INF/classes/
87 name: {{ include "common.fullname" . }}-portal-config-props
89 - mountPath: /var/log/onap
90 name: {{ include "common.fullname" . }}-logs
92 - mountPath: /opt/app/sparky/config/application.properties
93 name: {{ include "common.fullname" . }}-properties
94 subPath: application.properties
96 - mountPath: /opt/app/sparky/config/application-resources.properties
97 name: {{ include "common.fullname" . }}-properties
98 subPath: application-resources.properties
100 - mountPath: /opt/app/sparky/config/application-ssl.properties
101 name: {{ include "common.fullname" . }}-properties
102 subPath: application-ssl.properties
104 - mountPath: /opt/app/sparky/config/application-oxm-default.properties
105 name: {{ include "common.fullname" . }}-properties
106 subPath: application-oxm-default.properties
108 - mountPath: /opt/app/sparky/config/application-oxm-override.properties
109 name: {{ include "common.fullname" . }}-properties
110 subPath: application-oxm-override.properties
112 - mountPath: /opt/app/sparky/config/application-oxm-schema-prod.properties
113 name: {{ include "common.fullname" . }}-properties
114 subPath: application-oxm-schema-prod.properties
116 - mountPath: /opt/app/sparky/config/roles.config
117 name: {{ include "common.fullname" . }}-properties
118 subPath: roles.config
120 - mountPath: /opt/app/sparky/config/users.config
121 name: {{ include "common.fullname" . }}-properties
122 subPath: users.config
125 - containerPort: {{ .Values.service.internalPort }}
126 # disable liveness probe when breakpoints set in debugger
127 # so K8s doesn't restart unresponsive container
128 {{- if eq .Values.liveness.enabled true }}
131 port: {{ .Values.service.internalPort }}
132 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
133 periodSeconds: {{ .Values.liveness.periodSeconds }}
137 port: {{ .Values.service.internalPort }}
138 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
139 periodSeconds: {{ .Values.readiness.periodSeconds }}
141 {{ include "common.resources" . }}
142 {{- if .Values.nodeSelector }}
144 {{ toYaml .Values.nodeSelector | indent 8 }}
146 {{- if .Values.affinity }}
148 {{ toYaml .Values.affinity | indent 8 }}
151 # side car containers
152 - name: filebeat-onap
153 image: {{ include "repositoryGenerator.image.logging" . }}
154 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
156 - mountPath: /usr/share/filebeat/filebeat.yml
157 subPath: filebeat.yml
159 - mountPath: /var/log/onap
160 name: {{ include "common.fullname" . }}-logs
161 - mountPath: /usr/share/filebeat/data
162 name: aai-sparky-filebeat
164 {{ include "common.resources" . }}
171 - name: {{ include "common.fullname" . }}-properties
173 name: {{ include "common.fullname" . }}-prop
175 - name: {{ include "common.fullname" . }}-config
177 name: {{ include "common.fullname" . }}
179 - name: {{ include "common.fullname" . }}-portal-config
181 name: {{ include "common.fullname" . }}-portal
183 - name: {{ include "common.fullname" . }}-portal-config-props
185 name: {{ include "common.fullname" . }}-portal-props
187 - name: {{ include "common.fullname" . }}-auth-config
189 secretName: {{ include "common.fullname" . }}
191 - name: aai-common-aai-auth-mount
193 secretName: aai-common-aai-auth
195 - name: filebeat-conf
198 - name: {{ include "common.fullname" . }}-logs
200 - name: aai-sparky-filebeat
204 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
206 - name: "{{ include "common.namespace" . }}-docker-registry-key"