summaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/charts/aai-graphadmin
diff options
context:
space:
mode:
authorHarish Venkata Kajur <vk250x@att.com>2019-01-08 22:09:21 -0500
committerAlexis de Talhouƫt <alexis.de_talhouet@bell.ca>2019-01-15 13:59:16 +0000
commitd497ce2e786598556501e0a6c65797e7085fa6b9 (patch)
treefdd5d1e10d4350d2082aa42adaf70565a72b1018 /kubernetes/aai/charts/aai-graphadmin
parent09688962459913e87eb2585d51f1b497de2ed959 (diff)
Ensure create database schema job logs stored
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>
Diffstat (limited to 'kubernetes/aai/charts/aai-graphadmin')
-rw-r--r--kubernetes/aai/charts/aai-graphadmin/templates/job.yaml5
-rw-r--r--kubernetes/aai/charts/aai-graphadmin/values.yaml4
2 files changed, 7 insertions, 2 deletions
diff --git a/kubernetes/aai/charts/aai-graphadmin/templates/job.yaml b/kubernetes/aai/charts/aai-graphadmin/templates/job.yaml
index cdcf2b1d9f..4d571d0526 100644
--- a/kubernetes/aai/charts/aai-graphadmin/templates/job.yaml
+++ b/kubernetes/aai/charts/aai-graphadmin/templates/job.yaml
@@ -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
diff --git a/kubernetes/aai/charts/aai-graphadmin/values.yaml b/kubernetes/aai/charts/aai-graphadmin/values.yaml
index 70c3698840..45588f4310 100644
--- a/kubernetes/aai/charts/aai-graphadmin/values.yaml
+++ b/kubernetes/aai/charts/aai-graphadmin/values.yaml
@@ -110,6 +110,10 @@ service:
ingress:
enabled: false
+persistence:
+ mountPath: /dockerdata-nfs
+ mountSubPath: aai/aai-graphadmin
+
resources:
small:
limits: