Skip to content

Commit ea7c974

Browse files
committed
fix(chart): Operator time zone is inconsistent with MySQL.
Operator mount the host's time zone fix: radondb#511
1 parent a67fe48 commit ea7c974

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

charts/mysql-operator/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ spec:
2626
secret:
2727
defaultMode: 420
2828
secretName: "{{ template "webhook.name" . }}-certs"
29+
- name: timezone
30+
hostPath:
31+
path: /etc/localtime
2932
containers:
3033
{{- if .Values.rbacProxy.create }}
3134
- name: kube-rbac-proxy
@@ -42,6 +45,9 @@ spec:
4245
ports:
4346
- containerPort: 8443
4447
name: https
48+
volumeMounts:
49+
- name: timezone
50+
mountPath: /etc/localtime
4551
{{- end }}
4652
- name: manager
4753
ports:
@@ -52,6 +58,8 @@ spec:
5258
- name: cert
5359
mountPath: /tmp/k8s-webhook-server/serving-certs/
5460
readOnly: true
61+
- name: timezone
62+
mountPath: /etc/localtime
5563
command:
5664
- /manager
5765
args:

0 commit comments

Comments
 (0)