aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/charts/aai-cassandra/templates/volumes.yaml
diff options
context:
space:
mode:
authorvagrant <vagrant@aai.onap.org>2018-03-10 23:56:32 +0000
committerMandeep Khinda <mandeep.khinda@amdocs.com>2018-04-18 00:05:32 +0000
commit1a3a3557a080ba7ee7d1022d9a3dd0e165779ab2 (patch)
treedb48654f696136ee8f1ca5944befb98e3c94de1c /kubernetes/aai/charts/aai-cassandra/templates/volumes.yaml
parent88b15e05a15b70bfbb934111e5572193a45adbb8 (diff)
Update from using hbase to using cassandra
Also update resources and traversal to remove chef MK: Addressing the -1 statefulset comment Issue-ID: AAI-33 Change-Id: Ieee819703764fdda727f17d4e9be43084886828c Signed-off-by: Kajur, Harish vk250x@att.com <vk250x@att.com> Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com>
Diffstat (limited to 'kubernetes/aai/charts/aai-cassandra/templates/volumes.yaml')
-rw-r--r--kubernetes/aai/charts/aai-cassandra/templates/volumes.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/kubernetes/aai/charts/aai-cassandra/templates/volumes.yaml b/kubernetes/aai/charts/aai-cassandra/templates/volumes.yaml
new file mode 100644
index 0000000000..0e1a3dfc26
--- /dev/null
+++ b/kubernetes/aai/charts/aai-cassandra/templates/volumes.yaml
@@ -0,0 +1,25 @@
+#{{ if .Values.persistence.enabled }}
+{{- $root := . -}}
+{{ range $i, $e := until (atoi (quote $root.Values.replicaCount) | default 3) }}
+---
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: {{ $root.Values.service.name }}-{{ $i }}
+ namespace: {{ $root.Release.Namespace }}
+ labels:
+ type: {{ $root.Values.persistence.storageType }}
+ app: {{ $root.Values.service.name }}
+ chart: {{ $root.Chart.Name }}-{{ $root.Chart.Version | replace "+" "_" }}
+ release: {{ $root.Release.Name }}
+ heritage: {{ $root.Release.Service }}
+spec:
+ capacity:
+ storage: {{ $root.Values.persistence.size }}
+ accessModes:
+ - {{ $root.Values.persistence.accessMode }}
+ hostPath:
+ path: {{ $root.Values.persistence.mountPath }}/{{ $root.Release.Name }}/{{ $root.Values.persistence.mountSubPath }}-{{ $i }}
+ persistentVolumeReclaimPolicy: {{ $root.Values.persistence.volumeReclaimPolicy }}
+{{ end }}
+#{{ end }} \ No newline at end of file