blob: 85336813e5dd1983d3981960d2439f90e86fb156 [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:
Sylvain Desbureauxd055a172020-10-30 14:32:03 +010028 nameOverride: &mariadbName mariadb-galera
Andreas Geisslercfd84342023-08-16 17:18:49 +020029 service: mariadb-galera-primary
seshukm0df1f8e2020-08-17 21:45:49 +053030 servicePort: "3306"
31 migration:
32 enabled: false
33 dbHost: mariadb-galera
34 dbPort: 3306
35 dbUser: root
36 dbPassword: secretpassword
Sylvain Desbureauxd055a172020-10-30 14:32:03 +010037
38readinessCheck:
39 wait_for:
Andreas Geisslercfd84342023-08-16 17:18:49 +020040 apps:
41 - *mariadbName
Sylvain Desbureauxd055a172020-10-30 14:32:03 +010042
jmacc4f04d32018-10-12 18:24:24 +000043#################################################################
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010044# Secrets metaconfig
45#################################################################
46secrets:
47 - uid: db-root-pass
48 name: '{{ include "common.release" . }}-so-mariadb-root-pass'
49 type: password
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010050 externalSecret: '{{ tpl (default "" .Values.db.rootPasswordExternalSecret) . }}'
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010051 password: '{{ .Values.db.rootPassword }}'
52 passwordPolicy: required
53 - uid: db-backup-creds
54 name: '{{ include "common.release" . }}-so-mariadb-backup-creds'
55 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010056 externalSecret: '{{ tpl (default "" .Values.db.backupCredsExternalSecret) . }}'
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010057 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
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010064 - uid: db-user-creds
65 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010066 externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010067 login: '{{ .Values.db.userName }}'
68 password: '{{ .Values.db.userPassword }}'
69 - uid: db-admin-creds
70 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010071 externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010072 login: '{{ .Values.db.adminName }}'
73 password: '{{ .Values.db.adminPassword }}'
74 - uid: camunda-db-creds
75 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010076 externalSecret: '{{ tpl (default "" .Values.db.camunda.dbCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010077 login: '{{ .Values.db.camunda.userName }}'
78 password: '{{ .Values.db.camunda.password }}'
79 - uid: request-db-creds
80 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010081 externalSecret: '{{ tpl (default "" .Values.db.request.dbCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010082 login: '{{ .Values.db.request.userName }}'
83 password: '{{ .Values.db.request.password }}'
84 - uid: catalog-db-creds
85 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010086 externalSecret: '{{ tpl (default "" .Values.db.catalog.dbCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010087 login: '{{ .Values.db.catalog.userName }}'
88 password: '{{ .Values.db.catalog.password }}'
rope2524df55192020-08-24 13:55:58 +010089 - 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 }}'
egernugf4004322022-06-08 10:33:44 +010094 - 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 }}'
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010099
100#################################################################
jmacc4f04d32018-10-12 18:24:24 +0000101# Application configuration defaults.
102#################################################################
Mike Elliottd32d36e2018-02-12 15:54:03 -0500103# application image
104repository: nexus3.onap.org:10001
Ramesh Parthasarathya4aaf362019-03-13 20:59:51 +0000105image: mariadb:10.1.38
Mike Elliottd32d36e2018-02-12 15:54:03 -0500106pullPolicy: Always
Mandeep Khinda0fe4eb72018-04-20 21:02:45 +0000107ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
jmacc4f04d32018-10-12 18:24:24 +0000108
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +0100109# db config
110db:
111 rootPassword: secretpassword
112 # rootPasswordExternalSecret: some secret
113 backupPassword: secretpassword
114 backupUser: root
115 # backupCredsExternalSecret: some secret
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +0100116 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
rope2524df55192020-08-24 13:55:58 +0100134 nfvo:
135 userName: nfvouser
136 # dbCredsExternalSecret: some secret
egernugf4004322022-06-08 10:33:44 +0100137 cnfm:
138 userName: cnfmuser
139 # dbCredsExternalSecret: some secret
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +0100140
Mike Elliottd32d36e2018-02-12 15:54:03 -0500141# application configuration
142config:
Mandeep Khinda0fe4eb72018-04-20 21:02:45 +0000143 # gerrit branch where the latest heat code is checked in
Ramesh Parthasarathybef9c7b2019-03-01 21:21:20 +0000144 gerritBranch: master
Mandeep Khinda0fe4eb72018-04-20 21:02:45 +0000145 # gerrit project where the latest heat code is checked in
146 gerritProject: http://gerrit.onap.org/r/so/docker-config.git
Mike Elliottd32d36e2018-02-12 15:54:03 -0500147# default number of instances
Mike Elliottd32d36e2018-02-12 15:54:03 -0500148nodeSelector: {}
Mike Elliottd32d36e2018-02-12 15:54:03 -0500149affinity: {}
Mahendra Raghuwanshi72b69c12019-04-04 10:43:25 +0000150
151ingress:
152 enabled: false
153
154# Resource Limit flavor
155flavor: small
156
157resources:
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
Mike Elliottd32d36e2018-02-12 15:54:03 -0500174persistence:
175 enabled: true
Mike Elliottd32d36e2018-02-12 15:54:03 -0500176 ## 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
Mike Elliottd32d36e2018-02-12 15:54:03 -0500181 ## 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
Mahendra Raghuwanshi72b69c12019-04-04 10:43:25 +0000191
Mike Elliottd32d36e2018-02-12 15:54:03 -0500192 mountPath: /dockerdata-nfs
Mahendra Raghuwanshi72b69c12019-04-04 10:43:25 +0000193 mountSubPath: so/migration
farida azmy87f46222021-04-06 15:25:15 +0200194
195#Pods Service Account
196serviceAccount:
197 nameOverride: so-mariadb
198 roles:
199 - read
Andreas Geissler17be9622022-04-29 13:33:02 +0200200
201wait_for_job_container:
202 containers:
203 - '{{ include "common.name" . }}-config'