Containers time zone sync 41/12241/2
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>
40 files changed:
kubernetes/aai/templates/aai-deployment.yaml
kubernetes/aai/templates/aai-resources-deployment.yaml
kubernetes/aai/templates/aai-traversal-deployment.yaml
kubernetes/aai/templates/data-router-deployment.yaml
kubernetes/aai/templates/elasticsearch-deployment.yaml
kubernetes/aai/templates/gremlin-deployment.yaml
kubernetes/aai/templates/hbase-deployment.yaml
kubernetes/aai/templates/modelloader-deployment.yaml
kubernetes/aai/templates/search-data-service-deployment.yaml
kubernetes/aai/templates/sparky-be-deployment.yaml
kubernetes/appc/templates/appc-deployment.yaml
kubernetes/appc/templates/db-deployment.yaml
kubernetes/appc/templates/dgbuilder-deployment.yaml
kubernetes/message-router/templates/message-router-dmaap.yaml
kubernetes/message-router/templates/message-router-kafka.yaml
kubernetes/message-router/templates/message-router-zookeeper.yaml
kubernetes/mso/templates/db-deployment.yaml
kubernetes/mso/templates/mso-deployment.yaml
kubernetes/policy/templates/dep-brmsgw.yaml
kubernetes/policy/templates/dep-drools.yaml
kubernetes/policy/templates/dep-maria.yaml
kubernetes/policy/templates/dep-nexus.yaml
kubernetes/policy/templates/dep-pap.yaml
kubernetes/policy/templates/dep-pdp.yaml
kubernetes/portal/templates/portal-apps-deployment.yaml
kubernetes/portal/templates/portal-mariadb-deployment.yaml
kubernetes/portal/templates/portal-vnc-dep.yaml
kubernetes/portal/templates/portal-widgets-deployment.yaml
kubernetes/robot/templates/robot-deployment.yaml
kubernetes/sdc/templates/sdc-be.yaml
kubernetes/sdc/templates/sdc-cs.yaml
kubernetes/sdc/templates/sdc-es.yaml
kubernetes/sdc/templates/sdc-fe.yaml
kubernetes/sdc/templates/sdc-kb.yaml
kubernetes/sdnc/templates/db-deployment.yaml
kubernetes/sdnc/templates/dgbuilder-deployment.yaml
kubernetes/sdnc/templates/sdnc-deployment.yaml
kubernetes/sdnc/templates/web-deployment.yaml
kubernetes/vid/templates/vid-mariadb-deployment.yaml
kubernetes/vid/templates/vid-server-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/"
index 8be421c..8046107 100644 (file)
@@ -55,6 +55,9 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: appc-controller-container
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /opt/openecomp/appc/data/properties/appc.properties
           name: appc-properties
         - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties
@@ -72,6 +75,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: appc-properties
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/appc.properties
index 542f8f4..560f482 100644 (file)
@@ -22,6 +22,9 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: appc-db-container
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /var/lib/mysql
           name: appc-data
         ports:
@@ -33,6 +36,9 @@ spec:
           periodSeconds: 10
       restartPolicy: Always
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: appc-data
         persistentVolumeClaim:
           claimName: appc-db
index e034257..0792393 100644 (file)
@@ -63,6 +63,14 @@ spec:
             port: 3100
           initialDelaySeconds: 5
           periodSeconds: 10
+        volumeMounts:
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
+      volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       restartPolicy: Always
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
index 59c57f8..1cc79c8 100644 (file)
@@ -54,6 +54,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
           name: appprops
         - mountPath: /appl/dmaapMR1/etc/cadi.properties
@@ -62,6 +65,9 @@ spec:
           name: mykey
       restartPolicy: Always
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: appprops
         hostPath:
           path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/MsgRtrApi.properties
index ab5c3d4..1564f9b 100644 (file)
@@ -62,6 +62,9 @@ spec:
         - name: KAFKA_PORT
           value: "9092"
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /var/run/docker.sock
           name: docker-socket
         - mountPath: /kafka
