Skip to content

Commit 4155cdf

Browse files
committed
chore(mysql-cluster): add networkpolicy
1 parent b9bab28 commit 4155cdf

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

addons/mysql-cluster/8.0/chart/mysql-cluster/templates/networkpolicy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ spec:
2525
- ports:
2626
- port: {{ .Values.router.service.portrw }}
2727
- port: {{ .Values.router.service.portro }}
28+
- port: 24901
2829
{{- if and .Values.metrics.enabled }}
2930
- port: {{ .Values.metrics.service.port }}
3031
{{ end }}

addons/mysql-cluster/8.0/chart/mysql-cluster/templates/primary/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ spec:
298298
if [[ -f "${MYSQL_ROOT_PASSWORD_FILE:-}" ]]; then
299299
password_aux=$(cat "$MYSQL_ROOT_PASSWORD_FILE")
300300
fi
301-
MYSQLD_EXPORTER_PASSWORD=${password_aux} /bin/mysqld_exporter --mysqld.address=localhost:3306 --mysqld.username=root {{- range .Values.metrics.extraArgs.primary }} {{ . }} {{- end }}
301+
MYSQLD_EXPORTER_PASSWORD=${password_aux} /opt/drycc/mysqld_exporter/bin/mysqld_exporter --mysqld.address=localhost:3306 --mysqld.username=root {{- range .Values.metrics.extraArgs.primary }} {{ . }} {{- end }}
302302
{{- end }}
303303
ports:
304304
- name: metrics

addons/mysql-cluster/8.0/chart/mysql-cluster/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ rbac:
971971
networkPolicy:
972972
## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
973973
##
974-
enabled: true
974+
enabled: true
975975
## @param networkPolicy.allowExternal The Policy model to apply.
976976
## When set to false, only pods with the correct
977977
## client label will have network access to the port MySQL is listening
@@ -1023,7 +1023,7 @@ volumePermissions:
10231023
metrics:
10241024
## @param metrics.enabled Start a side-car prometheus exporter
10251025
##
1026-
enabled: true
1026+
enabled: true
10271027
## @param metrics.image.registry Exporter image registry
10281028
## @param metrics.image.repository Exporter image repository
10291029
## @param metrics.image.tag Exporter image tag (immutable tags are recommended)
@@ -1032,9 +1032,9 @@ metrics:
10321032
## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
10331033
##
10341034
image:
1035-
registry: docker.io
1036-
repository: drycc/mysqld-exporter
1037-
tag: 0.14.0-debian-11-r45
1035+
registry: registry.drycc.cc
1036+
repository: drycc-addons/mysqld-exporter
1037+
tag: 0
10381038
digest: ""
10391039
pullPolicy: IfNotPresent
10401040
## Optionally specify an array of imagePullSecrets.

0 commit comments

Comments
 (0)