From 97f61e99faf44df35648c23c9497f4c4248ca6a6 Mon Sep 17 00:00:00 2001 From: "Szekeres, Balazs (Nokia - HU/Budapest)" Date: Fri, 17 May 2019 10:07:23 +0200 Subject: [PATCH] Set time zone Flannel container now uses the host time zone settings. Change-Id: Ia2e13078c5ab796f486a9ba6ea6e31ce4d916a47 Signed-off-by: Szekeres, Balazs (Nokia - HU/Budapest) --- ansible/roles/flannel/templates/flannel-ds.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/flannel/templates/flannel-ds.yaml b/ansible/roles/flannel/templates/flannel-ds.yaml index 90e7386..41e78a2 100644 --- a/ansible/roles/flannel/templates/flannel-ds.yaml +++ b/ansible/roles/flannel/templates/flannel-ds.yaml @@ -63,11 +63,17 @@ spec: fieldRef: fieldPath: metadata.namespace volumeMounts: + - name: time-mount + mountPath: /etc/localtime + readOnly: true - name: run mountPath: /run - name: flannel-cfg mountPath: /etc/kube-flannel/ volumes: + - name: time-mount + hostPath: + path: /etc/localtime - name: run hostPath: path: /run -- 2.16.6