File tree Expand file tree Collapse file tree
addons/mysql-cluster/8.0/chart/mysql-cluster Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,8 +172,10 @@ spec:
172172 mountPath : /opt/drycc/mysql/conf
173173
174174 ports :
175- - name : router
175+ - name : routerrw
176176 containerPort : 6446
177+ - name : routerro
178+ containerPort : 6447
177179 {{- if not .Values.diagnosticMode.enabled }}
178180 {{- if .Values.router.customLivenessProbe }}
179181 livenessProbe : {{- include "common.tplvalues.render" (dict "value" .Values.router.customLivenessProbe "context" $) | nindent 12 }}
Original file line number Diff line number Diff line change @@ -41,10 +41,19 @@ spec:
4141 loadBalancerIP : {{ .Values.router.service.loadBalancerIP }}
4242 {{- end }}
4343 ports :
44- - name : router
45- port : {{ .Values.router.service.ports.router }}
44+ - name : routerrw
45+ port : {{ .Values.router.service.portrw }}
4646 protocol : TCP
47- targetPort : router
47+ targetPort : routerrw
48+ {{- if (and (or (eq .Values.router.service.type "NodePort") (eq .Values.router.service.type "LoadBalancer")) .Values.router.service.nodePorts.mysql) }}
49+ nodePort : {{ .Values.router.service.nodePorts.mysql }}
50+ {{- else if eq .Values.router.service.type "ClusterIP" }}
51+ nodePort : null
52+ {{- end }}
53+ - name : routerro
54+ port : {{ .Values.router.service.portro}}
55+ protocol : TCP
56+ targetPort : routerro
4857 {{- if (and (or (eq .Values.router.service.type "NodePort") (eq .Values.router.service.type "LoadBalancer")) .Values.router.service.nodePorts.mysql) }}
4958 nodePort : {{ .Values.router.service.nodePorts.mysql }}
5059 {{- else if eq .Values.router.service.type "ClusterIP" }}
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ SPDX-License-Identifier: APACHE-2.0
44*/}}
55
66{{- $host := include "mysql.router.fullname" . }}
7- {{- $port := print .Values.router.service.ports.router }}
7+ {{- $portrw := print .Values.router.service.portrw }}
8+ {{- $port := print .Values.router.service.portrw }}
9+ {{- $portro := print .Values.router.service.portro }}
810{{- $rootPassword := include "common.secrets.passwords.manage" (dict "secret" (include "mysql.secretName" .) "key" "mysql-root-password" "length" 10 "providedValues" (list "auth.rootPassword") "context" $) | trimAll "\"" | b64dec }}
911{{- $password := include "common.secrets.passwords.manage" (dict "secret" (include "mysql.secretName" .) "key" "mysql-password" "length" 10 "providedValues" (list "auth.password") "context" $) | trimAll "\"" | b64dec }}
1012{{- if eq (include "mysql.createSecret" .) "true" }}
7274 provider : {{ print "drycc" | b64enc | quote }}
7375 type : {{ print "mysql" | b64enc | quote }}
7476 host : {{ print $host | b64enc | quote }}
75- port : {{ print $port | b64enc | quote }}
77+ portrw : {{ print $portrw | b64enc | quote }}
78+ portro : {{ print $portro | b64enc | quote }}
7679 username : {{ print .Values.auth.username | b64enc | quote }}
7780 {{- if $database }}
7881 database : {{ print $database | b64enc | quote }}
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ primary:
214214 configuration : |-
215215 [mysqld]
216216 # server
217- #default_authentication_plugin=mysql_native_password
217+ max_connections=500
218218 default_authentication_plugin=caching_sha2_password
219219 skip-name-resolve
220220 relay-log=relay-log
@@ -857,8 +857,8 @@ router:
857857 type : LoadBalancer
858858 # # @param secondary.service.ports.mysql MySQL secondary Kubernetes service port
859859 # #
860- ports :
861- router : 6446
860+ portrw : 3306
861+ portro : 3307
862862 # # @param secondary.service.nodePorts.mysql MySQL secondary Kubernetes service node port
863863 # # ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
864864 # #
You can’t perform that action at this time.
0 commit comments