@@ -70,6 +73,9 @@ spec:
           name: start-kafka
       restartPolicy: Always
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: docker-socket
         hostPath:
           path: /var/run/docker.sock
index c07ef3a..0377beb 100644 (file)
@@ -25,10 +25,16 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /opt/zookeeper-3.4.9/data
           name: zookeeper-data
       restartPolicy: Always
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: zookeeper-data
         persistentVolumeClaim:
           claimName: message-router-zookeeper
index 389fb5a..4722c4a 100644 (file)
@@ -28,6 +28,9 @@ spec:
           - name: MARIADB_VERSION
             value: "10.1.11+maria-1~jessie"
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /etc/mysql/conf.d
           name: mso-mariadb-conf
         - mountPath: /docker-entrypoint-initdb.d
@@ -43,6 +46,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: mso-mariadb-conf
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mariadb/conf.d
index 0f3034f..8973db3 100644 (file)
@@ -47,6 +47,9 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: mso
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /shared
           name: mso
         - mountPath: /docker-files
@@ -66,6 +69,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: mso
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mso
index 17e4896..e47b040 100644 (file)
@@ -55,9 +55,15 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: brmsgw
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /tmp/policy-install/config
           name: pe
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: pe
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
index 75055c1..9c3fc29 100644 (file)
@@ -64,11 +64,17 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /tmp/policy-install/config
           name: drools
         - mountPath: /usr/share/maven/conf/settings.xml
           name: drools-settingsxml
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: drools-settingsxml
           hostPath:
             path:  /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/drools/settings.xml
index 30d0db3..57e0eb2 100644 (file)
@@ -25,6 +25,9 @@ spec:
         ports:
         - containerPort: 3306
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /var/lib/mysql
           name: policy-mariadb-data
         readinessProbe:
@@ -33,6 +36,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: policy-mariadb-data
         persistentVolumeClaim:
           claimName: policy-db
index de067b1..84a4433 100644 (file)
@@ -47,5 +47,13 @@ spec:
         image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}"
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: nexus
+        volumeMounts:
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
+      volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
index fcb590b..794c654 100644 (file)
@@ -81,9 +81,15 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /tmp/policy-install/config/
           name: pe
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: pe
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
index c8a4f71..d7d697d 100644 (file)
@@ -60,9 +60,15 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /tmp/policy-install/config
           name: pe
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: pe
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
index c607867..2048a69 100755 (executable)
@@ -64,6 +64,9 @@ spec:
               command: ["/bin/sh", "-c", "echo yes > /portal_root/boot.txt"]
         name: portalapps
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/fusion/conf/fusion.properties"
           name: portal-fusion-properties
         - mountPath: "{{ .Values.onapPortal.webappsDir }}/ECOMPPORTAL/WEB-INF/classes/openid-connect.properties"
@@ -102,6 +105,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: portal-fusion-properties
           hostPath:
             path:  /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/fusion.properties
index 16c0d7e..f4e46ab 100755 (executable)
@@ -23,6 +23,9 @@ spec:
         - name: MYSQL_ROOT_PASSWORD
           value: password
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /var/lib/mysql
           name: portal-mariadb-data
         ports:
@@ -34,6 +37,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: portal-mariadb-data
         persistentVolumeClaim:
           claimName: portal-db
index 6c90bbf..075b1f1 100644 (file)
@@ -120,12 +120,18 @@ spec:
           value: password
         name: vnc-portal
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /ubuntu-init/
           name: ubuntu-init
         securityContext:
           privileged: true
       securityContext: {}
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: ubuntu-init
           emptyDir: {}
       imagePullSecrets:
index 5b020e5..fb6b4d8 100644 (file)
@@ -44,6 +44,9 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }} 
         name: portalwidgets
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /application.properties
           name: portalwidgets-application-properties
         ports:
