1 # Copyright © 2018 Amdocs, Bell Canada
2 # Copyright © 2019 Samsung Electronics
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 #################################################################
18 #################################################################
20 - uid: '{{ include "common.mariadb.secret.rootPassUID" . }}'
22 externalSecret: '{{ tpl (default "" .Values.config.mariadbRootPasswordExternalSecret) . }}'
23 password: '{{ .Values.config.mariadbRootPassword }}'
24 - uid: '{{ include "common.mariadb.secret.userCredentialsUID" . }}'
26 externalSecret: '{{ tpl (default "" .Values.config.userCredentialsExternalSecret) . }}'
27 login: '{{ .Values.config.userName }}'
28 password: '{{ .Values.config.userPassword }}'
31 #################################################################
32 # Global configuration defaults.
33 #################################################################
37 mountPath: /dockerdata-nfs
39 mountPath: /dockerdata-nfs/backup
41 repository: nexus3.onap.org:10001
43 readinessRepository: oomk8s
44 readinessImage: readiness-check:2.0.2
47 #################################################################
48 # Application configuration defaults.
49 #################################################################
52 repository: nexus3.onap.org:10001
53 image: adfinissygroup/k8s-mariadb-galera-centos:v002
54 backupImage: library/mariadb:10.1.38
56 pullPolicy: IfNotPresent
58 # application configuration
60 # .mariadbRootPasswordExternalSecret: 'some-external-secret'
61 # mariadbRootPassword: secretpassword
62 # .userCredentialsExternalSecret: 'some-external-secret'
64 # userPassword: my-password
65 # mysqlDatabase: my-database
67 # default number of instances in the StatefulSet
74 # probe configuration parameters
76 initialDelaySeconds: 30
79 # necessary to disable liveness probe when setting breakpoints
80 # in debugger so K8s doesn't restart unresponsive container
84 initialDelaySeconds: 15
88 ## Persist data to a persitent volume
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
96 volumeReclaimPolicy: Retain
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)
106 accessMode: ReadWriteOnce
108 mountPath: /dockerdata-nfs
109 mountSubPath: "mariadb-galera/data"
110 mysqlPath: /var/lib/mysql
112 mountPath: /dockerdata-nfs/backup{{- if or (or .Values.storageClassOverride .Values.persistence.storageClass) .Values.global.persistence.storageClass -}}
117 portName: mariadb-galera
120 replicationPort: 4567
121 replicationName: replication
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
135 # innodb_buffer_pool_size=2G
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:'.
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
165 # Name for mariadb-galera cluster - should be unique accross all projects or other clusters
166 nameOverride: mariadb-galera
168 # DNS name for mariadb-galera cluster - should be unique accross all projects other clusters
169 #dnsnameOverride: mariadb-galera