[DMaaP] Use global storage templates for PVC 60/99560/3
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 29 Nov 2019 14:55:11 +0000 (15:55 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 12 Dec 2019 15:46:36 +0000 (16:46 +0100)
commit60141128dc3b8224b9f414c599d3c8826574c45c
treedbb31ad01dd60958ad28106595435d46056b119a
parent9b0adea0769b026875ee312d223960c559c700bb
[DMaaP] 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 split the 3 PV from dr-node into 3 files and used range so the
number of PV is the same as number of PODs.

Change-Id: I46b4e62042ea8330bef8cdc1561fa8bbf3f25d12
Issue-ID: OOM-1227
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
12 files changed:
kubernetes/dmaap/components/dmaap-dr-node/templates/pv-aaf.yaml [new file with mode: 0644]
kubernetes/dmaap/components/dmaap-dr-node/templates/pv-event.yaml [new file with mode: 0644]
kubernetes/dmaap/components/dmaap-dr-node/templates/pv-spool.yaml [new file with mode: 0644]
kubernetes/dmaap/components/dmaap-dr-node/templates/pv.yaml [deleted file]
kubernetes/dmaap/components/dmaap-dr-node/templates/statefulset.yaml
kubernetes/dmaap/components/dmaap-dr-prov/templates/deployment.yaml
kubernetes/dmaap/components/dmaap-dr-prov/templates/pv.yaml
kubernetes/dmaap/components/dmaap-dr-prov/templates/pvc.yaml
kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/pv.yaml
kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml
kubernetes/dmaap/components/message-router/charts/message-router-zookeeper/templates/pv.yaml
kubernetes/dmaap/components/message-router/charts/message-router-zookeeper/templates/statefulset.yaml