From 41ec5aaed80f6cd4f2a6d900fb9d9e99405e005c Mon Sep 17 00:00:00 2001 From: root Date: Fri, 23 Aug 2019 10:39:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=B6=E5=8C=BA=E6=8C=82?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/core/core-dpl.yaml | 5 +++++ templates/jobservice/jobservice-dpl.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/templates/core/core-dpl.yaml b/templates/core/core-dpl.yaml index 0b0397b..9f63e40 100644 --- a/templates/core/core-dpl.yaml +++ b/templates/core/core-dpl.yaml @@ -59,6 +59,8 @@ spec: ports: - containerPort: 8080 volumeMounts: + - name: etc-localtime + mountPath: /etc/localtime - name: config mountPath: /etc/core/app.conf subPath: app.conf @@ -80,6 +82,9 @@ spec: {{ toYaml .Values.core.resources | indent 10 }} {{- end }} volumes: + - name: etc-localtime + hostPath: + path: /etc/localtime - name: config configMap: name: {{ template "harbor.core" . }} diff --git a/templates/jobservice/jobservice-dpl.yaml b/templates/jobservice/jobservice-dpl.yaml index c18fb4e..fcf7961 100644 --- a/templates/jobservice/jobservice-dpl.yaml +++ b/templates/jobservice/jobservice-dpl.yaml @@ -69,7 +69,12 @@ spec: subPath: config.yml - name: data mountPath: /var/log/jobs + - name: etc-localtime + mountPath: /etc/localtime volumes: + - name: etc-localtime + hostPath: + path: /etc/localtime - name: jobservice-config configMap: name: "{{ template "harbor.jobservice" . }}" -- 2.26.0