Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / so / components / so-mariadb / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright (C) 2022-23 Nordix Foundation
3 #
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
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 # Default values for mariadb.
16 # This is a YAML-formatted file.
17 # Declare variables to be passed into your templates.
18 #################################################################
19 # Global configuration defaults.
20 #################################################################
21 global:
22   nodePortPrefix: 302
23   nodePortPrefixExt: 304
24   repository: nexus3.onap.org:10001
25   readinessImage: onap/oom/readiness:6.0.3
26   ubuntuInitRepository: docker.io
27   mariadbGalera:
28     # flag to enable the DB creation via mariadb-operator
29     useOperator: true
30     nameOverride: mariadb-galera
31     service: mariadb-galera
32     servicePort: "3306"
33   migration:
34     enabled: false
35     dbHost: mariadb-galera
36     dbPort: 3306
37     dbUser: root
38     dbPassword: secretpassword
39
40 #################################################################
41 # Secrets metaconfig
42 #################################################################
43 secrets:
44   - uid: db-root-pass
45     name: '{{ include "common.release" . }}-so-mariadb-root-pass'
46     type: password
47     externalSecret: '{{ tpl (default "" .Values.db.rootPasswordExternalSecret) . }}'
48     password: '{{ .Values.db.rootPassword }}'
49     passwordPolicy: required
50   - uid: db-backup-creds
51     name: '{{ include "common.release" . }}-so-mariadb-backup-creds'
52     type: basicAuth
53     externalSecret: '{{ tpl (default "" .Values.db.backupCredsExternalSecret) . }}'
54     login: '{{ .Values.db.backupUser }}'
55     password: '{{ .Values.db.backupPassword }}'
56     passwordPolicy: required
57     annotations:
58       helm.sh/hook: pre-upgrade,pre-install
59       helm.sh/hook-weight: "0"
60       helm.sh/hook-delete-policy: before-hook-creation
61   - uid: db-user-creds
62     type: basicAuth
63     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
64     login: '{{ .Values.db.userName }}'
65     password: '{{ .Values.db.userPassword }}'
66   - uid: db-admin-creds
67     type: basicAuth
68     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
69     login: '{{ .Values.db.adminName }}'
70     password: '{{ .Values.db.adminPassword }}'
71   - uid: camunda-db-creds
72     type: basicAuth
73     externalSecret: '{{ tpl (default "" .Values.db.camunda.dbCredsExternalSecret) . }}'
74     login: '{{ .Values.db.camunda.userName }}'
75     password: '{{ .Values.db.camunda.password }}'
76   - uid: request-db-creds
77     type: basicAuth
78     externalSecret: '{{ tpl (default "" .Values.db.request.dbCredsExternalSecret) . }}'
79     login: '{{ .Values.db.request.userName }}'
80     password: '{{ .Values.db.request.password }}'
81   - uid: catalog-db-creds
82     type: basicAuth
83     externalSecret: '{{ tpl (default "" .Values.db.catalog.dbCredsExternalSecret) . }}'
84     login: '{{ .Values.db.catalog.userName }}'
85     password: '{{ .Values.db.catalog.password }}'
86   - uid: nfvo-db-creds
87     type: basicAuth
88     externalSecret: '{{ tpl (default "" .Values.db.nfvo.dbCredsExternalSecret) . }}'
89     login: '{{ .Values.db.nfvo.userName }}'
90     password: '{{ .Values.db.nfvo.password }}'
91   - uid: cnfm-db-creds
92     type: basicAuth
93     externalSecret: '{{ tpl (default "" .Values.db.cnfm.dbCredsExternalSecret) . }}'
94     login: '{{ .Values.db.cnfm.userName }}'
95     password: '{{ .Values.db.cnfm.password }}'
96
97 #################################################################
98 # Application configuration defaults.
99 #################################################################
100 # application image
101 repository: nexus3.onap.org:10001
102 image: mariadb:10.1.38
103 pullPolicy: Always
104 ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
105
106 # Local mariadb galera instance default name
107 mariadb-galera:
108   nameOverride: so-mariadb-galera
109   service:
110     internalPort: 3306
111   mariadbOperator:
112     galera:
113       enabled: false
114
115 # db config
116 db:
117   rootPassword: secretpassword
118   # rootPasswordExternalSecret: some secret
119   backupPassword: secretpassword
120   backupUser: root
121   # backupCredsExternalSecret: some secret
122   userName: so_user
123   userPassword: so_User123
124   # userCredsExternalSecret: some secret
125   adminName: so_admin
126   adminPassword: so_Admin123
127   # adminCredsExternalSecret: some secret
128   camunda:
129     userName: camundauser
130     password: camunda123
131     # dbCredsExternalSecret: some secret
132   request:
133     userName: requestuser
134     password: request123
135     # dbCredsExternalSecret: some secret
136   catalog:
137     userName: cataloguser
138     password: catalog123
139     # dbCredsExternalSecret: some secret
140   nfvo:
141     userName: nfvouser
142     # dbCredsExternalSecret: some secret
143   cnfm:
144     userName: cnfmuser
145     # dbCredsExternalSecret: some secret
146
147 # application configuration
148 config:
149   # gerrit branch where the latest heat code is checked in
150   gerritBranch: master
151   # gerrit project where the latest heat code is checked in
152   gerritProject: http://gerrit.onap.org/r/so/docker-config.git
153 # default number of instances
154 nodeSelector: {}
155 affinity: {}
156
157 ingress:
158   enabled: false
159
160 # Resource Limit flavor
161 flavor: small
162
163 resources:
164   small:
165     limits:
166       cpu: "2"
167       memory: "4Gi"
168     requests:
169       cpu: "1"
170       memory: "2Gi"
171   large:
172     limits:
173       cpu: "4"
174       memory: "8Gi"
175     requests:
176       cpu: "2"
177       memory: "4Gi"
178   unlimited: {}
179
180 persistence:
181   enabled: true
182   ## A manually managed Persistent Volume and Claim
183   ## Requires persistence.enabled: true
184   ## If defined, PVC must be created manually before volume will be bound
185   # existingClaim:
186   volumeReclaimPolicy: Retain
187   ## database data Persistent Volume Storage Class
188   ## If defined, storageClassName: <storageClass>
189   ## If set to "-", storageClassName: "", which disables dynamic provisioning
190   ## If undefined (the default) or set to null, no storageClassName spec is
191   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
192   ##   GKE, AWS & OpenStack)
193   ##
194   # storageClass: "-"
195   accessMode: ReadWriteMany
196   size: 2Gi
197
198   mountPath: /dockerdata-nfs
199   mountSubPath: so/migration
200
201 #Pods Service Account
202 serviceAccount:
203   nameOverride: so-mariadb
204   roles:
205     - read
206
207 wait_for_job_container:
208   containers:
209     - '{{ include "common.name" . }}-config'
210
211 readinessCheck:
212   wait_for:
213     services:
214       - '{{ include "common.mariadbService" . }}'