diff --git a/templates/adminserver/adminserver-ss.yaml b/templates/adminserver/adminserver-ss.yaml index a07eb6e014b3a14e1f2617e061f6e959ebd961a0..6d906a8869631c47aadee0652dd6d0e80b7f58d0 100644 --- a/templates/adminserver/adminserver-ss.yaml +++ b/templates/adminserver/adminserver-ss.yaml @@ -46,7 +46,12 @@ spec: - name: adminserver-key mountPath: /etc/adminserver/key subPath: key + - name: etc-localtime + mountPath: /etc/localtime volumes: + - name: etc-localtime + hostPath: + path: /etc/localtime {{- if not .Values.persistence.enabled }} - name: data hostPath: diff --git a/templates/database/database-ss.yaml b/templates/database/database-ss.yaml index 65742d6d1822a2ddcc1a134686588bc00e135186..73c37779c75d2bb22edbacafdb8d2ca62519c390 100644 --- a/templates/database/database-ss.yaml +++ b/templates/database/database-ss.yaml @@ -40,8 +40,13 @@ spec: volumeMounts: - name: data mountPath: /var/lib/postgresql/data - {{- if not .Values.persistence.enabled }} + - name: etc-localtime + mountPath: /etc/localtime volumes: + - name: etc-localtime + hostPath: + path: /etc/localtime + {{- if not .Values.persistence.enabled }} - name: data hostPath: path: /data/{{ .Release.Namespace }}/{{ .Release.Name }}/database diff --git a/templates/jobservice/jobservice-dpl.yaml b/templates/jobservice/jobservice-dpl.yaml index b75de27611e8e993c6c9776aea57f3f6909bf4fc..a99bcd3ef0a423e813880db654f01cc1cb6f7b89 100644 --- a/templates/jobservice/jobservice-dpl.yaml +++ b/templates/jobservice/jobservice-dpl.yaml @@ -37,7 +37,12 @@ spec: subPath: config.yml - name: job-logs 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.fullname" . }}-jobservice" diff --git a/templates/notary/notary-server.yaml b/templates/notary/notary-server.yaml index 53bca9765f5d90a0d0406f2edad320205c4e4db5..4abac77ff5c3787b4eaf7251fd33d16668904e4e 100644 --- a/templates/notary/notary-server.yaml +++ b/templates/notary/notary-server.yaml @@ -33,7 +33,12 @@ spec: - name: root-certificate mountPath: /root.crt subPath: tokenServiceRootCertBundle + - name: etc-localtime + mountPath: /etc/localtime volumes: + - name: etc-localtime + hostPath: + path: /etc/localtime - name: notary-config configMap: name: "{{ template "harbor.fullname" . }}-notary" diff --git a/templates/notary/notary-signer.yaml b/templates/notary/notary-signer.yaml index a4450aaacd2c9fc46d46430e9e08a42716cf52ca..db367c4bee41ba3de13b9584a131b2400a432a42 100644 --- a/templates/notary/notary-signer.yaml +++ b/templates/notary/notary-signer.yaml @@ -32,7 +32,12 @@ spec: volumeMounts: - name: notary-config mountPath: /etc/notary + - name: etc-localtime + mountPath: /etc/localtime volumes: + - name: etc-localtime + hostPath: + path: /etc/localtime - name: notary-config configMap: name: "{{ template "harbor.fullname" . }}-notary" diff --git a/templates/redis/redis.dp.yml b/templates/redis/redis.dp.yml index 0440eafd0fade5ed7d600f9b8e21c33ff11a9d17..83c34882e7c4a230ea26e72c0382b30ba99af8ea 100644 --- a/templates/redis/redis.dp.yml +++ b/templates/redis/redis.dp.yml @@ -23,4 +23,11 @@ spec: args: ["--save","''","--appendonly","no"] ports: - name: redis - containerPort: 6379 \ No newline at end of file + containerPort: 6379 + volumeMounts: + - name: etc-localtime + mountPath: /etc/localtime + volumes: + - name: etc-localtime + hostPath: + path: /etc/localtime \ No newline at end of file diff --git a/templates/registry/registry-ss.yaml b/templates/registry/registry-ss.yaml index 48f9300d070da59f6cb547d4b97bd8cb49a013fe..1e7193d9bb503f1662d82e655bcab7dc951447ab 100644 --- a/templates/registry/registry-ss.yaml +++ b/templates/registry/registry-ss.yaml @@ -97,7 +97,12 @@ spec: - name: registry-config mountPath: /etc/registry/config.yml subPath: config.yml + - name: etc-localtime + mountPath: /etc/localtime volumes: + - name: etc-localtime + hostPath: + path: /etc/localtime - name: registry-root-certificate secret: secretName: "{{ template "harbor.fullname" . }}-ui" diff --git a/templates/ui/ui-dpl.yaml b/templates/ui/ui-dpl.yaml index cb572321d3fa332ea1ae4521db4d3814f871e00d..5d014c0342bd6a0cd3f7e1b7c85e65cc4b8fdc94 100644 --- a/templates/ui/ui-dpl.yaml +++ b/templates/ui/ui-dpl.yaml @@ -67,7 +67,12 @@ spec: {{- end }} - name: psc mountPath: /etc/ui/token + - name: etc-localtime + mountPath: /etc/localtime volumes: + - name: etc-localtime + hostPath: + path: /etc/localtime - name: ui-config configMap: name: "{{ template "harbor.fullname" . }}-ui"