blob: a662b1e04a6b1def6ca102de5d79f688bc7b0359 [file] [log] [blame]
vaibhavjayasea9aee02018-08-31 06:22:26 +00001# 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
vitalied1e5876c2018-03-29 10:24:27 -050015#################################################################
16# Global configuration defaults.
17#################################################################
18global:
19 nodePortPrefix: 302
Akansha Dua3fb95ef2019-09-04 11:47:43 +000020 persistence:
21 mountPath: /dockerdata-nfs
22 backup:
23 mountPath: /dockerdata-nfs/backup
24
vitalied1e5876c2018-03-29 10:24:27 -050025 repository: nexus3.onap.org:10001
26
Akansha Dua3fb95ef2019-09-04 11:47:43 +000027 readinessRepository: oomk8s
28 readinessImage: readiness-check:2.0.2
29
vitalied1e5876c2018-03-29 10:24:27 -050030
31#################################################################
32# Application configuration defaults.
33#################################################################
34
35#repository: mysql
36repository: nexus3.onap.org:10001
37image: adfinissygroup/k8s-mariadb-galera-centos:v002
Akansha Dua3fb95ef2019-09-04 11:47:43 +000038backupImage: library/mariadb:10.1.38
vitalied1e5876c2018-03-29 10:24:27 -050039imageInit: busybox
40pullPolicy: IfNotPresent
41
42# application configuration
43config:
44 mariadbRootPassword: secretpassword
45 userName: my-user
46 userPassword: my-password
47 mysqlDatabase: my-database
48
49# default number of instances in the StatefulSet
50replicaCount: 3
51
52nodeSelector: {}
53
54affinity: {}
55
56# probe configuration parameters
57liveness:
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
65readiness:
66 initialDelaySeconds: 15
67 periodSeconds: 10
yangyane63c9212019-05-22 13:04:15 +080068 timeoutSeconds: 5
vitalied1e5876c2018-03-29 10:24:27 -050069
70## Persist data to a persitent volume
71persistence:
pramod47b1b822018-08-28 15:41:45 +000072 enabled: true
vitalied1e5876c2018-03-29 10:24:27 -050073
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: "-"
Sylvain Desbureaux2285a282019-08-29 16:17:16 +020088 accessMode: ReadWriteOnce
vitalied1e5876c2018-03-29 10:24:27 -050089 size: 2Gi
pramod47b1b822018-08-28 15:41:45 +000090 mountPath: /dockerdata-nfs
91 mountSubPath: "mariadb-galera/data"
92 mysqlPath: /var/lib/mysql
Akansha Dua3fb95ef2019-09-04 11:47:43 +000093 backup:
94 mountPath: /dockerdata-nfs/backup
vitalied1e5876c2018-03-29 10:24:27 -050095
96service:
97 internalPort: 3306
98 name: mariadb-galera
BorislavG1ffbd992018-04-24 07:56:27 +000099 portName: mariadb-galera
vitalied1e5876c2018-03-29 10:24:27 -0500100 sstPort: 4444
Mike Elliott4c88b2d2018-09-13 09:32:08 -0400101 sstPortName: sst
vitalied1e5876c2018-03-29 10:24:27 -0500102 replicationPort: 4567
103 replicationName: replication
104 istPort: 4568
Mike Elliott4c88b2d2018-09-13 09:32:08 -0400105 istPortName: ist
vitalied1e5876c2018-03-29 10:24:27 -0500106
107ingress:
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##
114externalConfig: {}
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
130resources:
Sylvain Desbureauxff702c72018-11-23 14:25:57 +0100131 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: {}
vitalied1e5876c2018-03-29 10:24:27 -0500146
147# Name for mariadb-galera cluster - should be unique accross all projects or other clusters
148nameOverride: mariadb-galera
149
150# DNS name for mariadb-galera cluster - should be unique accross all projects other clusters
BorislavG1ffbd992018-04-24 07:56:27 +0000151#dnsnameOverride: mariadb-galera
Akansha Dua3fb95ef2019-09-04 11:47:43 +0000152
153backup:
154 enabled: false
155 cron: "00 00 * * *"
156 retentionPeriod: 3