Use global storage templates for PVC 33/98933/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 28 Nov 2019 12:28:35 +0000 (13:28 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 28 Nov 2019 13:13:51 +0000 (14:13 +0100)
commit18747ec29947084c571d66f37f1a0fe85fbe4702
tree81636bf9ee7d3f739858aa4c8016901abdade19e
parent81954e51ef4c04fb08182d779f4871dfca766221
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 <sylvain.desbureaux@orange.com>
Change-Id: I71c6cee8d7c33ef7bd39c40a43c26b377d4ceec3
components/aai-elasticsearch/templates/deployment.yaml
components/aai-elasticsearch/templates/pv.yaml [new file with mode: 0644]
components/aai-elasticsearch/templates/pvc.yaml [new file with mode: 0644]
components/aai-elasticsearch/values.yaml
components/aai-graphadmin/templates/job copy-db-backup.yaml [new file with mode: 0644]
components/aai-graphadmin/templates/job-create-db.yaml [new file with mode: 0644]
components/aai-graphadmin/templates/job-migration.yaml [moved from components/aai-graphadmin/templates/job.yaml with 74% similarity]
components/aai-graphadmin/templates/pv.yaml
components/aai-graphadmin/templates/pvc.yaml
components/aai-traversal/templates/job.yaml