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