blob: 8b29e622fb095802ae72421585dbfc57cc08fb3d [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
egernugf4004322022-06-08 10:33:44 +01002# Modifications Copyright (C) 2022-23 Nordix Foundation
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00003#
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.
Mike Elliottd32d36e2018-02-12 15:54:03 -050015# Default values for mariadb.
16# This is a YAML-formatted file.
17# Declare variables to be passed into your templates.
jmacc4f04d32018-10-12 18:24:24 +000018#################################################################
19# Global configuration defaults.
20#################################################################
21global:
Mike Elliottd32d36e2018-02-12 15:54:03 -050022 nodePortPrefix: 302
jmacc4f04d32018-10-12 18:24:24 +000023 nodePortPrefixExt: 304
24 repository: nexus3.onap.org:10001
Andreas Geisslercfd84342023-08-16 17:18:49 +020025 readinessImage: onap/oom/readiness:5.0.1
Sylvain Desbureaux23a38b32020-11-20 08:57:12 +010026 ubuntuInitRepository: docker.io
seshukm0df1f8e2020-08-17 21:45:49 +053027 mariadbGalera:
Andreas Geissler2c1ba292024-01-10 22:20:05 +010028 # flag to enable the DB creation via mariadb-operator
29 useOperator: true
30 nameOverride: mariadb-galera
Andreas Geissler576de2d2023-10-24 15:38:01 +020031 service: mariadb-galera
seshukm0df1f8e2020-08-17 21:45:49 +053032 servicePort: "3306"
33 migration:
34 enabled: false
35 dbHost: mariadb-galera
36 dbPort: 3306
37 dbUser: root
38 dbPassword: secretpassword
Sylvain Desbureauxd055a172020-10-30 14:32:03 +010039
jmacc4f04d32018-10-12 18:24:24 +000040#################################################################
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010041# Secrets metaconfig
42#################################################################
43secrets:
44 - uid: db-root-pass
45 name: '{{ include "common.release" . }}-so-mariadb-root-pass'
46 type: password
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010047 externalSecret: '{{ tpl (default "" .Values.db.rootPasswordExternalSecret) . }}'
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010048 password: '{{ .Values.db.rootPassword }}'
49 passwordPolicy: required
50 - uid: db-backup-creds
51 name: '{{ include "common.release" . }}-so-mariadb-backup-creds'
52 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010053 externalSecret: '{{ tpl (default "" .Values.db.backupCredsExternalSecret) . }}'
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010054 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
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010061 - uid: db-user-creds
62 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010063 externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010064 login: '{{ .Values.db.userName }}'
65 password: '{{ .Values.db.userPassword }}'
66 - uid: db-admin-creds
67 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010068 externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010069 login: '{{ .Values.db.adminName }}'
70 password: '{{ .Values.db.adminPassword }}'
71 - uid: camunda-db-creds
72 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010073 externalSecret: '{{ tpl (default "" .Values.db.camunda.dbCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010074 login: '{{ .Values.db.camunda.userName }}'
75 password: '{{ .Values.db.camunda.password }}'
76 - uid: request-db-creds
77 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010078 externalSecret: '{{ tpl (default "" .Values.db.request.dbCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010079 login: '{{ .Values.db.request.userName }}'
80 password: '{{ .Values.db.request.password }}'
81 - uid: catalog-db-creds
82 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010083 externalSecret: '{{ tpl (default "" .Values.db.catalog.dbCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010084 login: '{{ .Values.db.catalog.userName }}'
85 password: '{{ .Values.db.catalog.password }}'
rope2524df55192020-08-24 13:55:58 +010086 - 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 }}'
egernugf4004322022-06-08 10:33:44 +010091 - 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 }}'
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010096
97#################################################################
jmacc4f04d32018-10-12 18:24:24 +000098# Application configuration defaults.
99#################################################################
Mike Elliottd32d36e2018-02-12 15:54:03 -0500100# application image
101repository: nexus3.onap.org:10001
Ramesh Parthasarathya4aaf362019-03-13 20:59:51 +0000102image: mariadb:10.1.38
Mike Elliottd32d36e2018-02-12 15:54:03 -0500103pullPolicy: Always
Mandeep Khinda0fe4eb72018-04-20 21:02:45 +0000104ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
jmacc4f04d32018-10-12 18:24:24 +0000105
Andreas Geissler2c1ba292024-01-10 22:20:05 +0100106# Local mariadb galera instance default name
107mariadb-galera:
108 nameOverride: so-mariadb-galera
109 service:
110 internalPort: 3306
111 mariadbOperator:
112 galera:
113 enabled: false
114
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +0100115# db config
116db:
117 rootPassword: secretpassword
118 # rootPasswordExternalSecret: some secret
119 backupPassword: secretpassword
120 backupUser: root
121 # backupCredsExternalSecret: some secret
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +0100122 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
rope2524df55192020-08-24 13:55:58 +0100140 nfvo:
141 userName: nfvouser
142 # dbCredsExternalSecret: some secret
egernugf4004322022-06-08 10:33:44 +0100143 cnfm:
144 userName: cnfmuser
145 # dbCredsExternalSecret: some secret
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +0100146
Mike Elliottd32d36e2018-02-12 15:54:03 -0500147# application configuration
148config:
Mandeep Khinda0fe4eb72018-04-20 21:02:45 +0000149 # gerrit branch where the latest heat code is checked in
Ramesh Parthasarathybef9c7b2019-03-01 21:21:20 +0000150 gerritBranch: master
Mandeep Khinda0fe4eb72018-04-20 21:02:45 +0000151 # gerrit project where the latest heat code is checked in
152 gerritProject: http://gerrit.onap.org/r/so/docker-config.git
Mike Elliottd32d36e2018-02-12 15:54:03 -0500153# default number of instances
Mike Elliottd32d36e2018-02-12 15:54:03 -0500154nodeSelector: {}
Mike Elliottd32d36e2018-02-12 15:54:03 -0500155affinity: {}
Mahendra Raghuwanshi72b69c12019-04-04 10:43:25 +0000156
157ingress:
158 enabled: false
159
160# Resource Limit flavor
161flavor: small
162
163resources:
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
Mike Elliottd32d36e2018-02-12 15:54:03 -0500180persistence:
181 enabled: true
Mike Elliottd32d36e2018-02-12 15:54:03 -0500182 ## 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
Mike Elliottd32d36e2018-02-12 15:54:03 -0500187 ## 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
Mahendra Raghuwanshi72b69c12019-04-04 10:43:25 +0000197
Mike Elliottd32d36e2018-02-12 15:54:03 -0500198 mountPath: /dockerdata-nfs
Mahendra Raghuwanshi72b69c12019-04-04 10:43:25 +0000199 mountSubPath: so/migration
farida azmy87f46222021-04-06 15:25:15 +0200200
201#Pods Service Account
202serviceAccount:
203 nameOverride: so-mariadb
204 roles:
205 - read
Andreas Geissler17be9622022-04-29 13:33:02 +0200206
207wait_for_job_container:
208 containers:
209 - '{{ include "common.name" . }}-config'