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 | 17be962 | 2022-04-29 13:33:02 +0200 | [diff] [blame] | 25 | readinessImage: onap/oom/readiness:4.1.0 |
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: |
Sylvain Desbureaux | d055a17 | 2020-10-30 14:32:03 +0100 | [diff] [blame] | 28 | nameOverride: &mariadbName mariadb-galera |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 29 | 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 Desbureaux | d055a17 | 2020-10-30 14:32:03 +0100 | [diff] [blame] | 37 | |
| 38 | readinessCheck: |
| 39 | wait_for: |
| 40 | - *mariadbName |
| 41 | |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 42 | ################################################################# |
Krzysztof Opasiak | 2f8f4b6 | 2020-03-04 23:06:16 +0100 | [diff] [blame] | 43 | # Secrets metaconfig |
| 44 | ################################################################# |
| 45 | secrets: |
| 46 | - uid: db-root-pass |
| 47 | name: '{{ include "common.release" . }}-so-mariadb-root-pass' |
| 48 | type: password |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 49 | externalSecret: '{{ tpl (default "" .Values.db.rootPasswordExternalSecret) . }}' |
Krzysztof Opasiak | 2f8f4b6 | 2020-03-04 23:06:16 +0100 | [diff] [blame] | 50 | 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 Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 55 | externalSecret: '{{ tpl (default "" .Values.db.backupCredsExternalSecret) . }}' |
Krzysztof Opasiak | 2f8f4b6 | 2020-03-04 23:06:16 +0100 | [diff] [blame] | 56 | 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 Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 63 | - uid: db-user-creds |
| 64 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 65 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 66 | login: '{{ .Values.db.userName }}' |
| 67 | password: '{{ .Values.db.userPassword }}' |
| 68 | - uid: db-admin-creds |
| 69 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 70 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 71 | login: '{{ .Values.db.adminName }}' |
| 72 | password: '{{ .Values.db.adminPassword }}' |
| 73 | - uid: camunda-db-creds |
| 74 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 75 | externalSecret: '{{ tpl (default "" .Values.db.camunda.dbCredsExternalSecret) . }}' |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 76 | login: '{{ .Values.db.camunda.userName }}' |
| 77 | password: '{{ .Values.db.camunda.password }}' |
| 78 | - uid: request-db-creds |
| 79 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 80 | externalSecret: '{{ tpl (default "" .Values.db.request.dbCredsExternalSecret) . }}' |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 81 | login: '{{ .Values.db.request.userName }}' |
| 82 | password: '{{ .Values.db.request.password }}' |
| 83 | - uid: catalog-db-creds |
| 84 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 85 | externalSecret: '{{ tpl (default "" .Values.db.catalog.dbCredsExternalSecret) . }}' |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 86 | login: '{{ .Values.db.catalog.userName }}' |
| 87 | password: '{{ .Values.db.catalog.password }}' |
rope252 | 4df5519 | 2020-08-24 13:55:58 +0100 | [diff] [blame] | 88 | - 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 }}' |
egernug | f400432 | 2022-06-08 10:33:44 +0100 | [diff] [blame] | 93 | - 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 Opasiak | 2f8f4b6 | 2020-03-04 23:06:16 +0100 | [diff] [blame] | 98 | |
| 99 | ################################################################# |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 100 | # Application configuration defaults. |
| 101 | ################################################################# |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 102 | # application image |
| 103 | repository: nexus3.onap.org:10001 |
Ramesh Parthasarathy | a4aaf36 | 2019-03-13 20:59:51 +0000 | [diff] [blame] | 104 | image: mariadb:10.1.38 |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 105 | pullPolicy: Always |
Mandeep Khinda | 0fe4eb7 | 2018-04-20 21:02:45 +0000 | [diff] [blame] | 106 | ubuntuInitImage: oomk8s/ubuntu-init:2.0.0 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 107 | |
Krzysztof Opasiak | 2f8f4b6 | 2020-03-04 23:06:16 +0100 | [diff] [blame] | 108 | # db config |
| 109 | db: |
| 110 | rootPassword: secretpassword |
| 111 | # rootPasswordExternalSecret: some secret |
| 112 | backupPassword: secretpassword |
| 113 | backupUser: root |
| 114 | # backupCredsExternalSecret: some secret |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 115 | 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 |
rope252 | 4df5519 | 2020-08-24 13:55:58 +0100 | [diff] [blame] | 133 | nfvo: |
| 134 | userName: nfvouser |
| 135 | # dbCredsExternalSecret: some secret |
egernug | f400432 | 2022-06-08 10:33:44 +0100 | [diff] [blame] | 136 | cnfm: |
| 137 | userName: cnfmuser |
| 138 | # dbCredsExternalSecret: some secret |
Krzysztof Opasiak | f68b728 | 2020-03-25 23:22:46 +0100 | [diff] [blame] | 139 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 140 | # application configuration |
| 141 | config: |
Mandeep Khinda | 0fe4eb7 | 2018-04-20 21:02:45 +0000 | [diff] [blame] | 142 | # gerrit branch where the latest heat code is checked in |
Ramesh Parthasarathy | bef9c7b | 2019-03-01 21:21:20 +0000 | [diff] [blame] | 143 | gerritBranch: master |
Mandeep Khinda | 0fe4eb7 | 2018-04-20 21:02:45 +0000 | [diff] [blame] | 144 | # gerrit project where the latest heat code is checked in |
| 145 | gerritProject: http://gerrit.onap.org/r/so/docker-config.git |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 146 | # default number of instances |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 147 | nodeSelector: {} |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 148 | affinity: {} |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 149 | |
| 150 | ingress: |
| 151 | enabled: false |
| 152 | |
| 153 | # Resource Limit flavor |
| 154 | flavor: small |
| 155 | |
| 156 | resources: |
| 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 Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 173 | persistence: |
| 174 | enabled: true |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 175 | ## 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 Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 180 | ## 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 Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 190 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 191 | mountPath: /dockerdata-nfs |
Mahendra Raghuwanshi | 72b69c1 | 2019-04-04 10:43:25 +0000 | [diff] [blame] | 192 | mountSubPath: so/migration |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 193 | |
| 194 | #Pods Service Account |
| 195 | serviceAccount: |
| 196 | nameOverride: so-mariadb |
| 197 | roles: |
| 198 | - read |
Andreas Geissler | 17be962 | 2022-04-29 13:33:02 +0200 | [diff] [blame] | 199 | |
| 200 | wait_for_job_container: |
| 201 | containers: |
| 202 | - '{{ include "common.name" . }}-config' |