2 # Copyright © 2020 Wipro Limited.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
18 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
20 selector: {{- include "common.selectors" . | nindent 4 }}
21 replicas: {{ index .Values.replicaCount }}
22 minReadySeconds: {{ index .Values.minReadySeconds }}
24 type: {{ index .Values.updateStrategy.type }}
26 maxUnavailable: {{ index .Values.updateStrategy.maxUnavailable }}
27 maxSurge: {{ index .Values.updateStrategy.maxSurge }}
29 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
32 - name: {{ include "common.name" . }}
33 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
34 resources: {{ include "common.resources" . | nindent 10 }}
37 value: {{ include "common.mariadbService" . }}
39 value: {{ include "common.mariadbPort" . | quote }}
41 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "login") | indent 10 }}
43 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "password") | indent 10 }}
44 - name: DB_ADMIN_USERNAME
45 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "login") | indent 10 }}
46 - name: DB_ADMIN_PASSWORD
47 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "password") | indent 10 }}
49 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "oof-adapter-mso-key" "key" "password") | indent 10 }}
51 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "oof-auth" "key" "login") | indent 10 }}
53 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "oof-auth" "key" "password") | indent 10 }}
56 name: {{ include "common.fullname" . }}-configmap
57 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 mountPath: /app/config
64 - name: {{ include "common.fullname" . }}-logs
65 mountPath: /var/log/onap
66 {{ include "so.helpers.livenessProbe" .| indent 8 }}
67 ports: {{- include "common.containerPorts" . | nindent 10 }}
68 # Filebeat sidecar container
69 {{ include "common.log.sidecar" . | nindent 6 }}
70 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
76 name: {{ include "common.fullname" . }}-app-configmap
77 - name: {{ include "common.fullname" . }}-log-conf
79 name: {{ include "common.fullname" . }}-log
80 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 6 }}
81 - name: {{ include "common.fullname" . }}-logs
83 {{- include "common.imagePullSecrets" . | nindent 6 }}