DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
mysql logoHELM

mysql

Helm chart
iamguarded
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
# This file has been modified by Chainguard, Inc.
2
#
3
# Copyright Chainguard, Inc. All Rights Reserved.
4
# Chainguard, Inc. modifications are subject to the license
5
# available at: https://www.chainguard.dev/legal/software-license-agreement
6
#
7
# Copyright Broadcom, Inc. All Rights Reserved.
8
# SPDX-License-Identifier: APACHE-2.0
9
10
## @section Global parameters
11
## Global Docker image parameters
12
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
14
##
15
16
## @param global.imageRegistry Global Docker image registry
17
## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18
## @param global.imagePullSecrets Global Docker registry secret names as an array
19
## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
20
## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
21
##
22
global:
23
imageRegistry: ""
24
useImageTags: false
25
## E.g.
26
## imagePullSecrets:
27
## - myRegistryKeySecretName
28
##
29
imagePullSecrets: []
30
defaultStorageClass: ""
31
storageClass: ""
32
## Security parameters
33
##
34
security:
35
## @param global.security.allowInsecureImages Allows skipping image verification
36
allowInsecureImages: false
37
## Compatibility adaptations for Kubernetes platforms
38
##
39
compatibility:
40
## Compatibility adaptations for Openshift
41
##
42
openshift:
43
## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
44
##
45
adaptSecurityContext: auto
46
org: ""
47
## @section Common parameters
48
##
49
50
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
51
##
52
kubeVersion: ""
53
## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
54
##
55
nameOverride: ""
56
## @param fullnameOverride String to fully override common.names.fullname template
57
##
58
fullnameOverride: ""
59
## @param namespaceOverride String to fully override common.names.namespace
60
##
61
namespaceOverride: ""
62
## @param clusterDomain Cluster domain
63
##
64
clusterDomain: cluster.local
65
## @param commonAnnotations Common annotations to add to all MySQL resources (sub-charts are not considered). Evaluated as a template
66
##
67
commonAnnotations: {}
68
## @param commonLabels Common labels to add to all MySQL resources (sub-charts are not considered). Evaluated as a template
69
##
70
commonLabels: {}
71
## @param extraDeploy Array with extra yaml to deploy with the chart. Evaluated as a template
72
##
73
extraDeploy: []
74
## @param serviceBindings.enabled Create secret for service binding (Experimental)
75
## Ref: https://servicebinding.io/service-provider/
76
##
77
serviceBindings:
78
enabled: false
79
## Enable diagnostic mode in the deployment
80
##
81
diagnosticMode:
82
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
83
##
84
enabled: false
85
## @param diagnosticMode.command Command to override all containers in the deployment
86
##
87
command:
88
- sleep
89
## @param diagnosticMode.args Args to override all containers in the deployment
90
##
91
args:
92
- infinity
93
## @section MySQL common parameters
94
##
95
96
## Iamguarded MySQL image
97
## @param image.registry [default: REGISTRY_NAME] MySQL image registry
98
## @param image.repository [default: REPOSITORY_NAME/mysql] MySQL image repository
99
## @skip image.tag MySQL image tag (immutable tags are recommended)
100
## @param image.digest MySQL image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
101
## @param image.pullPolicy MySQL image pull policy
102
## @param image.pullSecrets Specify docker-registry secret names as an array
103
## @param image.debug Specify if debug logs should be enabled
104
##
105
image:
106
registry: cgr.dev
107
repository: chainguard-private/mysql-iamguarded
108
tag: 8.4.13
109
digest: ""
110
## Specify a imagePullPolicy
111
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
112
##
113
pullPolicy: IfNotPresent
114
## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
115
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
116
## Example:
117
## pullSecrets:
118
## - myRegistryKeySecretName
119
##
120
pullSecrets: []
121
## Set to true if you would like to see extra information on logs
122
## It turns BASH and/or NAMI debugging in the image
123
##
124
debug: false
125
## @param architecture MySQL architecture (`standalone` or `replication`)
126
##
127
architecture: standalone
128
## MySQL Authentication parameters
129
##
130
auth:
131
## @param auth.rootPassword Password for the `root` user. Ignored if existing secret is provided
132
##
133
rootPassword: ""
134
## @param auth.createDatabase Whether to create the .Values.auth.database or not
135
##
136
createDatabase: true
137
## @param auth.database Name for a custom database to create
138
##
139
database: "my_database"
140
## @param auth.username Name for a custom user to create
141
##
142
username: ""
143
## @param auth.password Password for the new user. Ignored if existing secret is provided
144
##
145
password: ""
146
## @param auth.replicationUser MySQL replication user
147
##
148
replicationUser: replicator
149
## @param auth.replicationPassword MySQL replication user password. Ignored if existing secret is provided
150
##
151
replicationPassword: ""
152
## @param auth.existingSecret Use existing secret for password details. The secret has to contain the keys `mysql-root-password`, `mysql-replication-password` and `mysql-password`
153
## NOTE: When it's set the auth.rootPassword, auth.password, auth.replicationPassword are ignored.
154
##
155
existingSecret: ""
156
## @param auth.usePasswordFiles Mount credentials as files instead of using an environment variable
157
##
158
usePasswordFiles: true
159
## @param auth.customPasswordFiles Use custom password files when `auth.usePasswordFiles` is set to `true`. Define path for keys `root` and `user`, also define `replicator` if `architecture` is set to `replication`
160
## Example:
161
## customPasswordFiles:
162
## root: /vault/secrets/mysql-root
163
## user: /vault/secrets/mysql-user
164
## replicator: /vault/secrets/mysql-replicator
165
##
166
customPasswordFiles: {}
167
## @param auth.authenticationPolicy Sets the authentication policy, by default it will use `* ,,`
168
## ref: https://dev.mysql.com/doc/refman/8.4/en/server-system-variables.html#sysvar_authentication_policy
169
##
170
authenticationPolicy: ""
171
## @param initdbScripts Dictionary of initdb scripts
172
## Specify dictionary of scripts to be run at first boot
173
## Example:
174
## initdbScripts:
175
## my_init_script.sh: |
176
## #!/bin/bash
177
## echo "Do something."
178
##
179
initdbScripts: {}
180
## @param initdbScriptsConfigMap ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
181
##
182
initdbScriptsConfigMap: ""
183
## @param startdbScripts Dictionary of startdb scripts
184
## Specify dictionary of scripts to be run every time the container is started
185
## Example:
186
## startdbScripts:
187
## my_start_script.sh: |
188
## #!/bin/bash
189
## echo "Do something."
190
##
191
startdbScripts: {}
192
## @param startdbScriptsConfigMap ConfigMap with the startdb scripts (Note: Overrides `startdbScripts`)
193
##
194
startdbScriptsConfigMap: ""
195
## @section TLS/SSL parameters
196
##
197
## @param tls.enabled Enable TLS in MySQL
198
## @param tls.existingSecret Existing secret that contains TLS certificates
199
## @param tls.certFilename The secret key from the existingSecret if 'cert' key different from the default (tls.crt)
200
## @param tls.certKeyFilename The secret key from the existingSecret if 'key' key different from the default (tls.key)
201
## @param tls.certCAFilename The secret key from the existingSecret if 'ca' key different from the default (tls.crt)
202
## @param tls.ca CA certificate for TLS. Ignored if `tls.existingSecret` is set
203
## @param tls.cert TLS certificate for MySQL. Ignored if `tls.existingSecret` is set
204
## @param tls.key TLS key for MySQL. Ignored if `tls.existingSecret` is set
205
##
206
tls:
207
enabled: false
208
existingSecret: ""
209
certFilename: tls.crt
210
certKeyFilename: tls.key
211
certCAFilename: ""
212
ca: ""
213
cert: ""
214
key: ""
215
## @param tls.autoGenerated.enabled Enable automatic generation of certificates for TLS
216
## @param tls.autoGenerated.engine Mechanism to generate the certificates (allowed values: helm, cert-manager)
217
autoGenerated:
218
enabled: true
219
engine: helm
220
## @param tls.autoGenerated.certManager.existingIssuer The name of an existing Issuer to use for generating the certificates (only for `cert-manager` engine)
221
## @param tls.autoGenerated.certManager.existingIssuerKind Existing Issuer kind, defaults to Issuer (only for `cert-manager` engine)
222
## @param tls.autoGenerated.certManager.keyAlgorithm Key algorithm for the certificates (only for `cert-manager` engine)
223
## @param tls.autoGenerated.certManager.keySize Key size for the certificates (only for `cert-manager` engine)
224
## @param tls.autoGenerated.certManager.duration Duration for the certificates (only for `cert-manager` engine)
225
## @param tls.autoGenerated.certManager.renewBefore Renewal period for the certificates (only for `cert-manager` engine)
226
certManager:
227
existingIssuer: ""
228
existingIssuerKind: ""
229
keySize: 2048
230
keyAlgorithm: RSA
231
duration: 2160h
232
renewBefore: 360h
233
## @section MySQL Primary parameters
234
##
235
primary:
236
## @param primary.name Name of the primary database (eg primary, master, leader, ...)
237
##
238
name: primary
239
## @param primary.command Override default container command on MySQL Primary container(s) (useful when using custom images)
240
##
241
command: []
242
## @param primary.args Override default container args on MySQL Primary container(s) (useful when using custom images)
243
##
244
args: []
245
## @param primary.lifecycleHooks for the MySQL Primary container(s) to automate configuration before or after startup
246
##
247
lifecycleHooks: {}
248
## @param primary.automountServiceAccountToken Mount Service Account token in pod
249
##
250
automountServiceAccountToken: false
251
## @param primary.hostAliases Deployment pod host aliases
252
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
253
##
254
hostAliases: []
255
## @param primary.enableMySQLX Enable mysqlx port
256
## ref: https://dev.mysql.com/doc/dev/mysql-server/latest/mysqlx_protocol_xplugin.html
257
##
258
enableMySQLX: false
259
## @param primary.configuration [string] Configure MySQL Primary with a custom my.cnf file
260
## ref: https://mysql.com/kb/en/mysql/configuring-mysql-with-mycnf/#example-of-configuration-file
261
##
262
configuration: |-
263
[mysqld]
264
authentication_policy='{{- .Values.auth.authenticationPolicy | default "* ,," }}'
265
skip-name-resolve
266
explicit_defaults_for_timestamp
267
basedir=/opt/iamguarded/mysql
268
plugin_dir=/opt/iamguarded/mysql/lib/plugin
269
port={{ .Values.primary.containerPorts.mysql }}
270
mysqlx={{ ternary 1 0 .Values.primary.enableMySQLX }}
271
mysqlx_port={{ .Values.primary.containerPorts.mysqlx }}
272
socket=/opt/iamguarded/mysql/tmp/mysql.sock
273
datadir=/iamguarded/mysql/data
274
tmpdir=/opt/iamguarded/mysql/tmp
275
max_allowed_packet=16M
276
bind-address=*
277
pid-file=/opt/iamguarded/mysql/tmp/mysqld.pid
278
log-error=/opt/iamguarded/mysql/logs/mysqld.log
279
character-set-server=UTF8
280
slow_query_log=0
281
long_query_time=10.0
282
{{- if .Values.tls.enabled }}
283
ssl_cert=/opt/iamguarded/mysql/certs/{{ .Values.tls.certFilename }}
284
ssl_key=/opt/iamguarded/mysql/certs/{{ .Values.tls.certKeyFilename }}
285
{{- if (include "mysql.tlsCACert" .) }}
286
ssl_ca={{ include "mysql.tlsCACert" . }}
287
{{- end }}
288
{{- end }}
289
290
[client]
291
port={{ .Values.primary.containerPorts.mysql }}
292
socket=/opt/iamguarded/mysql/tmp/mysql.sock
293
default-character-set=UTF8
294
plugin_dir=/opt/iamguarded/mysql/lib/plugin
295
296
[manager]
297
port={{ .Values.primary.containerPorts.mysql }}
298
socket=/opt/iamguarded/mysql/tmp/mysql.sock
299
pid-file=/opt/iamguarded/mysql/tmp/mysqld.pid
300
## @param primary.existingConfigmap Name of existing ConfigMap with MySQL Primary configuration.
301
## NOTE: When it's set the 'configuration' parameter is ignored
302
##
303
existingConfigmap: ""
304
## @param primary.containerPorts.mysql Container port for mysql
305
## @param primary.containerPorts.mysqlx Container port for mysqlx
306
##
307
containerPorts:
308
mysql: 3306
309
mysqlx: 33060
310
## @param primary.updateStrategy.type Update strategy type for the MySQL primary statefulset
311
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
312
##
313
updateStrategy:
314
type: RollingUpdate
315
## @param primary.podAnnotations Additional pod annotations for MySQL primary pods
316
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
317
##
318
podAnnotations: {}
319
## @param primary.podAffinityPreset MySQL primary pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
320
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
321
##
322
podAffinityPreset: ""
323
## @param primary.podAntiAffinityPreset MySQL primary pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
324
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
325
##
326
podAntiAffinityPreset: soft
327
## MySQL Primary node affinity preset
328
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
329
##
330
nodeAffinityPreset:
331
## @param primary.nodeAffinityPreset.type MySQL primary node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
332
##
333
type: ""
334
## @param primary.nodeAffinityPreset.key MySQL primary node label key to match Ignored if `primary.affinity` is set.
335
## E.g.
336
## key: "kubernetes.io/e2e-az-name"
337
##
338
key: ""
339
## @param primary.nodeAffinityPreset.values MySQL primary node label values to match. Ignored if `primary.affinity` is set.
340
## E.g.
341
## values:
342
## - e2e-az1
343
## - e2e-az2
344
##
345
values: []
346
## @param primary.affinity Affinity for MySQL primary pods assignment
347
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
348
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
349
##
350
affinity: {}
351
## @param primary.nodeSelector Node labels for MySQL primary pods assignment
352
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
353
##
354
nodeSelector: {}
355
## @param primary.tolerations Tolerations for MySQL primary pods assignment
356
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
357
##
358
tolerations: []
359
## @param primary.priorityClassName MySQL primary pods' priorityClassName
360
##
361
priorityClassName: ""
362
## @param primary.runtimeClassName MySQL primary pods' runtimeClassName
363
##
364
runtimeClassName: ""
365
## @param primary.schedulerName Name of the k8s scheduler (other than default)
366
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
367
##
368
schedulerName: ""
369
## @param primary.terminationGracePeriodSeconds In seconds, time the given to the MySQL primary pod needs to terminate gracefully
370
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
371
##
372
terminationGracePeriodSeconds: ""
373
## @param primary.topologySpreadConstraints Topology Spread Constraints for pod assignment
374
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
375
## The value is evaluated as a template
376
##
377
topologySpreadConstraints: []
378
## @param primary.podManagementPolicy podManagementPolicy to manage scaling operation of MySQL primary pods
379
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
380
##
381
podManagementPolicy: ""
382
## MySQL primary Pod security context
383
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
384
## @param primary.podSecurityContext.enabled Enable security context for MySQL primary pods
385
## @param primary.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
386
## @param primary.podSecurityContext.sysctls Set kernel settings using the sysctl interface
387
## @param primary.podSecurityContext.supplementalGroups Set filesystem extra groups
388
## @param primary.podSecurityContext.fsGroup Group ID for the mounted volumes' filesystem
389
##
390
podSecurityContext:
391
enabled: true
392
fsGroupChangePolicy: Always
393
sysctls: []
394
supplementalGroups: []
395
fsGroup: 1001
396
## MySQL primary container security context
397
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
398
## @param primary.containerSecurityContext.enabled MySQL primary container securityContext
399
## @param primary.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
400
## @param primary.containerSecurityContext.runAsUser User ID for the MySQL primary container
401
## @param primary.containerSecurityContext.runAsGroup Group ID for the MySQL primary container
402
## @param primary.containerSecurityContext.runAsNonRoot Set MySQL primary container's Security Context runAsNonRoot
403
## @param primary.containerSecurityContext.allowPrivilegeEscalation Set container's privilege escalation
404
## @param primary.containerSecurityContext.capabilities.drop Set container's Security Context runAsNonRoot
405
## @param primary.containerSecurityContext.seccompProfile.type Set Client container's Security Context seccomp profile
406
## @param primary.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
407
##
408
containerSecurityContext:
409
enabled: true
410
seLinuxOptions: {}
411
runAsUser: 1001
412
runAsGroup: 1001
413
runAsNonRoot: true
414
allowPrivilegeEscalation: false
415
capabilities:
416
drop: ["ALL"]
417
seccompProfile:
418
type: "RuntimeDefault"
419
readOnlyRootFilesystem: true
420
## MySQL primary container's resource requests and limits
421
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
422
## We usually recommend not to specify default resources and to leave this as a conscious
423
## choice for the user. This also increases chances charts run on environments with little
424
## resources, such as Minikube. If you do want to specify resources, uncomment the following
425
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
426
## @param primary.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if primary.resources is set (primary.resources is recommended for production).
427
## NOTE: The "nano" and "micro" presets allocate extremely low CPU/memory. These values may cause MySQL to fail during startup (e.g., OOMKilled, readiness/liveness probe failures)
428
##
429
resourcesPreset: "small"
430
## @param primary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
431
## Example:
432
## resources:
433
## requests:
434
## cpu: 2
435
## memory: 512Mi
436
## limits:
437
## cpu: 3
438
## memory: 1024Mi
439
##
440
resources: {}
441
## Configure extra options for liveness probe
442
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
443
## @param primary.livenessProbe.enabled Enable livenessProbe
444
## @param primary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
445
## @param primary.livenessProbe.periodSeconds Period seconds for livenessProbe
446
## @param primary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
447
## @param primary.livenessProbe.failureThreshold Failure threshold for livenessProbe
448
## @param primary.livenessProbe.successThreshold Success threshold for livenessProbe
449
##
450
livenessProbe:
451
enabled: true
452
initialDelaySeconds: 5
453
periodSeconds: 10
454
timeoutSeconds: 1
455
failureThreshold: 3
456
successThreshold: 1
457
## Configure extra options for readiness probe
458
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
459
## @param primary.readinessProbe.enabled Enable readinessProbe
460
## @param primary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
461
## @param primary.readinessProbe.periodSeconds Period seconds for readinessProbe
462
## @param primary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
463
## @param primary.readinessProbe.failureThreshold Failure threshold for readinessProbe
464
## @param primary.readinessProbe.successThreshold Success threshold for readinessProbe
465
##
466
readinessProbe:
467
enabled: true
468
initialDelaySeconds: 5
469
periodSeconds: 10
470
timeoutSeconds: 1
471
failureThreshold: 3
472
successThreshold: 1
473
## Configure extra options for startupProbe probe
474
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
475
## @param primary.startupProbe.enabled Enable startupProbe
476
## @param primary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
477
## @param primary.startupProbe.periodSeconds Period seconds for startupProbe
478
## @param primary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
479
## @param primary.startupProbe.failureThreshold Failure threshold for startupProbe
480
## @param primary.startupProbe.successThreshold Success threshold for startupProbe
481
##
482
startupProbe:
483
enabled: true
484
initialDelaySeconds: 15
485
periodSeconds: 10
486
timeoutSeconds: 1
487
failureThreshold: 10
488
successThreshold: 1
489
## @param primary.customLivenessProbe Override default liveness probe for MySQL primary containers
490
##
491
customLivenessProbe: {}
492
## @param primary.customReadinessProbe Override default readiness probe for MySQL primary containers
493
##
494
customReadinessProbe: {}
495
## @param primary.customStartupProbe Override default startup probe for MySQL primary containers
496
##
497
customStartupProbe: {}
498
## @param primary.extraFlags MySQL primary additional command line flags
499
## Can be used to specify command line flags, for example:
500
## E.g.
501
## extraFlags: "--max-connect-errors=1000 --max_connections=155"
502
##
503
extraFlags: ""
504
## @param primary.extraEnvVars Extra environment variables to be set on MySQL primary containers
505
## E.g.
506
## extraEnvVars:
507
## - name: TZ
508
## value: "Europe/Paris"
509
##
510
extraEnvVars: []
511
## @param primary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for MySQL primary containers
512
##
513
extraEnvVarsCM: ""
514
## @param primary.extraEnvVarsSecret Name of existing Secret containing extra env vars for MySQL primary containers
515
##
516
extraEnvVarsSecret: ""
517
## @param primary.extraPodSpec Optionally specify extra PodSpec for the MySQL Primary pod(s)
518
##
519
extraPodSpec: {}
520
## @param primary.extraPorts Extra ports to expose
521
##
522
extraPorts: []
523
## Enable persistence using Persistent Volume Claims
524
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
525
##
526
persistence:
527
## @param primary.persistence.enabled Enable persistence on MySQL primary replicas using a `PersistentVolumeClaim`. If false, use emptyDir
528
##
529
enabled: true
530
## @param primary.persistence.existingClaim Name of an existing `PersistentVolumeClaim` for MySQL primary replicas
531
## NOTE: When it's set the rest of persistence parameters are ignored
532
##
533
existingClaim: ""
534
## @param primary.persistence.subPath The name of a volume's sub path to mount for persistence
535
##
536
subPath: ""
537
## @param primary.persistence.storageClass MySQL primary persistent volume storage Class
538
## If defined, storageClassName: <storageClass>
539
## If set to "-", storageClassName: "", which disables dynamic provisioning
540
## If undefined (the default) or set to null, no storageClassName spec is
541
## set, choosing the default provisioner. (gp2 on AWS, standard on
542
## GKE, AWS & OpenStack)
543
##
544
storageClass: ""
545
## @param primary.persistence.annotations MySQL primary persistent volume claim annotations
546
##
547
annotations: {}
548
## @param primary.persistence.accessModes MySQL primary persistent volume access Modes
549
##
550
accessModes:
551
- ReadWriteOnce
552
## @param primary.persistence.size MySQL primary persistent volume size
553
##
554
size: 8Gi
555
## @param primary.persistence.selector Selector to match an existing Persistent Volume
556
## selector:
557
## matchLabels:
558
## app: my-app
559
##
560
selector: {}
561
## Primary Persistent Volume Claim Retention Policy
562
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
563
##
564
persistentVolumeClaimRetentionPolicy:
565
## @param primary.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for Primary StatefulSet
566
##
567
enabled: false
568
## @param primary.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
569
##
570
whenScaled: Retain
571
## @param primary.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
572
##
573
whenDeleted: Retain
574
## @param primary.extraVolumes Optionally specify extra list of additional volumes to the MySQL Primary pod(s)
575
##
576
extraVolumes: []
577
## @param primary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MySQL Primary container(s)
578
##
579
extraVolumeMounts: []
580
## @param primary.initContainers Add additional init containers for the MySQL Primary pod(s)
581
##
582
initContainers: []
583
## @param primary.enableDefaultInitContainers enables (or disables if false) the default init containers (logs-symlinks, volume permissions)
584
##
585
enableDefaultInitContainers: true
586
## @param primary.sidecars Add additional sidecar containers for the MySQL Primary pod(s)
587
##
588
sidecars: []
589
## MySQL Primary Service parameters
590
##
591
service:
592
## @param primary.service.type MySQL Primary K8s service type
593
##
594
type: ClusterIP
595
## @param primary.service.ports.mysql MySQL Primary K8s service port
596
## @param primary.service.ports.mysqlx MySQL Primary K8s service mysqlx port
597
##
598
ports:
599
mysql: 3306
600
mysqlx: 33060
601
## @param primary.service.nodePorts.mysql MySQL Primary K8s service node port
602
## @param primary.service.nodePorts.mysqlx MySQL Primary K8s service node port mysqlx
603
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
604
##
605
nodePorts:
606
mysql: ""
607
mysqlx: ""
608
## @param primary.service.clusterIP MySQL Primary K8s service clusterIP IP
609
## e.g:
610
## clusterIP: None
611
##
612
clusterIP: ""
613
## @param primary.service.loadBalancerIP MySQL Primary loadBalancerIP if service type is `LoadBalancer`
614
## Set the LoadBalancer service type to internal only
615
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
616
##
617
loadBalancerIP: ""
618
## @param primary.service.externalTrafficPolicy Enable client source IP preservation
619
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
620
##
621
externalIPs: []
622
## @param primary.service.externalIPs MySQL Primary K8s service externalIPs
623
## ref https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
624
##
625
externalTrafficPolicy: Cluster
626
## @param primary.service.loadBalancerSourceRanges Addresses that are allowed when MySQL Primary service is LoadBalancer
627
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
628
## E.g.
629
## loadBalancerSourceRanges:
630
## - 10.10.10.0/24
631
##
632
loadBalancerSourceRanges: []
633
## @param primary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
634
##
635
extraPorts: []
636
## @param primary.service.annotations Additional custom annotations for MySQL primary service
637
##
638
annotations: {}
639
## @param primary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
640
## If "ClientIP", consecutive client requests will be directed to the same Pod
641
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
642
##
643
sessionAffinity: None
644
## @param primary.service.sessionAffinityConfig Additional settings for the sessionAffinity
645
## sessionAffinityConfig:
646
## clientIP:
647
## timeoutSeconds: 300
648
##
649
sessionAffinityConfig: {}
650
## Headless service properties
651
##
652
headless:
653
## @param primary.service.headless.annotations Additional custom annotations for headless MySQL primary service.
654
##
655
annotations: {}
656
## MySQL primary Pod Disruption Budget configuration
657
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
658
##
659
pdb:
660
## @param primary.pdb.create Enable/disable a Pod Disruption Budget creation for MySQL primary pods
661
##
662
create: true
663
## @param primary.pdb.minAvailable Minimum number/percentage of MySQL primary pods that should remain scheduled
664
##
665
minAvailable: ""
666
## @param primary.pdb.maxUnavailable Maximum number/percentage of MySQL primary pods that may be made unavailable. Defaults to `1` if both `primary.pdb.minAvailable` and `primary.pdb.maxUnavailable` are empty.
667
##
668
maxUnavailable: ""
669
## @param primary.podLabels MySQL Primary pod label. If labels are same as commonLabels , this will take precedence
670
##
671
podLabels: {}
672
## @section MySQL Secondary parameters
673
##
674
secondary:
675
## @param secondary.name Name of the secondary database (eg secondary, slave, ...)
676
##
677
name: secondary
678
## @param secondary.replicaCount Number of MySQL secondary replicas
679
##
680
replicaCount: 1
681
## @param secondary.automountServiceAccountToken Mount Service Account token in pod
682
##
683
automountServiceAccountToken: false
684
## @param secondary.hostAliases Deployment pod host aliases
685
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
686
##
687
hostAliases: []
688
## @param secondary.command Override default container command on MySQL Secondary container(s) (useful when using custom images)
689
##
690
command: []
691
## @param secondary.args Override default container args on MySQL Secondary container(s) (useful when using custom images)
692
##
693
args: []
694
## @param secondary.lifecycleHooks for the MySQL Secondary container(s) to automate configuration before or after startup
695
##
696
lifecycleHooks: {}
697
## @param secondary.enableMySQLX Enable mysqlx port
698
## ref: https://dev.mysql.com/doc/dev/mysql-server/latest/mysqlx_protocol_xplugin.html
699
##
700
enableMySQLX: false
701
## @param secondary.configuration [string] Configure MySQL Secondary with a custom my.cnf file
702
## ref: https://mysql.com/kb/en/mysql/configuring-mysql-with-mycnf/#example-of-configuration-file
703
##
704
configuration: |-
705
[mysqld]
706
authentication_policy='{{- .Values.auth.authenticationPolicy | default "* ,," }}'
707
skip-name-resolve
708
explicit_defaults_for_timestamp
709
basedir=/opt/iamguarded/mysql
710
plugin_dir=/opt/iamguarded/mysql/lib/plugin
711
port={{ .Values.secondary.containerPorts.mysql }}
712
mysqlx={{ ternary 1 0 .Values.secondary.enableMySQLX }}
713
mysqlx_port={{ .Values.secondary.containerPorts.mysqlx }}
714
socket=/opt/iamguarded/mysql/tmp/mysql.sock
715
datadir=/iamguarded/mysql/data
716
tmpdir=/opt/iamguarded/mysql/tmp
717
max_allowed_packet=16M
718
bind-address=*
719
pid-file=/opt/iamguarded/mysql/tmp/mysqld.pid
720
log-error=/opt/iamguarded/mysql/logs/mysqld.log
721
character-set-server=UTF8
722
slow_query_log=0
723
long_query_time=10.0
724
{{- if .Values.tls.enabled }}
725
ssl_cert=/opt/iamguarded/mysql/certs/{{ .Values.tls.certFilename }}
726
ssl_key=/opt/iamguarded/mysql/certs/{{ .Values.tls.certKeyFilename }}
727
{{- if (include "mysql.tlsCACert" .) }}
728
ssl_ca={{ include "mysql.tlsCACert" . }}
729
{{- end }}
730
{{- end }}
731
732
[client]
733
port={{ .Values.secondary.containerPorts.mysql }}
734
socket=/opt/iamguarded/mysql/tmp/mysql.sock
735
default-character-set=UTF8
736
plugin_dir=/opt/iamguarded/mysql/lib/plugin
737
738
[manager]
739
port={{ .Values.secondary.containerPorts.mysql }}
740
socket=/opt/iamguarded/mysql/tmp/mysql.sock
741
pid-file=/opt/iamguarded/mysql/tmp/mysqld.pid
742
## @param secondary.existingConfigmap Name of existing ConfigMap with MySQL Secondary configuration.
743
## NOTE: When it's set the 'configuration' parameter is ignored
744
##
745
existingConfigmap: ""
746
## @param secondary.containerPorts.mysql Container port for mysql
747
## @param secondary.containerPorts.mysqlx Container port for mysqlx
748
##
749
containerPorts:
750
mysql: 3306
751
mysqlx: 33060
752
## @param secondary.updateStrategy.type Update strategy type for the MySQL secondary statefulset
753
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
754
##
755
updateStrategy:
756
type: RollingUpdate
757
## @param secondary.podAnnotations Additional pod annotations for MySQL secondary pods
758
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
759
##
760
podAnnotations: {}
761
## @param secondary.podAffinityPreset MySQL secondary pod affinity preset. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
762
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
763
##
764
podAffinityPreset: ""
765
## @param secondary.podAntiAffinityPreset MySQL secondary pod anti-affinity preset. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
766
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
767
## Allowed values: soft, hard
768
##
769
podAntiAffinityPreset: soft
770
## MySQL Secondary node affinity preset
771
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
772
##
773
nodeAffinityPreset:
774
## @param secondary.nodeAffinityPreset.type MySQL secondary node affinity preset type. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
775
##
776
type: ""
777
## @param secondary.nodeAffinityPreset.key MySQL secondary node label key to match Ignored if `secondary.affinity` is set.
778
## E.g.
779
## key: "kubernetes.io/e2e-az-name"
780
##
781
key: ""
782
## @param secondary.nodeAffinityPreset.values MySQL secondary node label values to match. Ignored if `secondary.affinity` is set.
783
## E.g.
784
## values:
785
## - e2e-az1
786
## - e2e-az2
787
##
788
values: []
789
## @param secondary.affinity Affinity for MySQL secondary pods assignment
790
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
791
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
792
##
793
affinity: {}
794
## @param secondary.nodeSelector Node labels for MySQL secondary pods assignment
795
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
796
##
797
nodeSelector: {}
798
## @param secondary.tolerations Tolerations for MySQL secondary pods assignment
799
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
800
##
801
tolerations: []
802
## @param secondary.priorityClassName MySQL secondary pods' priorityClassName
803
##
804
priorityClassName: ""
805
## @param secondary.runtimeClassName MySQL secondary pods' runtimeClassName
806
##
807
runtimeClassName: ""
808
## @param secondary.schedulerName Name of the k8s scheduler (other than default)
809
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
810
##
811
schedulerName: ""
812
## @param secondary.terminationGracePeriodSeconds In seconds, time the given to the MySQL secondary pod needs to terminate gracefully
813
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
814
##
815
terminationGracePeriodSeconds: ""
816
## @param secondary.topologySpreadConstraints Topology Spread Constraints for pod assignment
817
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
818
## The value is evaluated as a template
819
##
820
topologySpreadConstraints: []
821
## @param secondary.podManagementPolicy podManagementPolicy to manage scaling operation of MySQL secondary pods
822
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
823
##
824
podManagementPolicy: ""
825
## MySQL secondary Pod security context
826
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
827
## @param secondary.podSecurityContext.enabled Enable security context for MySQL secondary pods
828
## @param secondary.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
829
## @param secondary.podSecurityContext.sysctls Set kernel settings using the sysctl interface
830
## @param secondary.podSecurityContext.supplementalGroups Set filesystem extra groups
831
## @param secondary.podSecurityContext.fsGroup Group ID for the mounted volumes' filesystem
832
##
833
podSecurityContext:
834
enabled: true
835
fsGroupChangePolicy: Always
836
sysctls: []
837
supplementalGroups: []
838
fsGroup: 1001
839
## MySQL secondary container security context
840
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
841
## @param secondary.containerSecurityContext.enabled MySQL secondary container securityContext
842
## @param secondary.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
843
## @param secondary.containerSecurityContext.runAsUser User ID for the MySQL secondary container
844
## @param secondary.containerSecurityContext.runAsGroup Group ID for the MySQL secondary container
845
## @param secondary.containerSecurityContext.runAsNonRoot Set MySQL secondary container's Security Context runAsNonRoot
846
## @param secondary.containerSecurityContext.allowPrivilegeEscalation Set container's privilege escalation
847
## @param secondary.containerSecurityContext.capabilities.drop Set container's Security Context runAsNonRoot
848
## @param secondary.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
849
## @param secondary.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
850
##
851
containerSecurityContext:
852
enabled: true
853
seLinuxOptions: {}
854
runAsUser: 1001
855
runAsGroup: 1001
856
runAsNonRoot: true
857
allowPrivilegeEscalation: false
858
capabilities:
859
drop: ["ALL"]
860
seccompProfile:
861
type: "RuntimeDefault"
862
readOnlyRootFilesystem: true
863
## MySQL secondary container's resource requests and limits
864
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
865
## We usually recommend not to specify default resources and to leave this as a conscious
866
## choice for the user. This also increases chances charts run on environments with little
867
## resources, such as Minikube. If you do want to specify resources, uncomment the following
868
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
869
## @param secondary.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if secondary.resources is set (secondary.resources is recommended for production).
870
##
871
resourcesPreset: "small"
872
## @param secondary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
873
## Example:
874
## resources:
875
## requests:
876
## cpu: 2
877
## memory: 512Mi
878
## limits:
879
## cpu: 3
880
## memory: 1024Mi
881
##
882
resources: {}
883
## Configure extra options for liveness probe
884
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
885
## @param secondary.livenessProbe.enabled Enable livenessProbe
886
## @param secondary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
887
## @param secondary.livenessProbe.periodSeconds Period seconds for livenessProbe
888
## @param secondary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
889
## @param secondary.livenessProbe.failureThreshold Failure threshold for livenessProbe
890
## @param secondary.livenessProbe.successThreshold Success threshold for livenessProbe
891
##
892
livenessProbe:
893
enabled: true
894
initialDelaySeconds: 5
895
periodSeconds: 10
896
timeoutSeconds: 1
897
failureThreshold: 3
898
successThreshold: 1
899
## Configure extra options for readiness probe
900
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
901
## @param secondary.readinessProbe.enabled Enable readinessProbe
902
## @param secondary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
903
## @param secondary.readinessProbe.periodSeconds Period seconds for readinessProbe
904
## @param secondary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
905
## @param secondary.readinessProbe.failureThreshold Failure threshold for readinessProbe
906
## @param secondary.readinessProbe.successThreshold Success threshold for readinessProbe
907
##
908
readinessProbe:
909
enabled: true
910
initialDelaySeconds: 5
911
periodSeconds: 10
912
timeoutSeconds: 1
913
failureThreshold: 3
914
successThreshold: 1
915
## Configure extra options for startupProbe probe
916
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
917
## @param secondary.startupProbe.enabled Enable startupProbe
918
## @param secondary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
919
## @param secondary.startupProbe.periodSeconds Period seconds for startupProbe
920
## @param secondary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
921
## @param secondary.startupProbe.failureThreshold Failure threshold for startupProbe
922
## @param secondary.startupProbe.successThreshold Success threshold for startupProbe
923
##
924
startupProbe:
925
enabled: true
926
initialDelaySeconds: 15
927
periodSeconds: 10
928
timeoutSeconds: 1
929
failureThreshold: 15
930
successThreshold: 1
931
## @param secondary.customLivenessProbe Override default liveness probe for MySQL secondary containers
932
##
933
customLivenessProbe: {}
934
## @param secondary.customReadinessProbe Override default readiness probe for MySQL secondary containers
935
##
936
customReadinessProbe: {}
937
## @param secondary.customStartupProbe Override default startup probe for MySQL secondary containers
938
##
939
customStartupProbe: {}
940
## @param secondary.extraFlags MySQL secondary additional command line flags
941
## Can be used to specify command line flags, for example:
942
## E.g.
943
## extraFlags: "--max-connect-errors=1000 --max_connections=155"
944
##
945
extraFlags: ""
946
## @param secondary.extraEnvVars An array to add extra environment variables on MySQL secondary containers
947
## E.g.
948
## extraEnvVars:
949
## - name: TZ
950
## value: "Europe/Paris"
951
##
952
extraEnvVars: []
953
## @param secondary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for MySQL secondary containers
954
##
955
extraEnvVarsCM: ""
956
## @param secondary.extraEnvVarsSecret Name of existing Secret containing extra env vars for MySQL secondary containers
957
##
958
extraEnvVarsSecret: ""
959
## @param secondary.extraPodSpec Optionally specify extra PodSpec for the MySQL Secondary pod(s)
960
##
961
extraPodSpec: {}
962
## @param secondary.extraPorts Extra ports to expose
963
##
964
extraPorts: []
965
## Enable persistence using Persistent Volume Claims
966
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
967
##
968
persistence:
969
## @param secondary.persistence.enabled Enable persistence on MySQL secondary replicas using a `PersistentVolumeClaim`
970
##
971
enabled: true
972
## @param secondary.persistence.existingClaim Name of an existing `PersistentVolumeClaim` for MySQL secondary replicas
973
## NOTE: When it's set the rest of persistence parameters are ignored
974
##
975
existingClaim: ""
976
## @param secondary.persistence.subPath The name of a volume's sub path to mount for persistence
977
##
978
subPath: ""
979
## @param secondary.persistence.storageClass MySQL secondary persistent volume storage Class
980
## If defined, storageClassName: <storageClass>
981
## If set to "-", storageClassName: "", which disables dynamic provisioning
982
## If undefined (the default) or set to null, no storageClassName spec is
983
## set, choosing the default provisioner. (gp2 on AWS, standard on
984
## GKE, AWS & OpenStack)
985
##
986
storageClass: ""
987
## @param secondary.persistence.annotations MySQL secondary persistent volume claim annotations
988
##
989
annotations: {}
990
## @param secondary.persistence.accessModes MySQL secondary persistent volume access Modes
991
##
992
accessModes:
993
- ReadWriteOnce
994
## @param secondary.persistence.size MySQL secondary persistent volume size
995
##
996
size: 8Gi
997
## @param secondary.persistence.selector Selector to match an existing Persistent Volume
998
## selector:
999
## matchLabels:
1000
## app: my-app
1001
##
1002
selector: {}
1003
## Secondary Persistent Volume Claim Retention Policy
1004
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1005
##
1006
persistentVolumeClaimRetentionPolicy:
1007
## @param secondary.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for read only StatefulSet
1008
##
1009
enabled: false
1010
## @param secondary.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1011
##
1012
whenScaled: Retain
1013
## @param secondary.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1014
##
1015
whenDeleted: Retain
1016
## @param secondary.extraVolumes Optionally specify extra list of additional volumes to the MySQL secondary pod(s)
1017
##
1018
extraVolumes: []
1019
## @param secondary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MySQL secondary container(s)
1020
##
1021
extraVolumeMounts: []
1022
## @param secondary.initContainers Add additional init containers for the MySQL secondary pod(s)
1023
##
1024
initContainers: []
1025
## @param secondary.enableDefaultInitContainers enables (or disables if false) the default init containers (logs-symlinks, volume permissions)
1026
##
1027
enableDefaultInitContainers: true
1028
## @param secondary.sidecars Add additional sidecar containers for the MySQL secondary pod(s)
1029
##
1030
sidecars: []
1031
## MySQL Secondary Service parameters
1032
##
1033
service:
1034
## @param secondary.service.type MySQL secondary Kubernetes service type
1035
##
1036
type: ClusterIP
1037
## @param secondary.service.ports.mysql MySQL secondary Kubernetes service port
1038
## @param secondary.service.ports.mysqlx MySQL secondary Kubernetes service port mysqlx
1039
##
1040
ports:
1041
mysql: 3306
1042
mysqlx: 33060
1043
## @param secondary.service.nodePorts.mysql MySQL secondary Kubernetes service node port
1044
## @param secondary.service.nodePorts.mysqlx MySQL secondary Kubernetes service node port mysqlx
1045
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1046
##
1047
nodePorts:
1048
mysql: ""
1049
mysqlx: ""
1050
## @param secondary.service.clusterIP MySQL secondary Kubernetes service clusterIP IP
1051
## e.g:
1052
## clusterIP: None
1053
##
1054
clusterIP: ""
1055
## @param secondary.service.loadBalancerIP MySQL secondary loadBalancerIP if service type is `LoadBalancer`
1056
## Set the LoadBalancer service type to internal only
1057
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1058
##
1059
loadBalancerIP: ""
1060
## @param secondary.service.externalTrafficPolicy Enable client source IP preservation
1061
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1062
##
1063
externalIPs: []
1064
## @param secondary.service.externalIPs MySQL Secondary K8s service externalIPs
1065
## ref https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
1066
##
1067
externalTrafficPolicy: Cluster
1068
## @param secondary.service.loadBalancerSourceRanges Addresses that are allowed when MySQL secondary service is LoadBalancer
1069
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1070
## E.g.
1071
## loadBalancerSourceRanges:
1072
## - 10.10.10.0/24
1073
##
1074
loadBalancerSourceRanges: []
1075
## @param secondary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1076
##
1077
extraPorts: []
1078
## @param secondary.service.annotations Additional custom annotations for MySQL secondary service
1079
##
1080
annotations: {}
1081
## @param secondary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1082
## If "ClientIP", consecutive client requests will be directed to the same Pod
1083
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1084
##
1085
sessionAffinity: None
1086
## @param secondary.service.sessionAffinityConfig Additional settings for the sessionAffinity
1087
## sessionAffinityConfig:
1088
## clientIP:
1089
## timeoutSeconds: 300
1090
##
1091
sessionAffinityConfig: {}
1092
## Headless service properties
1093
##
1094
headless:
1095
## @param secondary.service.headless.annotations Additional custom annotations for headless MySQL secondary service.
1096
##
1097
annotations: {}
1098
## MySQL secondary Pod Disruption Budget configuration
1099
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
1100
##
1101
pdb:
1102
## @param secondary.pdb.create Enable/disable a Pod Disruption Budget creation for MySQL secondary pods
1103
##
1104
create: true
1105
## @param secondary.pdb.minAvailable Minimum number/percentage of MySQL secondary pods that should remain scheduled
1106
##
1107
minAvailable: ""
1108
## @param secondary.pdb.maxUnavailable Maximum number/percentage of MySQL secondary pods that may be made unavailable. Defaults to `1` if both `secondary.pdb.minAvailable` and `secondary.pdb.maxUnavailable` are empty.
1109
##
1110
maxUnavailable: ""
1111
## @param secondary.podLabels Additional pod labels for MySQL secondary pods
1112
##
1113
podLabels: {}
1114
## @section RBAC parameters
1115
##
1116
1117
## MySQL pods ServiceAccount
1118
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1119
##
1120
serviceAccount:
1121
## @param serviceAccount.create Enable the creation of a ServiceAccount for MySQL pods
1122
##
1123
create: true
1124
## @param serviceAccount.name Name of the created ServiceAccount
1125
## If not set and create is true, a name is generated using the mysql.fullname template
1126
##
1127
name: ""
1128
## @param serviceAccount.annotations Annotations for MySQL Service Account
1129
##
1130
annotations: {}
1131
## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1132
##
1133
automountServiceAccountToken: false
1134
## Role Based Access
1135
## ref: https://kubernetes.io/docs/admin/authorization/rbac/
1136
##
1137
rbac:
1138
## @param rbac.create Whether to create & use RBAC resources or not
1139
##
1140
create: false
1141
## @param rbac.rules Custom RBAC rules to set
1142
## e.g:
1143
## rules:
1144
## - apiGroups:
1145
## - ""
1146
## resources:
1147
## - pods
1148
## verbs:
1149
## - get
1150
## - list
1151
##
1152
rules: []
1153
## @section Network Policy
1154
##
1155
1156
## Network Policy configuration
1157
## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1158
##
1159
networkPolicy:
1160
## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
1161
##
1162
enabled: true
1163
## @param networkPolicy.allowExternal The Policy model to apply
1164
## When set to false, only pods with the correct client label will have network access to the ports MySQL is
1165
## listening on. When true, MySQL will accept connections from any source (with the correct destination port).
1166
##
1167
allowExternal: true
1168
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1169
##
1170
allowExternalEgress: true
1171
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1172
## e.g:
1173
## extraIngress:
1174
## - ports:
1175
## - port: 1234
1176
## from:
1177
## - podSelector:
1178
## - matchLabels:
1179
## - role: frontend
1180
## - podSelector:
1181
## - matchExpressions:
1182
## - key: role
1183
## operator: In
1184
## values:
1185
## - frontend
1186
##
1187
extraIngress: []
1188
## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1189
## e.g:
1190
## extraEgress:
1191
## - ports:
1192
## - port: 1234
1193
## to:
1194
## - podSelector:
1195
## - matchLabels:
1196
## - role: frontend
1197
## - podSelector:
1198
## - matchExpressions:
1199
## - key: role
1200
## operator: In
1201
## values:
1202
## - frontend
1203
##
1204
extraEgress: []
1205
## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
1206
## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
1207
##
1208
ingressNSMatchLabels: {}
1209
ingressNSPodMatchLabels: {}
1210
## @section Password update job
1211
##
1212
passwordUpdateJob:
1213
## @param passwordUpdateJob.enabled Enable password update job
1214
##
1215
enabled: false
1216
## @param passwordUpdateJob.backoffLimit set backoff limit of the job
1217
##
1218
backoffLimit: 10
1219
## @param passwordUpdateJob.command Override default container command on mysql Primary container(s) (useful when using custom images)
1220
##
1221
command: []
1222
## @param passwordUpdateJob.args Override default container args on mysql Primary container(s) (useful when using custom images)
1223
##
1224
args: []
1225
## @param passwordUpdateJob.extraCommands Extra commands to pass to the generation job
1226
##
1227
extraCommands: ""
1228
## @param passwordUpdateJob.previousPasswords.rootPassword Previous root password (set if the password secret was already changed)
1229
## @param passwordUpdateJob.previousPasswords.password Previous password (set if the password secret was already changed)
1230
## @param passwordUpdateJob.previousPasswords.replicationPassword Previous replication password (set if the password secret was already changed)
1231
## @param passwordUpdateJob.previousPasswords.existingSecret Name of a secret containing the previous passwords (set if the password secret was already changed)
1232
previousPasswords:
1233
rootPassword: ""
1234
password: ""
1235
replicationPassword: ""
1236
existingSecret: ""
1237
## Configure Container Security Context
1238
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1239
## @param passwordUpdateJob.containerSecurityContext.enabled Enabled containers' Security Context
1240
## @param passwordUpdateJob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1241
## @param passwordUpdateJob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1242
## @param passwordUpdateJob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1243
## @param passwordUpdateJob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1244
## @param passwordUpdateJob.containerSecurityContext.privileged Set container's Security Context privileged
1245
## @param passwordUpdateJob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1246
## @param passwordUpdateJob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1247
## @param passwordUpdateJob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1248
## @param passwordUpdateJob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1249
##
1250
containerSecurityContext:
1251
enabled: true
1252
seLinuxOptions: {}
1253
runAsUser: 1001
1254
runAsGroup: 1001
1255
runAsNonRoot: true
1256
privileged: false
1257
readOnlyRootFilesystem: true
1258
allowPrivilegeEscalation: false
1259
capabilities:
1260
drop: ["ALL"]
1261
seccompProfile:
1262
type: "RuntimeDefault"
1263
## Configure Pods Security Context
1264
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1265
## @param passwordUpdateJob.podSecurityContext.enabled Enabled credential init job pods' Security Context
1266
## @param passwordUpdateJob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1267
## @param passwordUpdateJob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1268
## @param passwordUpdateJob.podSecurityContext.supplementalGroups Set filesystem extra groups
1269
## @param passwordUpdateJob.podSecurityContext.fsGroup Set credential init job pod's Security Context fsGroup
1270
##
1271
podSecurityContext:
1272
enabled: true
1273
fsGroupChangePolicy: Always
1274
sysctls: []
1275
supplementalGroups: []
1276
fsGroup: 1001
1277
## @param passwordUpdateJob.extraEnvVars Array containing extra env vars to configure the credential init job
1278
## For example:
1279
## extraEnvVars:
1280
## - name: GF_DEFAULT_INSTANCE_NAME
1281
## value: my-instance
1282
##
1283
extraEnvVars: []
1284
## @param passwordUpdateJob.extraEnvVarsCM ConfigMap containing extra env vars to configure the credential init job
1285
##
1286
extraEnvVarsCM: ""
1287
## @param passwordUpdateJob.extraEnvVarsSecret Secret containing extra env vars to configure the credential init job (in case of sensitive data)
1288
##
1289
extraEnvVarsSecret: ""
1290
## @param passwordUpdateJob.extraVolumes Optionally specify extra list of additional volumes for the credential init job
1291
##
1292
extraVolumes: []
1293
## @param passwordUpdateJob.extraVolumeMounts Array of extra volume mounts to be added to the jwt Container (evaluated as template). Normally used with `extraVolumes`.
1294
##
1295
extraVolumeMounts: []
1296
## @param passwordUpdateJob.initContainers Add additional init containers for the mysql Primary pod(s)
1297
##
1298
initContainers: []
1299
## Container resource requests and limits
1300
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1301
## @param passwordUpdateJob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if passwordUpdateJob.resources is set (passwordUpdateJob.resources is recommended for production).
1302
##
1303
resourcesPreset: "micro"
1304
## @param passwordUpdateJob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1305
## Example:
1306
## resources:
1307
## requests:
1308
## cpu: 2
1309
## memory: 512Mi
1310
## limits:
1311
## cpu: 3
1312
## memory: 1024Mi
1313
##
1314
resources: {}
1315
## @param passwordUpdateJob.customLivenessProbe Custom livenessProbe that overrides the default one
1316
##
1317
customLivenessProbe: {}
1318
## @param passwordUpdateJob.customReadinessProbe Custom readinessProbe that overrides the default one
1319
##
1320
customReadinessProbe: {}
1321
## @param passwordUpdateJob.customStartupProbe Custom startupProbe that overrides the default one
1322
##
1323
customStartupProbe: {}
1324
## @param passwordUpdateJob.automountServiceAccountToken Mount Service Account token in pod
1325
##
1326
automountServiceAccountToken: false
1327
## @param passwordUpdateJob.hostAliases Add deployment host aliases
1328
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1329
##
1330
hostAliases: []
1331
## @param passwordUpdateJob.annotations [object] Add annotations to the job
1332
##
1333
annotations: {}
1334
## @param passwordUpdateJob.podLabels Additional pod labels
1335
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1336
##
1337
podLabels: {}
1338
## @param passwordUpdateJob.podAnnotations Additional pod annotations
1339
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1340
##
1341
podAnnotations: {}
1342
## @section Volume Permissions parameters
1343
##
1344
1345
## Init containers parameters:
1346
## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
1347
##
1348
volumePermissions:
1349
## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup`
1350
##
1351
enabled: false
1352
## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
1353
## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
1354
## @skip volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended)
1355
## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1356
## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
1357
## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
1358
##
1359
image:
1360
registry: cgr.dev
1361
repository: chainguard-private/os-shell-iamguarded
1362
tag: 1.0.0
1363
digest: ""
1364
pullPolicy: IfNotPresent
1365
## Optionally specify an array of imagePullSecrets.
1366
## Secrets must be manually created in the namespace.
1367
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1368
## e.g:
1369
## pullSecrets:
1370
## - myRegistryKeySecretName
1371
##
1372
pullSecrets: []
1373
## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
1374
##
1375
resourcesPreset: "nano"
1376
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1377
## Example:
1378
## resources:
1379
## requests:
1380
## cpu: 2
1381
## memory: 512Mi
1382
## limits:
1383
## cpu: 3
1384
## memory: 1024Mi
1385
##
1386
resources: {}
1387
## @section Metrics parameters
1388
##
1389
1390
## Mysqld Prometheus exporter parameters
1391
##
1392
metrics:
1393
## @param metrics.enabled Start a side-car prometheus exporter
1394
##
1395
enabled: false
1396
## @param metrics.image.registry [default: REGISTRY_NAME] Exporter image registry
1397
## @param metrics.image.repository [default: REPOSITORY_NAME/mysqld-exporter] Exporter image repository
1398
## @skip metrics.image.tag Exporter image tag (immutable tags are recommended)
1399
## @param metrics.image.digest Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1400
## @param metrics.image.pullPolicy Exporter image pull policy
1401
## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
1402
##
1403
image:
1404
registry: cgr.dev
1405
repository: chainguard-private/prometheus-mysqld-exporter-iamguarded
1406
tag: 0.21.0
1407
digest: ""
1408
pullPolicy: IfNotPresent
1409
## Optionally specify an array of imagePullSecrets.
1410
## Secrets must be manually created in the namespace.
1411
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1412
## e.g:
1413
## pullSecrets:
1414
## - myRegistryKeySecretName
1415
##
1416
pullSecrets: []
1417
## MySQL metrics container security context
1418
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1419
## @param metrics.containerSecurityContext.enabled MySQL metrics container securityContext
1420
## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1421
## @param metrics.containerSecurityContext.runAsUser User ID for the MySQL metrics container
1422
## @param metrics.containerSecurityContext.runAsGroup Group ID for the MySQL metrics container
1423
## @param metrics.containerSecurityContext.runAsNonRoot Set MySQL metrics container's Security Context runAsNonRoot
1424
## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set container's privilege escalation
1425
## @param metrics.containerSecurityContext.capabilities.drop Set container's Security Context runAsNonRoot
1426
## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1427
## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
1428
##
1429
containerSecurityContext:
1430
enabled: true
1431
seLinuxOptions: {}
1432
runAsUser: 1001
1433
runAsGroup: 1001
1434
runAsNonRoot: true
1435
allowPrivilegeEscalation: false
1436
capabilities:
1437
drop: ["ALL"]
1438
seccompProfile:
1439
type: "RuntimeDefault"
1440
readOnlyRootFilesystem: true
1441
## @param metrics.containerPorts.http Container port for http
1442
##
1443
containerPorts:
1444
http: 9104
1445
## MySQL Prometheus exporter service parameters
1446
## Mysqld Prometheus exporter liveness and readiness probes
1447
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1448
## @param metrics.service.type Kubernetes service type for MySQL Prometheus Exporter
1449
## @param metrics.service.clusterIP Kubernetes service clusterIP for MySQL Prometheus Exporter
1450
## @param metrics.service.port MySQL Prometheus Exporter service port
1451
## @param metrics.service.annotations [object] Prometheus exporter service annotations
1452
##
1453
service:
1454
type: ClusterIP
1455
port: 9104
1456
clusterIP: ""
1457
annotations:
1458
prometheus.io/scrape: "true"
1459
prometheus.io/port: "{{ .Values.metrics.service.port }}"
1460
## @param metrics.extraArgs.primary Extra args to be passed to mysqld_exporter on Primary pods
1461
## @param metrics.extraArgs.secondary Extra args to be passed to mysqld_exporter on Secondary pods
1462
## ref: https://github.com/prometheus/mysqld_exporter/
1463
## E.g.
1464
## - --collect.auto_increment.columns
1465
## - --collect.binlog_size
1466
## - --collect.engine_innodb_status
1467
## - --collect.engine_tokudb_status
1468
## - --collect.global_status
1469
## - --collect.global_variables
1470
## - --collect.info_schema.clientstats
1471
## - --collect.info_schema.innodb_metrics
1472
## - --collect.info_schema.innodb_tablespaces
1473
## - --collect.info_schema.innodb_cmp
1474
## - --collect.info_schema.innodb_cmpmem
1475
## - --collect.info_schema.processlist
1476
## - --collect.info_schema.processlist.min_time
1477
## - --collect.info_schema.query_response_time
1478
## - --collect.info_schema.tables
1479
## - --collect.info_schema.tables.databases
1480
## - --collect.info_schema.tablestats
1481
## - --collect.info_schema.userstats
1482
## - --collect.perf_schema.eventsstatements
1483
## - --collect.perf_schema.eventsstatements.digest_text_limit
1484
## - --collect.perf_schema.eventsstatements.limit
1485
## - --collect.perf_schema.eventsstatements.timelimit
1486
## - --collect.perf_schema.eventswaits
1487
## - --collect.perf_schema.file_events
1488
## - --collect.perf_schema.file_instances
1489
## - --collect.perf_schema.indexiowaits
1490
## - --collect.perf_schema.tableiowaits
1491
## - --collect.perf_schema.tablelocks
1492
## - --collect.perf_schema.replication_group_member_stats
1493
## - --collect.slave_status
1494
## - --collect.slave_hosts
1495
## - --collect.heartbeat
1496
## - --collect.heartbeat.database
1497
## - --collect.heartbeat.table
1498
##
1499
extraArgs:
1500
primary: []
1501
secondary: []
1502
## Mysqld Prometheus exporter resource requests and limits
1503
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1504
## We usually recommend not to specify default resources and to leave this as a conscious
1505
## choice for the user. This also increases chances charts run on environments with little
1506
## resources, such as Minikube. If you do want to specify resources, uncomment the following
1507
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1508
## @param metrics.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.resources is set (metrics.resources is recommended for production).
1509
##
1510
resourcesPreset: "nano"
1511
## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1512
## Example:
1513
## resources:
1514
## requests:
1515
## cpu: 2
1516
## memory: 512Mi
1517
## limits:
1518
## cpu: 3
1519
## memory: 1024Mi
1520
##
1521
resources: {}
1522
## Mysqld Prometheus exporter liveness probe
1523
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1524
## @param metrics.livenessProbe.enabled Enable livenessProbe
1525
## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1526
## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1527
## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1528
## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1529
## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1530
##
1531
livenessProbe:
1532
enabled: true
1533
initialDelaySeconds: 120
1534
periodSeconds: 10
1535
timeoutSeconds: 1
1536
successThreshold: 1
1537
failureThreshold: 3
1538
## Mysqld Prometheus exporter readiness probe
1539
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1540
## @param metrics.readinessProbe.enabled Enable readinessProbe
1541
## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1542
## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1543
## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1544
## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1545
## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1546
##
1547
readinessProbe:
1548
enabled: true
1549
initialDelaySeconds: 30
1550
periodSeconds: 10
1551
timeoutSeconds: 1
1552
successThreshold: 1
1553
failureThreshold: 3
1554
## Prometheus Service Monitor
1555
## ref: https://github.com/coreos/prometheus-operator
1556
##
1557
serviceMonitor:
1558
## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using PrometheusOperator
1559
##
1560
enabled: false
1561
## @param metrics.serviceMonitor.namespace Specify the namespace in which the serviceMonitor resource will be created
1562
##
1563
namespace: ""
1564
## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1565
##
1566
jobLabel: ""
1567
## @param metrics.serviceMonitor.interval Specify the interval at which metrics should be scraped
1568
##
1569
interval: 30s
1570
## @param metrics.serviceMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
1571
## e.g:
1572
## scrapeTimeout: 30s
1573
##
1574
scrapeTimeout: ""
1575
## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
1576
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1577
##
1578
relabelings: []
1579
## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
1580
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1581
##
1582
metricRelabelings: []
1583
## @param metrics.serviceMonitor.selector ServiceMonitor selector labels
1584
##
1585
## selector:
1586
## prometheus: my-prometheus
1587
##
1588
selector: {}
1589
## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
1590
##
1591
honorLabels: false
1592
## @param metrics.serviceMonitor.labels Used to pass Labels that are used by the Prometheus installed in your cluster to select Service Monitors to work with
1593
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
1594
##
1595
labels: {}
1596
## @param metrics.serviceMonitor.annotations ServiceMonitor annotations
1597
##
1598
annotations: {}
1599
## Prometheus Operator prometheusRule configuration
1600
##
1601
prometheusRule:
1602
## @param metrics.prometheusRule.enabled Creates a Prometheus Operator prometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`)
1603
##
1604
enabled: false
1605
## @param metrics.prometheusRule.namespace Namespace for the prometheusRule Resource (defaults to the Release Namespace)
1606
##
1607
namespace: ""
1608
## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRule will be discovered by Prometheus
1609
##
1610
additionalLabels: {}
1611
## @param metrics.prometheusRule.rules Prometheus Rule definitions
1612
## - alert: Mysql-Down
1613
## expr: absent(up{job="mysql"} == 1)
1614
## for: 5m
1615
## labels:
1616
## severity: warning
1617
## service: mysql
1618
## annotations:
1619
## message: 'mysql instance {{`{{`}} $labels.instance {{`}}`}} is down'
1620
## summary: mysql instance is down
1621
##
1622
rules: []
1623

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.