From f97902f2228c21bd53848d886ad723fc048ed2f1 Mon Sep 17 00:00:00 2001 From: runkecheng <1131648942@qq.com> Date: Tue, 7 Jun 2022 15:25:04 +0800 Subject: [PATCH] fix(chart): Operator time zone is inconsistent with MySQL. Operator mount the host's time zone fix: #511 --- charts/mysql-operator/templates/deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/mysql-operator/templates/deployment.yaml b/charts/mysql-operator/templates/deployment.yaml index e05a828d..f0ffa561 100644 --- a/charts/mysql-operator/templates/deployment.yaml +++ b/charts/mysql-operator/templates/deployment.yaml @@ -26,6 +26,9 @@ spec: secret: defaultMode: 420 secretName: "{{ template "webhook.name" . }}-certs" + - name: timezone + hostPath: + path: /etc/localtime containers: {{- if .Values.rbacProxy.create }} - name: kube-rbac-proxy @@ -42,6 +45,9 @@ spec: ports: - containerPort: 8443 name: https + volumeMounts: + - name: timezone + mountPath: /etc/localtime {{- end }} - name: manager ports: @@ -52,6 +58,8 @@ spec: - name: cert mountPath: /tmp/k8s-webhook-server/serving-certs/ readOnly: true + - name: timezone + mountPath: /etc/localtime command: - /manager args: