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 }}
30 labels: {{- include "common.labels" . | nindent 8 }}
32 initContainers: {{ include "so.certificate.container_importer" . | nindent 6 }}
34 - name: {{ include "common.name" . }}
35 image: {{ include "common.repository" . }}/{{ .Values.image }}
37 {{ include "common.resources" . | indent 10 }}
42 name: {{ include "common.release" . }}-so-db-secrets
43 key: mariadb.readwrite.host
47 name: {{ include "common.release" . }}-so-db-secrets
48 key: mariadb.readwrite.port
50 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "login") | indent 10 }}
52 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "password") | indent 10 }}
53 - name: DB_ADMIN_USERNAME
54 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "login") | indent 10 }}
55 - name: DB_ADMIN_PASSWORD
56 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "password") | indent 10 }}
58 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "oof-adapter-mso-key" "key" "password") | indent 10 }}
60 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "oof-auth" "key" "login") | indent 10 }}
62 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "oof-auth" "key" "password") | indent 10 }}
63 {{ include "so.certificates.env" . | indent 8 | trim }}
66 name: {{ include "common.fullname" . }}-configmap
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 volumeMounts: {{ include "so.certificate.volumeMount" . | nindent 8 }}
72 mountPath: /app/config
74 - name: {{ include "common.fullname" . }}-logs
75 mountPath: /var/log/onap
76 {{ include "so.helpers.livenessProbe" .| indent 8 }}
77 ports: {{- include "common.containerPorts" . | nindent 12 }}
78 # Filebeat sidecar container
79 - name: {{ include "common.name" . }}-filebeat-onap
80 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
81 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
83 - name: {{ include "common.fullname" . }}-filebeat-conf
84 mountPath: /usr/share/filebeat/filebeat.yml
86 - name: {{ include "common.fullname" . }}-data-filebeat
87 mountPath: /usr/share/filebeat/data
89 mountPath: /var/log/onap/so
90 - name: {{ include "common.fullname" . }}-logs
91 mountPath: /var/log/onap
92 volumes: {{ include "so.certificate.volumes" . | nindent 6 }}
97 name: {{ include "common.fullname" . }}-app-configmap
98 - name: {{ include "common.fullname" . }}-log-conf
100 name: {{ include "common.fullname" . }}-log
101 - name: {{ include "common.fullname" . }}-filebeat-conf
103 name: {{ .Release.Name }}-so-filebeat-configmap
104 - name: {{ include "common.fullname" . }}-data-filebeat
106 - name: {{ include "common.fullname" . }}-logs
109 - name: "{{ include "common.namespace" . }}-docker-registry-key"