[DCAEMOD] Uses new tpls for repos / images
[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   readinessImage: onap/oom/readiness:3.0.1
44   busyboxImage: busybox:1.30
45   busyboxRepository: docker.io
46   # kubeclt image
47   kubectlImage: "bitnami/kubectl:1.15"
48
49 #################################################################
50 # Application configuration defaults.
51 #################################################################
52
53 #repository: mysql
54 repository: nexus3.onap.org:10001
55 image: adfinissygroup/k8s-mariadb-galera-centos:v002
56 backupImage: library/mariadb:10.1.38
57 imageInit: busybox
58 pullPolicy: IfNotPresent
59
60 # application configuration
61 config:
62   # .mariadbRootPasswordExternalSecret: 'some-external-secret'
63   # mariadbRootPassword: secretpassword
64   # .userCredentialsExternalSecret: 'some-external-secret'
65   userName: my-user
66   # userPassword: my-password
67   # mysqlDatabase: my-database
68
69 # default number of instances in the StatefulSet
70 replicaCount: 3
71
72 nodeSelector: {}
73
74 affinity: {}
75
76 # probe configuration parameters
77 liveness:
78   initialDelaySeconds: 30
79   periodSeconds: 10
80   timeoutSeconds: 5
81   # necessary to disable liveness probe when setting breakpoints
82   # in debugger so K8s doesn't restart unresponsive container
83   enabled: true
84
85 readiness:
86   initialDelaySeconds: 15
87   periodSeconds: 10
88   timeoutSeconds: 5
89
90 ## Persist data to a persitent volume
91 persistence:
92   enabled:  true
93
94   ## A manually managed Persistent Volume and Claim
95   ## Requires persistence.enabled: true
96   ## If defined, PVC must be created manually before volume will be bound
97   # existingClaim:
98   volumeReclaimPolicy: Retain
99
100   ## database data Persistent Volume Storage Class
101   ## If defined, storageClassName: <storageClass>
102   ## If set to "-", storageClassName: "", which disables dynamic provisioning
103   ## If undefined (the default) or set to null, no storageClassName spec is
104   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
105   ##   GKE, AWS & OpenStack)
106   ##
107   # storageClass: "-"
108   accessMode: ReadWriteOnce
109   size: 2Gi
110   mountPath: /dockerdata-nfs
111   mountSubPath: "mariadb-galera/data"
112   mysqlPath: /var/lib/mysql
113   backup:
114     mountPath: /dockerdata-nfs/backup{{- if or (or .Values.storageClassOverride .Values.persistence.storageClass) .Values.global.persistence.storageClass -}}
115
116 service:
117   internalPort: 3306
118   name: mariadb-galera
119   portName: mariadb-galera
120   sstPort: 4444
121   sstPortName: sst
122   replicationPort: 4567
123   replicationName: replication
124   istPort: 4568
125   istPortName: ist
126
127 ingress:
128   enabled: false
129
130
131 ## Configure MariaDB-Galera with a custom my.cnf file
132 ## ref: https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/#example-of-configuration-file
133 ##
134 #externalConfig: ""
135 externalConfig: |-
136    [mysqld]
137    lower_case_table_names = 1
138
139 #resources: {}
140   # We usually recommend not to specify default resources and to leave this as a conscious
141   # choice for the user. This also increases chances charts run on environments with little
142   # resources, such as Minikube. If you do want to specify resources, uncomment the following
143   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
144   #
145   # Example:
146   # Configure resource requests and limits
147   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
148   # Minimum memory for development is 2 CPU cores and 4GB memory
149   # Minimum memory for production is 4 CPU cores and 8GB memory
150 resources:
151   small:
152     limits:
153       cpu: 500m
154       memory: 1.5Gi
155     requests:
156       cpu: 100m
157       memory: 750Mi
158   large:
159     limits:
160       cpu: 2
161       memory: 4Gi
162     requests:
163       cpu: 1
164       memory: 2Gi
165   unlimited: {}
166
167 # Name for mariadb-galera cluster - should be unique accross all projects or other clusters
168 nameOverride: mariadb-galera
169
170 # DNS name for mariadb-galera cluster - should be unique accross all projects other clusters
171 #dnsnameOverride: mariadb-galera
172
173 backup:
174   enabled: false
175   cron: "00 00 * * *"
176   retentionPeriod: 3