Containers time zone sync
authoryuryn <Yury.Novitsky@Amdocs.com>
Wed, 13 Sep 2017 16:21:03 +0000 (19:21 +0300)
committerYury Novitsky <Yury.Novitsky@Amdocs.com>
Thu, 14 Sep 2017 15:17:08 +0000 (15:17 +0000)
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>
templates/aai-deployment.yaml
templates/aai-resources-deployment.yaml
templates/aai-traversal-deployment.yaml
templates/data-router-deployment.yaml
templates/elasticsearch-deployment.yaml
templates/gremlin-deployment.yaml
templates/hbase-deployment.yaml
templates/modelloader-deployment.yaml
templates/search-data-service-deployment.yaml
templates/sparky-be-deployment.yaml

index 9b55d4e..dc375cb 100644 (file)
@@ -40,6 +40,9 @@ spec:
         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 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: aai-service-log
           hostPath:
             path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/log/"
index 1aff10b..c61bc6f 100644 (file)
@@ -55,6 +55,9 @@ spec:
         - 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 @@ spec:
           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/"
index debd1f6..ec387b0 100644 (file)
@@ -57,6 +57,9 @@ spec:
         - 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 @@ spec:
           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/"
index f823061..4473dcf 100644 (file)
@@ -33,6 +33,9 @@ spec:
         - 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 @@ spec:
           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/"
index 1c2a2ad..1fc92ad 100644 (file)
@@ -26,11 +26,17 @@ spec:
           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"
index d28b286..75b3e92 100644 (file)
@@ -58,5 +58,13 @@ spec:
             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"
index 98c3882..c261504 100644 (file)
@@ -31,5 +31,13 @@ spec:
             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"
index 5391273..22b7281 100644 (file)
@@ -18,6 +18,9 @@ spec:
         - 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 @@ spec:
         - 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/"
index f2db937..7413275 100644 (file)
@@ -25,6 +25,9 @@ spec:
         - 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 @@ spec:
           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/"
index 6a8ff93..a17325c 100644 (file)
@@ -25,6 +25,9 @@ spec:
         - 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 @@ spec:
           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/"