Merge "Top up version of HV-VES"
[oom.git] / kubernetes / common / mariadb-galera / values.yaml
1 # Copyright © 2018 Amdocs, Bell Canada
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefix: 302
20   persistence:
21     mountPath: /dockerdata-nfs
22     backup:
23       mountPath: /dockerdata-nfs/backup
24
25   repository: nexus3.onap.org:10001
26
27   readinessRepository: oomk8s
28   readinessImage: readiness-check:2.0.2
29
30
31 #################################################################
32 # Application configuration defaults.
33 #################################################################
34
35 #repository: mysql
36 repository: nexus3.onap.org:10001
37 image: adfinissygroup/k8s-mariadb-galera-centos:v002
38 backupImage: library/mariadb:10.1.38 
39 imageInit: busybox
40 pullPolicy: IfNotPresent
41
42 # application configuration
43 config:
44   mariadbRootPassword: secretpassword
45   userName: my-user
46   userPassword: my-password
47   mysqlDatabase: my-database
48
49 # default number of instances in the StatefulSet
50 replicaCount: 3
51
52 nodeSelector: {}
53
54 affinity: {}
55
56 # probe configuration parameters
57 liveness:
58   initialDelaySeconds: 30
59   periodSeconds: 10
60   timeoutSeconds: 5
61   # necessary to disable liveness probe when setting breakpoints
62   # in debugger so K8s doesn't restart unresponsive container
63   enabled: true
64
65 readiness:
66   initialDelaySeconds: 15
67   periodSeconds: 10
68   timeoutSeconds: 5
69
70 ## Persist data to a persitent volume
71 persistence:
72   enabled:  true
73
74   ## A manually managed Persistent Volume and Claim
75   ## Requires persistence.enabled: true
76   ## If defined, PVC must be created manually before volume will be bound
77   # existingClaim:
78   volumeReclaimPolicy: Retain
79
80   ## database data Persistent Volume Storage Class
81   ## If defined, storageClassName: <storageClass>
82   ## If set to "-", storageClassName: "", which disables dynamic provisioning
83   ## If undefined (the default) or set to null, no storageClassName spec is
84   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
85   ##   GKE, AWS & OpenStack)
86   ##
87   # storageClass: "-"
88   accessMode: ReadWriteOnce
89   size: 2Gi
90   mountPath: /dockerdata-nfs
91   mountSubPath: "mariadb-galera/data"
92   mysqlPath: /var/lib/mysql
93   backup:
94     mountPath: /dockerdata-nfs/backup
95
96 service:
97   internalPort: 3306
98   name: mariadb-galera
99   portName: mariadb-galera
100   sstPort: 4444
101   sstPortName: sst
102   replicationPort: 4567
103   replicationName: replication
104   istPort: 4568
105   istPortName: ist
106
107 ingress:
108   enabled: false
109
110
111 ## Configure MariaDB-Galera with a custom my.cnf file
112 ## ref: https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/#example-of-configuration-file
113 ##
114 externalConfig: {}
115 # externalConfig: |-
116   # [mysqld]
117   # innodb_buffer_pool_size=2G
118
119 #resources: {}
120   # We usually recommend not to specify default resources and to leave this as a conscious
121   # choice for the user. This also increases chances charts run on environments with little
122   # resources, such as Minikube. If you do want to specify resources, uncomment the following
123   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
124   #
125   # Example:
126   # Configure resource requests and limits
127   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
128   # Minimum memory for development is 2 CPU cores and 4GB memory
129   # Minimum memory for production is 4 CPU cores and 8GB memory
130 resources:
131   small:
132     limits:
133       cpu: 2
134       memory: 4Gi
135     requests:
136       cpu: 1
137       memory: 2Gi
138   large:
139     limits:
140       cpu: 2
141       memory: 4Gi
142     requests:
143       cpu: 1
144       memory: 2Gi
145   unlimited: {}
146
147 # Name for mariadb-galera cluster - should be unique accross all projects or other clusters
148 nameOverride: mariadb-galera
149
150 # DNS name for mariadb-galera cluster - should be unique accross all projects other clusters
151 #dnsnameOverride: mariadb-galera
152
153 backup:
154   enabled: false
155   cron: "00 00 * * *"
156   retentionPeriod: 3