4ccb0e5c6ea9a0671c1ca505dba654dae726ece0
[oom.git] / kubernetes / common / mariadb-galera / values.yaml
1 # Copyright © 2018 Amdocs, Bell Canada
2 # Copyright © 2019 Samsung Electronics
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
16 #################################################################
17 # Secrets metaconfig
18 #################################################################
19 secrets:
20   - uid: '{{ include "common.mariadb.secret.rootPassUID" . }}'
21     type: password
22     externalSecret: '{{ tpl (default "" .Values.config.mariadbRootPasswordExternalSecret) . }}'
23     password: '{{ .Values.config.mariadbRootPassword }}'
24   - uid: '{{ include "common.mariadb.secret.userCredentialsUID" . }}'
25     type: basicAuth
26     externalSecret: '{{ tpl (default "" .Values.config.userCredentialsExternalSecret) . }}'
27     login: '{{ .Values.config.userName }}'
28     password: '{{ .Values.config.userPassword }}'
29
30
31 #################################################################
32 # Global configuration defaults.
33 #################################################################
34 global:
35   nodePortPrefix: 302
36   persistence:
37     mountPath: /dockerdata-nfs
38     backup:
39       mountPath: /dockerdata-nfs/backup
40
41   repository: nexus3.onap.org:10001
42
43   readinessRepository: oomk8s
44   readinessImage: readiness-check:2.0.2
45   busyboxImage: busybox:1.30
46   busyboxRepository: docker.io
47   # kubeclt image
48   kubectlImage: "bitnami/kubectl:1.15"
49
50 #################################################################
51 # Application configuration defaults.
52 #################################################################
53
54 #repository: mysql
55 repository: nexus3.onap.org:10001
56 image: adfinissygroup/k8s-mariadb-galera-centos:v002
57 backupImage: library/mariadb:10.1.38
58 imageInit: busybox
59 pullPolicy: IfNotPresent
60
61 # application configuration
62 config:
63   # .mariadbRootPasswordExternalSecret: 'some-external-secret'
64   # mariadbRootPassword: secretpassword
65   # .userCredentialsExternalSecret: 'some-external-secret'
66   userName: my-user
67   # userPassword: my-password
68   # mysqlDatabase: my-database
69
70 # default number of instances in the StatefulSet
71 replicaCount: 3
72
73 nodeSelector: {}
74
75 affinity: {}
76
77 # probe configuration parameters
78 liveness:
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
86 readiness:
87   initialDelaySeconds: 15
88   periodSeconds: 10
89   timeoutSeconds: 5
90
91 ## Persist data to a persitent volume
92 persistence:
93   enabled:  true
94
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: "-"
109   accessMode: ReadWriteOnce
110   size: 2Gi
111   mountPath: /dockerdata-nfs
112   mountSubPath: "mariadb-galera/data"
113   mysqlPath: /var/lib/mysql
114   backup:
115     mountPath: /dockerdata-nfs/backup{{- if or (or .Values.storageClassOverride .Values.persistence.storageClass) .Values.global.persistence.storageClass -}}
116
117 service:
118   internalPort: 3306
119   name: mariadb-galera
120   portName: mariadb-galera
121   sstPort: 4444
122   sstPortName: sst
123   replicationPort: 4567
124   replicationName: replication
125   istPort: 4568
126   istPortName: ist
127
128 ingress:
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 ##
135 externalConfig: ""
136 # 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
151 resources:
152   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: {}
167
168 # Name for mariadb-galera cluster - should be unique accross all projects or other clusters
169 nameOverride: mariadb-galera
170
171 # DNS name for mariadb-galera cluster - should be unique accross all projects other clusters
172 #dnsnameOverride: mariadb-galera
173
174 backup:
175   enabled: false
176   cron: "00 00 * * *"
177   retentionPeriod: 3