Skip to content

Commit e3539b0

Browse files
committed
Upgraded version of Mysql modified values.yaml file.
1 parent b5a8711 commit e3539b0

File tree

6 files changed

+81
-30
lines changed

6 files changed

+81
-30
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module "mysql" {
7070
namespace = local.namespace
7171
mysqldb_config = {
7272
name = "mysql"
73-
app_version = "8.0.29-debian-11-r9"
73+
app_version = "8.0.36-debian-12-r10"
7474
environment = "prod"
7575
values_yaml = ""
7676
architecture = "replication"
@@ -180,12 +180,12 @@ No modules.
180180

181181
| Name | Description | Type | Default | Required |
182182
|------|-------------|------|---------|:--------:|
183-
| <a name="input_app_version"></a> [app\_version](#input\_app\_version) | Version of the MySQL application that will be deployed. | `string` | `"8.0.29-debian-11-r9"` | no |
183+
| <a name="input_app_version"></a> [app\_version](#input\_app\_version) | Version of the MySQL application that will be deployed. | `string` | `"8.0.36-debian-12-r10"` | no |
184184
| <a name="input_azure_container_name"></a> [azure\_container\_name](#input\_azure\_container\_name) | Azure container name | `string` | `""` | no |
185185
| <a name="input_azure_storage_account_key"></a> [azure\_storage\_account\_key](#input\_azure\_storage\_account\_key) | Azure storage account key | `string` | `""` | no |
186186
| <a name="input_azure_storage_account_name"></a> [azure\_storage\_account\_name](#input\_azure\_storage\_account\_name) | Azure storage account name | `string` | `""` | no |
187187
| <a name="input_bucket_provider_type"></a> [bucket\_provider\_type](#input\_bucket\_provider\_type) | Choose what type of provider you want (s3, gcs) | `string` | `"gcs"` | no |
188-
| <a name="input_chart_version"></a> [chart\_version](#input\_chart\_version) | Version of the Mysql chart that will be used to deploy MySQL application. | `string` | `"9.2.0"` | no |
188+
| <a name="input_chart_version"></a> [chart\_version](#input\_chart\_version) | Version of the Mysql chart that will be used to deploy MySQL application. | `string` | `"10.1.0"` | no |
189189
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | Specifies the name of the EKS cluster to deploy the MySQL application on. | `string` | `""` | no |
190190
| <a name="input_create_namespace"></a> [create\_namespace](#input\_create\_namespace) | Specify whether or not to create the namespace if it does not already exist. Set it to true to create the namespace. | `string` | `true` | no |
191191
| <a name="input_custom_user_password"></a> [custom\_user\_password](#input\_custom\_user\_password) | custom user password for MongoDB | `string` | `""` | no |

examples/complete/aws/helm/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ primary:
44
requiredDuringSchedulingIgnoredDuringExecution:
55
nodeSelectorTerms:
66
- matchExpressions:
7-
- key: "Infra-Services"
7+
- key: "Addons-Services"
88
operator: In
99
values:
1010
- "true"
@@ -37,7 +37,7 @@ secondary:
3737
requiredDuringSchedulingIgnoredDuringExecution:
3838
nodeSelectorTerms:
3939
- matchExpressions:
40-
- key: "Infra-Services"
40+
- key: "Addons-Services"
4141
operator: In
4242
values:
4343
- "true"
@@ -80,7 +80,7 @@ affinity:
8080
requiredDuringSchedulingIgnoredDuringExecution:
8181
nodeSelectorTerms:
8282
- matchExpressions:
83-
- key: "Infra-Services"
83+
- key: "Addons-Services"
8484
operator: In
8585
values:
8686
- "true"
@@ -100,4 +100,4 @@ restorejob:
100100
cpu: 100m
101101
limits:
102102
memory: 500Mi
103-
cpu: 200m
103+
cpu: 200m

examples/complete/aws/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
locals {
22
name = "mysql"
3-
region = "us-east-2"
3+
region = "us-west-2"
44
environment = "prod"
55
additional_tags = {
66
Owner = "organization_name"
77
Expires = "Never"
88
Department = "Engineering"
99
}
10-
create_namespace = false
10+
create_namespace = true
1111
namespace = "mysql"
12-
store_password_to_secret_manager = false
12+
store_password_to_secret_manager = true
1313
mysqldb_custom_credentials_enabled = true
1414
mysqldb_custom_credentials_config = {
1515
root_user = "root"
@@ -26,7 +26,7 @@ locals {
2626

2727
module "aws" {
2828
source = "squareops/mysql/kubernetes//modules/resources/aws"
29-
cluster_name = "cluster-name"
29+
cluster_name = ""
3030
environment = local.environment
3131
name = local.name
3232
namespace = local.namespace
@@ -43,7 +43,7 @@ module "mysql" {
4343
mysqldb_config = {
4444
name = local.name
4545
values_yaml = file("./helm/values.yaml")
46-
app_version = "8.0.29-debian-11-r9"
46+
app_version = "8.0.36-debian-12-r10"
4747
environment = local.environment
4848
architecture = "replication"
4949
custom_database = "test_db"

helm/values/mysqldb/values.yaml

Lines changed: 65 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ global:
1919
mysql_metrics_exporter:
2020
password: ${metrics_exporter_password}
2121

22+
compatibility:
23+
## Compatibility adaptations for Openshift
24+
##
25+
openshift:
26+
## @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)
27+
##
28+
adaptSecurityContext: auto
29+
2230
## @section Common parameters
2331

2432
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
@@ -49,6 +57,9 @@ commonLabels:
4957
##
5058
extraDeploy: []
5159

60+
serviceBindings:
61+
enabled: false
62+
5263
## Enable diagnostic mode in the deployment
5364
##
5465
diagnosticMode:
@@ -189,18 +200,17 @@ primary:
189200
explicit_defaults_for_timestamp
190201
basedir=/opt/bitnami/mysql
191202
plugin_dir=/opt/bitnami/mysql/lib/plugin
192-
port=3306
203+
port={{ .Values.primary.containerPorts.mysql }}
193204
socket=/opt/bitnami/mysql/tmp/mysql.sock
194205
datadir=/bitnami/mysql/data
195206
tmpdir=/opt/bitnami/mysql/tmp
196207
max_allowed_packet=16M
197-
bind-address=0.0.0.0
208+
bind-address=*
198209
pid-file=/opt/bitnami/mysql/tmp/mysqld.pid
199-
log_error=/opt/bitnami/mysql/logs/mysqld.log
210+
log-error=/opt/bitnami/mysql/logs/mysqld.log
200211
character-set-server=UTF8
201212
collation-server=utf8_general_ci
202-
slow_query_log=1
203-
slow_query_log_file=/bitnami/mysql/slow-log.log
213+
slow_query_log=0
204214
long_query_time=10.0
205215
206216
[client]
@@ -220,6 +230,8 @@ primary:
220230
## @param primary.updateStrategy.type Update strategy type for the MySQL primary statefulset
221231
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
222232
##
233+
containerPorts:
234+
mysql: 3306
223235
updateStrategy:
224236
type: RollingUpdate
225237
## @param primary.podAnnotations Additional pod annotations for MySQL primary pods
@@ -303,6 +315,9 @@ primary:
303315
##
304316
podSecurityContext:
305317
enabled: true
318+
fsGroupChangePolicy: Always
319+
sysctls: []
320+
supplementalGroups: []
306321
fsGroup: 1001
307322
## MySQL primary container security context
308323
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
@@ -312,8 +327,16 @@ primary:
312327
##
313328
containerSecurityContext:
314329
enabled: true
330+
seLinuxOptions: {}
315331
runAsUser: 1001
332+
runAsGroup: 1001
316333
runAsNonRoot: true
334+
allowPrivilegeEscalation: false
335+
capabilities:
336+
drop: ["ALL"]
337+
seccompProfile:
338+
type: "RuntimeDefault"
339+
readOnlyRootFilesystem: true
317340
## MySQL primary container's resource requests and limits
318341
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
319342
## We usually recommend not to specify default resources and to leave this as a conscious
@@ -584,12 +607,12 @@ secondary:
584607
datadir=/bitnami/mysql/data
585608
tmpdir=/opt/bitnami/mysql/tmp
586609
max_allowed_packet=16M
587-
bind-address=0.0.0.0
610+
bind-address=*
588611
pid-file=/opt/bitnami/mysql/tmp/mysqld.pid
589-
log_error=/opt/bitnami/mysql/logs/mysqld.log
612+
log-error=/opt/bitnami/mysql/logs/mysqld.log
590613
character-set-server=UTF8
591614
collation-server=utf8_general_ci
592-
slow_query_log=1
615+
slow_query_log=0
593616
slow_query_log_file=/bitnami/mysql/slow-log.log
594617
long_query_time=10.0
595618
@@ -693,8 +716,12 @@ secondary:
693716
## @param secondary.podSecurityContext.fsGroup Group ID for the mounted volumes' filesystem
694717
##
695718
podSecurityContext:
696-
enabled: true
697-
fsGroup: 1001
719+
enabled: true
720+
fsGroupChangePolicy: Always
721+
sysctls: []
722+
supplementalGroups: []
723+
fsGroup: 1001
724+
698725
## MySQL secondary container security context
699726
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
700727
## @param secondary.containerSecurityContext.enabled MySQL secondary container securityContext
@@ -703,8 +730,16 @@ secondary:
703730
##
704731
containerSecurityContext:
705732
enabled: true
733+
seLinuxOptions: {}
706734
runAsUser: 1001
735+
runAsGroup: 1001
707736
runAsNonRoot: true
737+
allowPrivilegeEscalation: false
738+
capabilities:
739+
drop: ["ALL"]
740+
seccompProfile:
741+
type: "RuntimeDefault"
742+
readOnlyRootFilesystem: true
708743
## MySQL secondary container's resource requests and limits
709744
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
710745
## We usually recommend not to specify default resources and to leave this as a conscious
@@ -953,7 +988,7 @@ serviceAccount:
953988
annotations: {}
954989
## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
955990
##
956-
automountServiceAccountToken: true
991+
automountServiceAccountToken: false
957992

958993
## Role Based Access
959994
## ref: https://kubernetes.io/docs/admin/authorization/rbac/
@@ -1022,8 +1057,8 @@ volumePermissions:
10221057
##
10231058
image:
10241059
registry: docker.io
1025-
repository: bitnami/bitnami-shell
1026-
tag: 11-debian-11-r10
1060+
repository: bitnami/os-shell
1061+
tag: 12-debian-12-r18
10271062
pullPolicy: IfNotPresent
10281063
## Optionally specify an array of imagePullSecrets.
10291064
## Secrets must be manually created in the namespace.
@@ -1054,7 +1089,7 @@ metrics:
10541089
image:
10551090
registry: docker.io
10561091
repository: bitnami/mysqld-exporter
1057-
tag: 0.14.0-debian-11-r9
1092+
tag: 0.15.1-debian-12-r10
10581093
pullPolicy: IfNotPresent
10591094
## Optionally specify an array of imagePullSecrets.
10601095
## Secrets must be manually created in the namespace.
@@ -1071,6 +1106,22 @@ metrics:
10711106
## @param metrics.service.port MySQL Prometheus Exporter service port
10721107
## @param metrics.service.annotations [object] Prometheus exporter service annotations
10731108
##
1109+
containerSecurityContext:
1110+
enabled: true
1111+
seLinuxOptions: {}
1112+
runAsUser: 1001
1113+
runAsGroup: 1001
1114+
runAsNonRoot: true
1115+
allowPrivilegeEscalation: false
1116+
capabilities:
1117+
drop: ["ALL"]
1118+
seccompProfile:
1119+
type: "RuntimeDefault"
1120+
readOnlyRootFilesystem: true
1121+
## @param metrics.containerPorts.http Container port for http
1122+
##
1123+
containerPorts:
1124+
http: 9104
10741125
service:
10751126
type: ClusterIP
10761127
port: 9104

modules/backup/templates/cronjob.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
spec:
1414
template:
1515
spec:
16-
affinity:
16+
affinity:
1717
{{- toYaml .Values.affinity | nindent 12 }}
1818
restartPolicy: OnFailure
1919
imagePullSecrets:
@@ -44,5 +44,5 @@ spec:
4444
value: "s3"
4545
- name: AWS_DEFAULT_REGION
4646
value: {{ .Values.backup.aws_default_region }}
47-
resources:
47+
resources:
4848
{{- toYaml .Values.backupjob.resources | nindent 14 }}

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ variable "mysqldb_custom_credentials_config" {
3939

4040
variable "app_version" {
4141
type = string
42-
default = "8.0.29-debian-11-r9"
42+
default = "8.0.36-debian-12-r10"
4343
description = "Version of the MySQL application that will be deployed."
4444
}
4545

4646
variable "chart_version" {
4747
type = string
48-
default = "9.2.0"
48+
default = "10.1.0"
4949
description = "Version of the Mysql chart that will be used to deploy MySQL application."
5050
}
5151

0 commit comments

Comments
 (0)