Set time zone 28/728/1
authorSzekeres, Balazs (Nokia - HU/Budapest) <balazs.szekeres@nokia.com>
Fri, 17 May 2019 08:12:23 +0000 (10:12 +0200)
committerSzekeres, Balazs (Nokia - HU/Budapest) <balazs.szekeres@nokia.com>
Fri, 17 May 2019 08:12:23 +0000 (10:12 +0200)
Fluentd container now uses the host time zone settings.

Change-Id: Ieb8cb1fd7cca201d4c9bca418c08840e985278b4
Signed-off-by: Szekeres, Balazs (Nokia - HU/Budapest) <balazs.szekeres@nokia.com>
ansible/roles/fluentd/templates/fluentd-ds.yaml

index 751aaa1..a80cfd6 100644 (file)
@@ -79,6 +79,9 @@ spec:
           - name: FLUENTD_CONF
             value: "fluent.conf"
         volumeMounts:
+        - name: time-mount
+          mountPath: /etc/localtime
+          readOnly: true
         - name: varlog
           mountPath: /var/log
         - name: varlibdockercontainers
@@ -90,6 +93,9 @@ spec:
           mountPath: /etc/fluentd/config.d
       terminationGracePeriodSeconds: 30
       volumes:
+      - name: time-mount
+        hostPath:
+          path: /etc/localtime
       - name: varlog
         hostPath:
           path: /var/log