Merge "Containers time zone sync"
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>
Thu, 14 Sep 2017 18:15:24 +0000 (18:15 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 14 Sep 2017 18:15:24 +0000 (18:15 +0000)
1  2 
kubernetes/policy/templates/dep-maria.yaml
kubernetes/policy/templates/dep-nexus.yaml

@@@ -4,6 -4,7 +4,6 @@@ metadata
    name: mariadb
    namespace: "{{ .Values.nsPrefix }}-policy"
  spec:
 -  replicas: 1
    selector:
      matchLabels:
        app: mariadb
      spec:
        hostname: mariadb
        containers:
 -      - command:
 -        - /bin/bash
 -        - -c
 -        - exec bash /tmp/do-start.sh
 -        image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}"
 +      - image: "{{ .Values.image.policyDb }}:{{ .Values.image.policyDbVersion }}"
          imagePullPolicy: {{ .Values.pullPolicy }}
          name: mariadb
          ports:
          - containerPort: 3306
          volumeMounts:
+         - mountPath: /etc/localtime
+           name: localtime
+           readOnly: true
          - mountPath: /var/lib/mysql
            name: policy-mariadb-data
          readinessProbe:
@@@ -28,6 -36,9 +31,9 @@@
            initialDelaySeconds: 5
            periodSeconds: 10
        volumes:
+       - name: localtime
+         hostPath:
+           path: /etc/localtime
        - name: policy-mariadb-data
          persistentVolumeClaim:
            claimName: policy-db
@@@ -40,8 -40,20 +40,16 @@@ spec
            ]'
      spec:
        containers:
 -      - command:
 -        - /bin/bash
 -        - -c
 -        - bash -c "/opt/nexus/nexus-2.14.2-01/bin/nexus start && sleep 1000d"
 -        image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}"
 +      - 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"