blob: 4ccb0e5c6ea9a0671c1ca505dba654dae726ece0 [file] [log] [blame]
vaibhavjayasea9aee02018-08-31 06:22:26 +00001# Copyright © 2018 Amdocs, Bell Canada
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +01002# Copyright © 2019 Samsung Electronics
vaibhavjayasea9aee02018-08-31 06:22:26 +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.
15
vitalied1e5876c2018-03-29 10:24:27 -050016#################################################################
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +010017# Secrets metaconfig
18#################################################################
19secrets:
Krzysztof Opasiaka789c1a2020-01-22 00:06:32 +010020 - uid: '{{ include "common.mariadb.secret.rootPassUID" . }}'
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +010021 type: password
22 externalSecret: '{{ tpl (default "" .Values.config.mariadbRootPasswordExternalSecret) . }}'
23 password: '{{ .Values.config.mariadbRootPassword }}'
Krzysztof Opasiaka789c1a2020-01-22 00:06:32 +010024 - uid: '{{ include "common.mariadb.secret.userCredentialsUID" . }}'
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +010025 type: basicAuth
26 externalSecret: '{{ tpl (default "" .Values.config.userCredentialsExternalSecret) . }}'
27 login: '{{ .Values.config.userName }}'
28 password: '{{ .Values.config.userPassword }}'
29
30
31#################################################################
vitalied1e5876c2018-03-29 10:24:27 -050032# Global configuration defaults.
33#################################################################
34global:
35 nodePortPrefix: 302
Akansha Dua3fb95ef2019-09-04 11:47:43 +000036 persistence:
37 mountPath: /dockerdata-nfs
38 backup:
39 mountPath: /dockerdata-nfs/backup
40
vitalied1e5876c2018-03-29 10:24:27 -050041 repository: nexus3.onap.org:10001
42
Akansha Dua3fb95ef2019-09-04 11:47:43 +000043 readinessRepository: oomk8s
44 readinessImage: readiness-check:2.0.2
tringuyeneb9eb592020-04-01 17:51:06 +000045 busyboxImage: busybox:1.30
46 busyboxRepository: docker.io
47 # kubeclt image
48 kubectlImage: "bitnami/kubectl:1.15"
vitalied1e5876c2018-03-29 10:24:27 -050049
50#################################################################
51# Application configuration defaults.
52#################################################################
53
54#repository: mysql
55repository: nexus3.onap.org:10001
56image: adfinissygroup/k8s-mariadb-galera-centos:v002
Sylvain Desbureaux524c8782019-11-08 17:36:02 +010057backupImage: library/mariadb:10.1.38
vitalied1e5876c2018-03-29 10:24:27 -050058imageInit: busybox
59pullPolicy: IfNotPresent
60
61# application configuration
62config:
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +010063 # .mariadbRootPasswordExternalSecret: 'some-external-secret'
Krzysztof Opasiak26285812020-04-01 22:44:44 +020064 # mariadbRootPassword: secretpassword
Krzysztof Opasiak01c975b2019-12-16 17:42:38 +010065 # .userCredentialsExternalSecret: 'some-external-secret'
vitalied1e5876c2018-03-29 10:24:27 -050066 userName: my-user
Krzysztof Opasiak3ed9c942020-01-23 01:03:41 +010067 # userPassword: my-password
68 # mysqlDatabase: my-database
vitalied1e5876c2018-03-29 10:24:27 -050069
70# default number of instances in the StatefulSet
71replicaCount: 3
72
73nodeSelector: {}
74
75affinity: {}
76
77# probe configuration parameters
78liveness:
79 initialDelaySeconds: 30
80 periodSeconds: 10
81 timeoutSeconds: 5
82 # necessary to disable liveness probe when setting breakpoints
83 # in debugger so K8s doesn't restart unresponsive container
84 enabled: true
85
86readiness:
87 initialDelaySeconds: 15
88 periodSeconds: 10
yangyane63c9212019-05-22 13:04:15 +080089 timeoutSeconds: 5
vitalied1e5876c2018-03-29 10:24:27 -050090
91## Persist data to a persitent volume
92persistence:
pramod47b1b822018-08-28 15:41:45 +000093 enabled: true
vitalied1e5876c2018-03-29 10:24:27 -050094
95 ## A manually managed Persistent Volume and Claim
96 ## Requires persistence.enabled: true
97 ## If defined, PVC must be created manually before volume will be bound
98 # existingClaim:
99 volumeReclaimPolicy: Retain
100
101 ## database data Persistent Volume Storage Class
102 ## If defined, storageClassName: <storageClass>
103 ## If set to "-", storageClassName: "", which disables dynamic provisioning
104 ## If undefined (the default) or set to null, no storageClassName spec is
105 ## set, choosing the default provisioner. (gp2 on AWS, standard on
106 ## GKE, AWS & OpenStack)
107 ##
108 # storageClass: "-"
Sylvain Desbureaux2285a282019-08-29 16:17:16 +0200109 accessMode: ReadWriteOnce
vitalied1e5876c2018-03-29 10:24:27 -0500110 size: 2Gi
pramod47b1b822018-08-28 15:41:45 +0000111 mountPath: /dockerdata-nfs
112 mountSubPath: "mariadb-galera/data"
113 mysqlPath: /var/lib/mysql
Akansha Dua3fb95ef2019-09-04 11:47:43 +0000114 backup:
Sylvain Desbureaux524c8782019-11-08 17:36:02 +0100115 mountPath: /dockerdata-nfs/backup{{- if or (or .Values.storageClassOverride .Values.persistence.storageClass) .Values.global.persistence.storageClass -}}
vitalied1e5876c2018-03-29 10:24:27 -0500116
117service:
118 internalPort: 3306
119 name: mariadb-galera
BorislavG1ffbd992018-04-24 07:56:27 +0000120 portName: mariadb-galera
vitalied1e5876c2018-03-29 10:24:27 -0500121 sstPort: 4444
Mike Elliott4c88b2d2018-09-13 09:32:08 -0400122 sstPortName: sst
vitalied1e5876c2018-03-29 10:24:27 -0500123 replicationPort: 4567
124 replicationName: replication
125 istPort: 4568
Mike Elliott4c88b2d2018-09-13 09:32:08 -0400126 istPortName: ist
vitalied1e5876c2018-03-29 10:24:27 -0500127
128ingress:
129 enabled: false
130
131
132## Configure MariaDB-Galera with a custom my.cnf file
133## ref: https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/#example-of-configuration-file
134##
Krzysztof Opasiak89536752020-05-16 00:25:05 +0200135externalConfig: ""
vitalied1e5876c2018-03-29 10:24:27 -0500136# externalConfig: |-
137 # [mysqld]
138 # innodb_buffer_pool_size=2G
139
140#resources: {}
141 # We usually recommend not to specify default resources and to leave this as a conscious
142 # choice for the user. This also increases chances charts run on environments with little
143 # resources, such as Minikube. If you do want to specify resources, uncomment the following
144 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
145 #
146 # Example:
147 # Configure resource requests and limits
148 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
149 # Minimum memory for development is 2 CPU cores and 4GB memory
150 # Minimum memory for production is 4 CPU cores and 8GB memory
151resources:
Sylvain Desbureauxff702c72018-11-23 14:25:57 +0100152 small:
153 limits:
154 cpu: 2
155 memory: 4Gi
156 requests:
157 cpu: 1
158 memory: 2Gi
159 large:
160 limits:
161 cpu: 2
162 memory: 4Gi
163 requests:
164 cpu: 1
165 memory: 2Gi
166 unlimited: {}
vitalied1e5876c2018-03-29 10:24:27 -0500167
168# Name for mariadb-galera cluster - should be unique accross all projects or other clusters
169nameOverride: mariadb-galera
170
171# DNS name for mariadb-galera cluster - should be unique accross all projects other clusters
BorislavG1ffbd992018-04-24 07:56:27 +0000172#dnsnameOverride: mariadb-galera
Akansha Dua3fb95ef2019-09-04 11:47:43 +0000173
174backup:
175 enabled: false
176 cron: "00 00 * * *"
177 retentionPeriod: 3