vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
egernug | f400432 | 2022-06-08 10:33:44 +0100 | [diff] [blame] | 2 | # Modifications Copyright (C) 2022-23 Nordix Foundation |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 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. |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 15 | # Default values for mariadb. |
| 16 | # This is a YAML-formatted file. |
| 17 | # Declare variables to be passed into your templates. |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 18 | ################################################################# |
| 19 | # Global configuration defaults. |
| 20 | ################################################################# |
| 21 | global: |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 22 | nodePortPrefix: 302 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 23 | nodePortPrefixExt: 304 |
| 24 | repository: nexus3.onap.org:10001 |
Andreas Geissler | d518f73 | 2024-03-25 11:15:11 +0100 | [diff] [blame] | 25 | readinessImage: onap/oom/readiness:6.0.2 |
Sylvain Desbureaux | 23a38b3 | 2020-11-20 08:57:12 +0100 | [diff] [blame] | 26 | ubuntuInitRepository: docker.io |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 27 | mariadbGalera: |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 28 | # flag to enable the DB creation via mariadb-operator |
| 29 | useOperator: true |
| 30 | nameOverride: mariadb-galera |
Andreas Geissler | 576de2d | 2023-10-24 15:38:01 +0200 | [diff] [blame] | 31 | service: mariadb-galera |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 32 | servicePort: "3306" |
| 33 | migration: |
| 34 | enabled: false |
| 35 | dbHost: mariadb-galera |
| 36 | dbPort: 3306 |
| 37 | dbUser: root |
| 38 | dbPassword: secretpassword |
Sylvain Desbureaux | d055a17 | 2020-10-30 14:32:03 +0100 | [diff] [blame] | 39 | |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 40 | ################################################################# |
Krzysztof Opasiak | 2f8f4b6 | 2020-03-04 23:06:16 +0100 | [diff] [blame] | 41 | # Secrets metaconfig |
| 42 | ################################################################# |
| 43 | secrets: |
| 44 | - uid: db-root-pass |
| 45 | name: '{{ include "common.release" . }}-so-mariadb-root-pass' |
| 46 | type: password |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 47 | externalSecret: '{{ tpl (default "" .Values.db.rootPasswordExternalSecret) . }}' |
Krzysztof Opasiak | 2f8f4b6 | 2020-03-04 23:06:16 +0100 | [diff] [blame] | 48 | 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 Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 53 | externalSecret: '{{ tpl (default "" .Values.db.backupCredsExternalSecret) . }}' |
Krzysztof Opasiak | 2f8f4b6 | 2020-03-04 23:06:16 +0100 | [diff] [blame] | 54 | 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 Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 61 | - uid: db-user-creds |
| 62 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 63 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 64 | login: '{{ .Values.db.userName }}' |
| 65 | password: '{{ .Values.db.userPassword }}' |
| 66 | - uid: db-admin-creds |
| 67 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 68 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 69 | login: '{{ .Values.db.adminName }}' |
| 70 | password: '{{ .Values.db.adminPassword }}' |
| 71 | - uid: camunda-db-creds |
| 72 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 73 | externalSecret: '{{ tpl (default "" .Values.db.camunda.dbCredsExternalSecret) . }}' |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 74 | login: '{{ .Values.db.camunda.userName }}' |
| 75 | password: '{{ .Values.db.camunda.password }}' |
| 76 | - uid: request-db-creds |
| 77 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 78 | externalSecret: '{{ tpl (default "" .Values.db.request.dbCredsExternalSecret) . }}' |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 79 | login: '{{ .Values.db.request.userName }}' |
| 80 | password: '{{ .Values.db.request.password }}' |
| 81 | - uid: catalog-db-creds |
| 82 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 83 | externalSecret: '{{ tpl (default "" .Values.db.catalog.dbCredsExternalSecret) . }}' |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 84 | login: '{{ .Values.db.catalog.userName }}' |
| 85 | password: '{{ .Values.db.catalog.password }}' |
rope252 | 4df5519 | 2020-08-24 13:55:58 +0100 | [diff] [blame] | 86 | - 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 }}' |
egernug | f400432 | 2022-06-08 10:33:44 +0100 | [diff] [blame] | 91 | - 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 Opasiak | 2f8f4b6 | 2020-03-04 23:06:16 +0100 | [diff] [blame] | 96 | |
| 97 | ################################################################# |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 98 | # Application configuration defaults. |
| 99 | ################################################################# |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 100 | # application image |
| 101 | repository: nexus3.onap.org:10001 |
Ramesh Parthasarathy | a4aaf36 | 2019-03-13 20:59:51 +0000 | [diff] [blame] | 102 | image: mariadb:10.1.38 |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 103 | pullPolicy: Always |
Mandeep Khinda | 0fe4eb7 | 2018-04-20 21:02:45 +0000 | [diff] [blame] | 104 | ubuntuInitImage: oomk8s/ubuntu-init:2.0.0 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 105 | |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 106 | # Local mariadb galera instance default name |
| 107 | mariadb-galera: |
| 108 | nameOverride: so-mariadb-galera |
| 109 | service: |
| 110 | internalPort: 3306 |
| 111 | mariadbOperator: |
| 112 | galera: |
| 113 | enabled: false |
| 114 | |
Krzysztof Opasiak | 2f8f4b6 | 2020-03-04 23:06:16 +0100 | [diff] [blame] | 115 | # db config |
| 116 | db: |
| 117 | rootPassword: secretpassword |
| 118 | # rootPasswordExternalSecret: some secret |
| 119 | backupPassword: secretpassword |
| 120 | backupUser: root |
| 121 | # backupCredsExternalSecret: some secret |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 122 | 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 |
rope252 | 4df5519 | 2020-08-24 13:55:58 +0100 | [diff] [blame] | 140 | nfvo: |
| 141 | userName: nfvouser |
| 142 | # dbCredsExternalSecret: some secret |
egernug | f400432 | 2022-06-08 10:33:44 +0100 | [diff] [blame] | 143 | cnfm: |
| 144 | userName: cnfmuser |
| 145 | # dbCredsExternalSecret: some secret |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 146 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 147 | # application configuration |
| 148 | config: |
Mandeep Khinda | 0fe4eb7 | 2018-04-20 21:02:45 +0000 | [diff] [blame] | 149 | # gerrit branch where the latest heat code is checked in |
Ramesh Parthasarathy | bef9c7b | 2019-03-01 21:21:20 +0000 | [diff] [blame] | 150 | gerritBranch: master |
Mandeep Khinda | 0fe4eb7 | 2018-04-20 21:02:45 +0000 | [diff] [blame] | 151 | # gerrit project where the latest heat code is checked in |
| 152 | gerritProject: http://gerrit.onap.org/r/so/docker-config.git |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 153 | # default number of instances |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 154 | nodeSelector: {} |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 155 | affinity: {} |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 156 | |
| 157 | ingress: |
| 158 | enabled: false |
| 159 | |
| 160 | # Resource Limit flavor |
| 161 | flavor: small |
| 162 | |
| 163 | resources: |
| 164 | small: |
| 165 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 166 | cpu: "2" |
| 167 | memory: "4Gi" |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 168 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 169 | cpu: "1" |
| 170 | memory: "2Gi" |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 171 | large: |
| 172 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 173 | cpu: "4" |
| 174 | memory: "8Gi" |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 175 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 176 | cpu: "2" |
| 177 | memory: "4Gi" |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 178 | unlimited: {} |
| 179 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 180 | persistence: |
| 181 | enabled: true |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 182 | ## 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 Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 187 | ## 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 Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 197 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 198 | mountPath: /dockerdata-nfs |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 199 | mountSubPath: so/migration |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 200 | |
| 201 | #Pods Service Account |
| 202 | serviceAccount: |
| 203 | nameOverride: so-mariadb |
| 204 | roles: |
| 205 | - read |
Andreas Geissler | 17be962 | 2022-04-29 13:33:02 +0200 | [diff] [blame] | 206 | |
| 207 | wait_for_job_container: |
| 208 | containers: |
| 209 | - '{{ include "common.name" . }}-config' |
Andreas Geissler | 060bc37 | 2024-03-11 17:26:53 +0100 | [diff] [blame] | 210 | |
| 211 | readinessCheck: |
| 212 | wait_for_global_operator: |
| 213 | pods: |
| 214 | - '{{ .Values.global.mariadbGalera.nameOverride }}-0' |
| 215 | wait_for_local_operator: |
| 216 | pods: |
| 217 | - '{{ index .Values "mariadb-galera" "nameOverride" }}-0' |
| 218 | wait_for_global: |
| 219 | apps: |
| 220 | - '{{ include "common.mariadbAppName" . }}' |
| 221 | wait_for_local: |
| 222 | apps: |
| 223 | - '{{ include "common.mariadbAppName" . }}' |