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