@@ -54,6 +57,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: portalwidgets-application-properties
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ECOMPWIDGETMS/application.properties
index 3a98f87..da017db 100644 (file)
@@ -18,6 +18,9 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: robot
         volumeMounts:
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
         - name: robot-eteshare
           mountPath: /share
         - name: robot-resources-asdc-interface
@@ -44,6 +47,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: robot-eteshare
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare
index d853f18..77c7545 100644 (file)
@@ -81,6 +81,7 @@ spec:
           name: sdc-environments
         - mountPath: /etc/localtime
           name: sdc-localtime
+          readOnly: true
         - mountPath: /var/lib/jetty/logs
           name: sdc-logs
         ports:
index 9021194..844bd20 100644 (file)
@@ -61,6 +61,7 @@ spec:
           name: sdc-environments
         - mountPath: /etc/localtime
           name: sdc-localtime
+          readOnly: true
         - mountPath: /var/lib/jetty/logs
           name: sdc-logs
         ports:
index 59e69db..e322ff4 100644 (file)
@@ -35,6 +35,7 @@ spec:
           name: sdc-environments
         - mountPath: /etc/localtime
           name: sdc-localtime
+          readOnly: true
         - mountPath: /var/lib/jetty/logs
           name: sdc-logs
         ports:
index 915d18b..0ca83ae 100644 (file)
@@ -65,6 +65,7 @@ spec:
           name: sdc-environments
         - mountPath: /etc/localtime
           name: sdc-localtime
+          readOnly: true
         - mountPath: /var/lib/jetty/logs
           name: sdc-logs
         - mountPath: /root/chef-solo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb
index 67110f1..0d77e42 100644 (file)
@@ -57,6 +57,7 @@ spec:
           name: sdc-environments
         - mountPath: /etc/localtime
           name: sdc-localtime
+          readOnly: true
         - mountPath: /var/lib/jetty/logs
           name: sdc-logs
         ports:
index 8370798..7bc8a75 100644 (file)
@@ -23,6 +23,9 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: sdnc-db-container
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /var/lib/mysql
           name: sdnc-data
         ports:
@@ -33,6 +36,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       - name: sdnc-data
         persistentVolumeClaim:
           claimName: sdnc-db
index 6d911c3..ba2008a 100644 (file)
@@ -61,6 +61,14 @@ spec:
             port: 3100
           initialDelaySeconds: 5
           periodSeconds: 10
+        volumeMounts:
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
       restartPolicy: Always
+      volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
index f494792..4b12390 100644 (file)
@@ -51,6 +51,9 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: sdnc-controller-container
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /opt/openecomp/sdnc/data/properties/aaiclient.properties
           name: sdnc-aaiclient-properties
         - mountPath: /opt/openecomp/sdnc/data/properties/admportal.json
@@ -63,6 +66,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: sdnc-aaiclient-properties
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
index a141e76..4f7886d 100644 (file)
@@ -56,11 +56,19 @@ spec:
         name: sdnc-portal-container
         ports:
         - containerPort: 8843
+        volumeMounts:
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
         readinessProbe:
           tcpSocket:
             port: 8843
           initialDelaySeconds: 5
           periodSeconds: 10
       restartPolicy: Always
+      volumes:
+      - name: localtime
+        hostPath:
+          path: /etc/localtime
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
index e5032f3..9b585e2 100644 (file)
@@ -29,6 +29,9 @@ spec:
         - name: MYSQL_ROOT_PASSWORD
           value: LF+tp_1WqgSY
         volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         - mountPath: /var/lib/mysql
           name: vid-mariadb-data
         - mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql
@@ -43,6 +46,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: vid-mariadb-data
           persistentVolumeClaim:
             claimName: vid-db
index c535b44..69c0b57 100644 (file)
@@ -88,10 +88,18 @@ spec:
         name: vid-server
         ports:
         - containerPort: 8080
+        volumeMounts:
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
         readinessProbe:
           tcpSocket:
             port: 8080
           initialDelaySeconds: 5
           periodSeconds: 10
+      volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"