diff options
author | yuryn <Yury.Novitsky@Amdocs.com> | 2017-09-13 19:21:03 +0300 |
---|---|---|
committer | Yury Novitsky <Yury.Novitsky@Amdocs.com> | 2017-09-14 15:17:08 +0000 |
commit | 8b3bc5a611778dd0bcd5aee794f062f385774797 (patch) | |
tree | ea08614c3d0ff896a3fae3d6dbf604d5263b030e /kubernetes/sdnc/templates | |
parent | b2243d375665d38db86fd2888ce64acb01b73567 (diff) |
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>
Diffstat (limited to 'kubernetes/sdnc/templates')
-rw-r--r-- | kubernetes/sdnc/templates/db-deployment.yaml | 6 | ||||
-rw-r--r-- | kubernetes/sdnc/templates/dgbuilder-deployment.yaml | 8 | ||||
-rw-r--r-- | kubernetes/sdnc/templates/sdnc-deployment.yaml | 6 | ||||
-rw-r--r-- | kubernetes/sdnc/templates/web-deployment.yaml | 8 |
4 files changed, 28 insertions, 0 deletions
diff --git a/kubernetes/sdnc/templates/db-deployment.yaml b/kubernetes/sdnc/templates/db-deployment.yaml index 837079819f..7bc8a75214 100644 --- a/kubernetes/sdnc/templates/db-deployment.yaml +++ b/kubernetes/sdnc/templates/db-deployment.yaml @@ -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 diff --git a/kubernetes/sdnc/templates/dgbuilder-deployment.yaml b/kubernetes/sdnc/templates/dgbuilder-deployment.yaml index 6d911c3381..ba2008ab4a 100644 --- a/kubernetes/sdnc/templates/dgbuilder-deployment.yaml +++ b/kubernetes/sdnc/templates/dgbuilder-deployment.yaml @@ -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" diff --git a/kubernetes/sdnc/templates/sdnc-deployment.yaml b/kubernetes/sdnc/templates/sdnc-deployment.yaml index f4947924ba..4b123906af 100644 --- a/kubernetes/sdnc/templates/sdnc-deployment.yaml +++ b/kubernetes/sdnc/templates/sdnc-deployment.yaml @@ -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 diff --git a/kubernetes/sdnc/templates/web-deployment.yaml b/kubernetes/sdnc/templates/web-deployment.yaml index a141e765dc..4f7886dc9c 100644 --- a/kubernetes/sdnc/templates/web-deployment.yaml +++ b/kubernetes/sdnc/templates/web-deployment.yaml @@ -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" |