Ensure create database schema job logs stored 10/75510/2
authorHarish Venkata Kajur <vk250x@att.com>
Wed, 9 Jan 2019 03:09:21 +0000 (22:09 -0500)
committerAlexis de Talhouët <alexis.de_talhouet@bell.ca>
Tue, 15 Jan 2019 13:59:16 +0000 (13:59 +0000)
in the host system so when the pod dies
unsuccessfully, we can investigate
the root cause of the problem

Issue-ID: AAI-1958
Change-Id: Ia151f597f9cce643c0e250a119a5606525d99ee7
Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
kubernetes/aai/charts/aai-graphadmin/templates/job.yaml
kubernetes/aai/charts/aai-graphadmin/values.yaml

index cdcf2b1..4d571d0 100644 (file)
@@ -93,7 +93,7 @@ spec:
         - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/aaiconfig.properties
           name: {{ include "common.fullname" . }}-aaiconfig-conf
           subPath: aaiconfig.properties
-        - mountPath: /opt/aai/logroot/AAI-RES
+        - mountPath: /opt/aai/logroot/AAI-GA
           name: {{ include "common.fullname" . }}-logs
         - mountPath: /opt/app/aai-graphadmin/resources/logback.xml
           name: {{ include "common.fullname" . }}-log-conf
@@ -128,7 +128,8 @@ spec:
         configMap:
           name: aai-filebeat
       - name: {{ include "common.fullname" . }}-logs
-        emptyDir: {}
+        hostPath:
+          path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}-create-db-schema
       - name: {{ include "common.fullname" . }}-filebeat
         emptyDir: {}
       - name: {{ include "common.fullname" . }}-log-conf
index 70c3698..45588f4 100644 (file)
@@ -110,6 +110,10 @@ service:
 ingress:
   enabled: false
 
+persistence:
+  mountPath: /dockerdata-nfs
+  mountSubPath: aai/aai-graphadmin
+
 resources:
   small:
     limits: