Containers time zone sync

Make sure time zones on the containers are in sync with the hosting machines

Change-Id: Ie22608bda63cbcdf564f73adcdd3e829afad05ca
Issue-ID: OOM-299
Signed-off-by: yuryn <Yury.Novitsky@Amdocs.com>
diff --git a/kubernetes/aai/templates/aai-deployment.yaml b/kubernetes/aai/templates/aai-deployment.yaml
index 9b55d4e..dc375cb 100644
--- a/kubernetes/aai/templates/aai-deployment.yaml
+++ b/kubernetes/aai/templates/aai-deployment.yaml
@@ -40,6 +40,9 @@
         image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}"
         imagePullPolicy: {{ .Values.pullPolicy }}
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /dev/log
           name: aai-service-log
         - mountPath: /usr/local/etc/haproxy/haproxy.cfg
@@ -53,6 +56,9 @@
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: aai-service-log
           hostPath:
             path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/log/"
diff --git a/kubernetes/aai/templates/aai-resources-deployment.yaml b/kubernetes/aai/templates/aai-resources-deployment.yaml
index 1aff10b..c61bc6f 100644
--- a/kubernetes/aai/templates/aai-resources-deployment.yaml
+++ b/kubernetes/aai/templates/aai-resources-deployment.yaml
@@ -55,6 +55,9 @@
         - name: CHEF_GIT_URL
           value: http://gerrit.onap.org/r/aai
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /opt/aai/logroot/
           name: aai-resources-logs
         - mountPath: /var/chef/aai-data/
@@ -69,6 +72,9 @@
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: aai-resources-logs
         hostPath:
           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-resources/logs/"
diff --git a/kubernetes/aai/templates/aai-traversal-deployment.yaml b/kubernetes/aai/templates/aai-traversal-deployment.yaml
index debd1f6..ec387b0 100644
--- a/kubernetes/aai/templates/aai-traversal-deployment.yaml
+++ b/kubernetes/aai/templates/aai-traversal-deployment.yaml
@@ -57,6 +57,9 @@
         - name: CHEF_GIT_URL
           value: http://gerrit.onap.org/r/aai
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /opt/aai/logroot/
           name: aai-traversal-logs
         - mountPath: /var/chef/aai-data/
@@ -71,6 +74,9 @@
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: aai-traversal-logs
         hostPath:
           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-traversal/logs/"
diff --git a/kubernetes/aai/templates/data-router-deployment.yaml b/kubernetes/aai/templates/data-router-deployment.yaml
index f823061..4473dcf 100644
--- a/kubernetes/aai/templates/data-router-deployment.yaml
+++ b/kubernetes/aai/templates/data-router-deployment.yaml
@@ -33,6 +33,9 @@
         - name: JAVA_HOME
           value: usr/lib/jvm/java-8-openjdk-amd64
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /opt/app/data-router/config/
           name: data-router-config
         - mountPath: /opt/app/data-router/dynamic/
@@ -47,6 +50,9 @@
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: data-router-config
         hostPath:
           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/appconfig/"
diff --git a/kubernetes/aai/templates/elasticsearch-deployment.yaml b/kubernetes/aai/templates/elasticsearch-deployment.yaml
index 1c2a2ad..1fc92ad 100644
--- a/kubernetes/aai/templates/elasticsearch-deployment.yaml
+++ b/kubernetes/aai/templates/elasticsearch-deployment.yaml
@@ -26,11 +26,17 @@
           initialDelaySeconds: 5
           periodSeconds: 10
         volumeMounts:
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
         - name: elasticsearch-config
           mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
         - name: elasticsearch-data
           mountPath: /usr/share/elasticsearch/data
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: elasticsearch-config
         hostPath:
           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/elasticsearch/config/elasticsearch.yml"
diff --git a/kubernetes/aai/templates/gremlin-deployment.yaml b/kubernetes/aai/templates/gremlin-deployment.yaml
index d28b286..75b3e92 100644
--- a/kubernetes/aai/templates/gremlin-deployment.yaml
+++ b/kubernetes/aai/templates/gremlin-deployment.yaml
@@ -58,5 +58,13 @@
             port: 8182
           initialDelaySeconds: 5
           periodSeconds: 10
+        volumeMounts:
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
+      volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/templates/hbase-deployment.yaml b/kubernetes/aai/templates/hbase-deployment.yaml
index 98c3882..c261504 100644
--- a/kubernetes/aai/templates/hbase-deployment.yaml
+++ b/kubernetes/aai/templates/hbase-deployment.yaml
@@ -31,5 +31,13 @@
             port: 2181
           initialDelaySeconds: 5
           periodSeconds: 10
+        volumeMounts:
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
+      volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/templates/modelloader-deployment.yaml b/kubernetes/aai/templates/modelloader-deployment.yaml
index 5391273..22b7281 100644
--- a/kubernetes/aai/templates/modelloader-deployment.yaml
+++ b/kubernetes/aai/templates/modelloader-deployment.yaml
@@ -18,6 +18,9 @@
         - name: CONFIG_HOME
           value: /opt/app/model-loader/config/
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /opt/app/model-loader/config/
           name: aai-model-loader-config
         - mountPath: /logs/
@@ -29,6 +32,9 @@
         - containerPort: 8080
         - containerPort: 8443
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: aai-model-loader-config
         hostPath:
           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/appconfig/"
diff --git a/kubernetes/aai/templates/search-data-service-deployment.yaml b/kubernetes/aai/templates/search-data-service-deployment.yaml
index f2db937..7413275 100644
--- a/kubernetes/aai/templates/search-data-service-deployment.yaml
+++ b/kubernetes/aai/templates/search-data-service-deployment.yaml
@@ -25,6 +25,9 @@
         - name: KEY_MANAGER_PASSWORD
           value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /opt/app/search-data-service/config/
           name: aai-search-data-service-config
         - mountPath: /logs/
@@ -37,6 +40,9 @@
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: aai-search-data-service-config
         hostPath:
           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/appconfig/"
diff --git a/kubernetes/aai/templates/sparky-be-deployment.yaml b/kubernetes/aai/templates/sparky-be-deployment.yaml
index 6a8ff93..a17325c 100644
--- a/kubernetes/aai/templates/sparky-be-deployment.yaml
+++ b/kubernetes/aai/templates/sparky-be-deployment.yaml
@@ -25,6 +25,9 @@
         - name: KEY_STORE_PASSWORD
           value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /opt/app/sparky/config/
           name: aai-sparky-be-config
         - mountPath: /logs/
@@ -37,6 +40,9 @@
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: aai-sparky-be-config
         hostPath:
           path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/appconfig/"