blob: bf546a27762b364bd4600756b7642d8c98b8e029 [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 Geissler17be9622022-04-29 13:33:02 +020025 readinessImage: onap/oom/readiness:4.1.0
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
seshukm0df1f8e2020-08-17 21:45:49 +053029 serviceName: mariadb-galera
30 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:
40 - *mariadbName
41
jmacc4f04d32018-10-12 18:24:24 +000042#################################################################
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010043# Secrets metaconfig
44#################################################################
45secrets:
46 - uid: db-root-pass
47 name: '{{ include "common.release" . }}-so-mariadb-root-pass'
48 type: password
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010049 externalSecret: '{{ tpl (default "" .Values.db.rootPasswordExternalSecret) . }}'
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010050 password: '{{ .Values.db.rootPassword }}'
51 passwordPolicy: required
52 - uid: db-backup-creds
53 name: '{{ include "common.release" . }}-so-mariadb-backup-creds'
54 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010055 externalSecret: '{{ tpl (default "" .Values.db.backupCredsExternalSecret) . }}'
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010056 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
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010063 - uid: db-user-creds
64 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010065 externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010066 login: '{{ .Values.db.userName }}'
67 password: '{{ .Values.db.userPassword }}'
68 - uid: db-admin-creds
69 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010070 externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010071 login: '{{ .Values.db.adminName }}'
72 password: '{{ .Values.db.adminPassword }}'
73 - uid: camunda-db-creds
74 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010075 externalSecret: '{{ tpl (default "" .Values.db.camunda.dbCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010076 login: '{{ .Values.db.camunda.userName }}'
77 password: '{{ .Values.db.camunda.password }}'
78 - uid: request-db-creds
79 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010080 externalSecret: '{{ tpl (default "" .Values.db.request.dbCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010081 login: '{{ .Values.db.request.userName }}'
82 password: '{{ .Values.db.request.password }}'
83 - uid: catalog-db-creds
84 type: basicAuth
Krzysztof Opasiakc53ff542020-03-28 02:14:37 +010085 externalSecret: '{{ tpl (default "" .Values.db.catalog.dbCredsExternalSecret) . }}'
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +010086 login: '{{ .Values.db.catalog.userName }}'
87 password: '{{ .Values.db.catalog.password }}'
rope2524df55192020-08-24 13:55:58 +010088 - 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 }}'
egernugf4004322022-06-08 10:33:44 +010093 - 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 }}'
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +010098
99#################################################################
jmacc4f04d32018-10-12 18:24:24 +0000100# Application configuration defaults.
101#################################################################
Mike Elliottd32d36e2018-02-12 15:54:03 -0500102# application image
103repository: nexus3.onap.org:10001
Ramesh Parthasarathya4aaf362019-03-13 20:59:51 +0000104image: mariadb:10.1.38
Mike Elliottd32d36e2018-02-12 15:54:03 -0500105pullPolicy: Always
Mandeep Khinda0fe4eb72018-04-20 21:02:45 +0000106ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
jmacc4f04d32018-10-12 18:24:24 +0000107
Krzysztof Opasiak2f8f4b62020-03-04 23:06:16 +0100108# db config
109db:
110 rootPassword: secretpassword
111 # rootPasswordExternalSecret: some secret
112 backupPassword: secretpassword
113 backupUser: root
114 # backupCredsExternalSecret: some secret
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +0100115 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
rope2524df55192020-08-24 13:55:58 +0100133 nfvo:
134 userName: nfvouser
135 # dbCredsExternalSecret: some secret
egernugf4004322022-06-08 10:33:44 +0100136 cnfm:
137 userName: cnfmuser
138 # dbCredsExternalSecret: some secret
Krzysztof Opasiakf68b7282020-03-25 23:22:46 +0100139
Mike Elliottd32d36e2018-02-12 15:54:03 -0500140# application configuration
141config:
Mandeep Khinda0fe4eb72018-04-20 21:02:45 +0000142 # gerrit branch where the latest heat code is checked in
Ramesh Parthasarathybef9c7b2019-03-01 21:21:20 +0000143 gerritBranch: master
Mandeep Khinda0fe4eb72018-04-20 21:02:45 +0000144 # gerrit project where the latest heat code is checked in
145 gerritProject: http://gerrit.onap.org/r/so/docker-config.git
Mike Elliottd32d36e2018-02-12 15:54:03 -0500146# default number of instances
Mike Elliottd32d36e2018-02-12 15:54:03 -0500147nodeSelector: {}
Mike Elliottd32d36e2018-02-12 15:54:03 -0500148affinity: {}
Mahendra Raghuwanshi72b69c12019-04-04 10:43:25 +0000149
150ingress:
151 enabled: false
152
153# Resource Limit flavor
154flavor: small
155
156resources:
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
Mike Elliottd32d36e2018-02-12 15:54:03 -0500173persistence:
174 enabled: true
Mike Elliottd32d36e2018-02-12 15:54:03 -0500175 ## 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
Mike Elliottd32d36e2018-02-12 15:54:03 -0500180 ## 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
Mahendra Raghuwanshi72b69c12019-04-04 10:43:25 +0000190
Mike Elliottd32d36e2018-02-12 15:54:03 -0500191 mountPath: /dockerdata-nfs
Mahendra Raghuwanshi72b69c12019-04-04 10:43:25 +0000192 mountSubPath: so/migration
farida azmy87f46222021-04-06 15:25:15 +0200193
194#Pods Service Account
195serviceAccount:
196 nameOverride: so-mariadb
197 roles:
198 - read
Andreas Geissler17be9622022-04-29 13:33:02 +0200199
200wait_for_job_container:
201 containers:
202 - '{{ include "common.name" . }}-config'