From 18747ec29947084c571d66f37f1a0fe85fbe4702 Mon Sep 17 00:00:00 2001 From: Sylvain Desbureaux Date: Thu, 28 Nov 2019 13:28:35 +0100 Subject: Use global storage templates for PVC OOM has now templates in order to create the needed PVC, using: * a PV with a specific class when using a common nfs mount path between nodes (sames as today use) --> is the default behavior today * or a storage class if we want to use dynamic PV. On this case, we use (in order of priority): - persistence.storageClassOverride if set on the chart - global.persistence.storageClass if set globally - persistence.storageClass if set on the chart I've also created a PV/PVC for elasticsearch has it was hardcoded to hostPath. I've also removed hostPath for job logs (aai-traversal logs were not put into the desired hostPath) And I moved the 3 jobs of aai-graphadmin into 3 files as it's a better practice (several object in the same file can lead to unexpected behavior). Behavior is supposed to be exactly the same as before. Issue-ID: OOM-1227 Signed-off-by: Sylvain Desbureaux Change-Id: I71c6cee8d7c33ef7bd39c40a43c26b377d4ceec3 --- components/aai-traversal/templates/job.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'components/aai-traversal') diff --git a/components/aai-traversal/templates/job.yaml b/components/aai-traversal/templates/job.yaml index 33bc694..5a49630 100644 --- a/components/aai-traversal/templates/job.yaml +++ b/components/aai-traversal/templates/job.yaml @@ -117,8 +117,7 @@ spec: configMap: name: aai-filebeat - name: {{ include "common.fullname" . }}-logs - hostPath: - path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}-update-query + emptyDir: {} - name: {{ include "common.fullname" . }}-logs-misc emptyDir: {} - name: {{ include "common.fullname" . }}-filebeat -- cgit 1.2.3-korg