vaibhavjayas | ea9aee0 | 2018-08-31 06:22:26 +0000 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, Bell Canada |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 2 | # Copyright © 2019 Samsung Electronics |
vaibhavjayas | ea9aee0 | 2018-08-31 06:22:26 +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. |
| 15 | |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 16 | ################################################################# |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 17 | # Secrets metaconfig |
| 18 | ################################################################# |
| 19 | secrets: |
Krzysztof Opasiak | a789c1a | 2020-01-22 00:06:32 +0100 | [diff] [blame] | 20 | - uid: '{{ include "common.mariadb.secret.rootPassUID" . }}' |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 21 | type: password |
| 22 | externalSecret: '{{ tpl (default "" .Values.config.mariadbRootPasswordExternalSecret) . }}' |
| 23 | password: '{{ .Values.config.mariadbRootPassword }}' |
Krzysztof Opasiak | a789c1a | 2020-01-22 00:06:32 +0100 | [diff] [blame] | 24 | - uid: '{{ include "common.mariadb.secret.userCredentialsUID" . }}' |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 25 | type: basicAuth |
| 26 | externalSecret: '{{ tpl (default "" .Values.config.userCredentialsExternalSecret) . }}' |
| 27 | login: '{{ .Values.config.userName }}' |
| 28 | password: '{{ .Values.config.userPassword }}' |
| 29 | |
| 30 | |
| 31 | ################################################################# |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 32 | # Global configuration defaults. |
| 33 | ################################################################# |
| 34 | global: |
| 35 | nodePortPrefix: 302 |
Akansha Dua | 3fb95ef | 2019-09-04 11:47:43 +0000 | [diff] [blame] | 36 | persistence: |
| 37 | mountPath: /dockerdata-nfs |
| 38 | backup: |
| 39 | mountPath: /dockerdata-nfs/backup |
| 40 | |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 41 | repository: nexus3.onap.org:10001 |
| 42 | |
Akansha Dua | 3fb95ef | 2019-09-04 11:47:43 +0000 | [diff] [blame] | 43 | readinessRepository: oomk8s |
| 44 | readinessImage: readiness-check:2.0.2 |
| 45 | |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 46 | |
| 47 | ################################################################# |
| 48 | # Application configuration defaults. |
| 49 | ################################################################# |
| 50 | |
| 51 | #repository: mysql |
| 52 | repository: nexus3.onap.org:10001 |
| 53 | image: adfinissygroup/k8s-mariadb-galera-centos:v002 |
Sylvain Desbureaux | 524c878 | 2019-11-08 17:36:02 +0100 | [diff] [blame] | 54 | backupImage: library/mariadb:10.1.38 |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 55 | imageInit: busybox |
| 56 | pullPolicy: IfNotPresent |
| 57 | |
| 58 | # application configuration |
| 59 | config: |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 60 | # .mariadbRootPasswordExternalSecret: 'some-external-secret' |
Krzysztof Opasiak | 2628581 | 2020-04-01 22:44:44 +0200 | [diff] [blame] | 61 | # mariadbRootPassword: secretpassword |
Krzysztof Opasiak | 01c975b | 2019-12-16 17:42:38 +0100 | [diff] [blame] | 62 | # .userCredentialsExternalSecret: 'some-external-secret' |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 63 | userName: my-user |
Krzysztof Opasiak | 3ed9c94 | 2020-01-23 01:03:41 +0100 | [diff] [blame] | 64 | # userPassword: my-password |
| 65 | # mysqlDatabase: my-database |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 66 | |
| 67 | # default number of instances in the StatefulSet |
| 68 | replicaCount: 3 |
| 69 | |
| 70 | nodeSelector: {} |
| 71 | |
| 72 | affinity: {} |
| 73 | |
| 74 | # probe configuration parameters |
| 75 | liveness: |
| 76 | initialDelaySeconds: 30 |
| 77 | periodSeconds: 10 |
| 78 | timeoutSeconds: 5 |
| 79 | # necessary to disable liveness probe when setting breakpoints |
| 80 | # in debugger so K8s doesn't restart unresponsive container |
| 81 | enabled: true |
| 82 | |
| 83 | readiness: |
| 84 | initialDelaySeconds: 15 |
| 85 | periodSeconds: 10 |
yangyan | e63c921 | 2019-05-22 13:04:15 +0800 | [diff] [blame] | 86 | timeoutSeconds: 5 |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 87 | |
| 88 | ## Persist data to a persitent volume |
| 89 | persistence: |
pramod | 47b1b82 | 2018-08-28 15:41:45 +0000 | [diff] [blame] | 90 | enabled: true |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 91 | |
| 92 | ## A manually managed Persistent Volume and Claim |
| 93 | ## Requires persistence.enabled: true |
| 94 | ## If defined, PVC must be created manually before volume will be bound |
| 95 | # existingClaim: |
| 96 | volumeReclaimPolicy: Retain |
| 97 | |
| 98 | ## database data Persistent Volume Storage Class |
| 99 | ## If defined, storageClassName: <storageClass> |
| 100 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 101 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 102 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 103 | ## GKE, AWS & OpenStack) |
| 104 | ## |
| 105 | # storageClass: "-" |
Sylvain Desbureaux | 2285a28 | 2019-08-29 16:17:16 +0200 | [diff] [blame] | 106 | accessMode: ReadWriteOnce |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 107 | size: 2Gi |
pramod | 47b1b82 | 2018-08-28 15:41:45 +0000 | [diff] [blame] | 108 | mountPath: /dockerdata-nfs |
| 109 | mountSubPath: "mariadb-galera/data" |
| 110 | mysqlPath: /var/lib/mysql |
Akansha Dua | 3fb95ef | 2019-09-04 11:47:43 +0000 | [diff] [blame] | 111 | backup: |
Sylvain Desbureaux | 524c878 | 2019-11-08 17:36:02 +0100 | [diff] [blame] | 112 | mountPath: /dockerdata-nfs/backup{{- if or (or .Values.storageClassOverride .Values.persistence.storageClass) .Values.global.persistence.storageClass -}} |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 113 | |
| 114 | service: |
| 115 | internalPort: 3306 |
| 116 | name: mariadb-galera |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 117 | portName: mariadb-galera |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 118 | sstPort: 4444 |
Mike Elliott | 4c88b2d | 2018-09-13 09:32:08 -0400 | [diff] [blame] | 119 | sstPortName: sst |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 120 | replicationPort: 4567 |
| 121 | replicationName: replication |
| 122 | istPort: 4568 |
Mike Elliott | 4c88b2d | 2018-09-13 09:32:08 -0400 | [diff] [blame] | 123 | istPortName: ist |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 124 | |
| 125 | ingress: |
| 126 | enabled: false |
| 127 | |
| 128 | |
| 129 | ## Configure MariaDB-Galera with a custom my.cnf file |
| 130 | ## ref: https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/#example-of-configuration-file |
| 131 | ## |
| 132 | externalConfig: {} |
| 133 | # externalConfig: |- |
| 134 | # [mysqld] |
| 135 | # innodb_buffer_pool_size=2G |
| 136 | |
| 137 | #resources: {} |
| 138 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 139 | # choice for the user. This also increases chances charts run on environments with little |
| 140 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 141 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 142 | # |
| 143 | # Example: |
| 144 | # Configure resource requests and limits |
| 145 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 146 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 147 | # Minimum memory for production is 4 CPU cores and 8GB memory |
| 148 | resources: |
Sylvain Desbureaux | ff702c7 | 2018-11-23 14:25:57 +0100 | [diff] [blame] | 149 | small: |
| 150 | limits: |
| 151 | cpu: 2 |
| 152 | memory: 4Gi |
| 153 | requests: |
| 154 | cpu: 1 |
| 155 | memory: 2Gi |
| 156 | large: |
| 157 | limits: |
| 158 | cpu: 2 |
| 159 | memory: 4Gi |
| 160 | requests: |
| 161 | cpu: 1 |
| 162 | memory: 2Gi |
| 163 | unlimited: {} |
vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [diff] [blame] | 164 | |
| 165 | # Name for mariadb-galera cluster - should be unique accross all projects or other clusters |
| 166 | nameOverride: mariadb-galera |
| 167 | |
| 168 | # DNS name for mariadb-galera cluster - should be unique accross all projects other clusters |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 169 | #dnsnameOverride: mariadb-galera |
Akansha Dua | 3fb95ef | 2019-09-04 11:47:43 +0000 | [diff] [blame] | 170 | |
| 171 | backup: |
| 172 | enabled: false |
| 173 | cron: "00 00 * * *" |
| 174 | retentionPeriod: 3 |