From 499265d96fbb94b034c292a4a1727f3f68941ba5 Mon Sep 17 00:00:00 2001 From: "Szekeres, Balazs (Nokia - HU/Budapest)" Date: Fri, 17 May 2019 10:32:06 +0200 Subject: [PATCH] Set time zone Registy container now uses the host time zone settings. Registry update container now uses the host time zone settings. Change-Id: I115cc0eb3049c759cbefb9b7fd39ac06fd021e04 Signed-off-by: Szekeres, Balazs (Nokia - HU/Budapest) --- ansible/roles/registry/templates/main/docker-registry.yml | 6 ++++++ ansible/roles/registry/templates/update/docker-registry-update.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ansible/roles/registry/templates/main/docker-registry.yml b/ansible/roles/registry/templates/main/docker-registry.yml index e81d44e..3711d11 100644 --- a/ansible/roles/registry/templates/main/docker-registry.yml +++ b/ansible/roles/registry/templates/main/docker-registry.yml @@ -51,6 +51,9 @@ spec: - name: REGISTRY_CONFIG value: /etc/docker-registry/docker-registry-main-config.yml volumeMounts: + - name: time-mount + mountPath: /etc/localtime + readOnly: true - name: config mountPath: /etc/docker-registry/ readOnly: true @@ -60,6 +63,9 @@ spec: mountPath: /etc/ssl/certs/ readOnly: true volumes: + - name: time-mount + hostPath: + path: /etc/localtime - name: config hostPath: path: /etc/docker-registry/ diff --git a/ansible/roles/registry/templates/update/docker-registry-update.yml b/ansible/roles/registry/templates/update/docker-registry-update.yml index 39b0ce9..483d6e9 100644 --- a/ansible/roles/registry/templates/update/docker-registry-update.yml +++ b/ansible/roles/registry/templates/update/docker-registry-update.yml @@ -51,6 +51,9 @@ spec: - name: REGISTRY_CONFIG value: /etc/docker-registry/docker-registry-update-config.yml volumeMounts: + - name: time-mount + mountPath: /etc/localtime + readOnly: true - name: config mountPath: /etc/docker-registry/ readOnly: true @@ -60,6 +63,9 @@ spec: mountPath: /etc/ssl/certs/ readOnly: true volumes: + - name: time-mount + hostPath: + path: /etc/localtime - name: config hostPath: path: /etc/docker-update-registry/ -- 2.16.6